@@ -391,8 +391,8 @@ def read_pvgis_hourly(filename, pvgis_format=None, map_variables=True):
391391
392392
393393def get_pvgis_tmy (latitude , longitude , outputformat = 'json' , usehorizon = True ,
394- userhorizon = None , startyear = None , endyear = None , url = URL ,
395- map_variables = True , timeout = 30 ):
394+ userhorizon = None , startyear = None , endyear = None ,
395+ map_variables = True , url = URL , timeout = 30 ):
396396 """
397397 Get TMY data from PVGIS.
398398
@@ -418,11 +418,11 @@ def get_pvgis_tmy(latitude, longitude, outputformat='json', usehorizon=True,
418418 first year to calculate TMY
419419 endyear : int, default None
420420 last year to calculate TMY, must be at least 10 years from first year
421- url : str, default: :const:`pvlib.iotools.pvgis.URL`
422- base url of PVGIS API, append ``tmy`` to get TMY endpoint
423421 map_variables: bool, default True
424422 When true, renames columns of the Dataframe to pvlib variable names
425423 where applicable. See variable :const:`VARIABLE_MAP`.
424+ url : str, default: :const:`pvlib.iotools.pvgis.URL`
425+ base url of PVGIS API, append ``tmy`` to get TMY endpoint
426426 timeout : int, default 30
427427 time in seconds to wait for server response before timeout
428428
0 commit comments