@@ -59,24 +59,24 @@ def get_pvgis_hourly(latitude, longitude, start=None, end=None,
5959
6060 Parameters
6161 ----------
62- latitude: float
62+ latitude : float
6363 In decimal degrees, between -90 and 90, north is positive (ISO 19115)
64- longitude: float
64+ longitude : float
6565 In decimal degrees, between -180 and 180, east is positive (ISO 19115)
66- start: int or datetime like, default: None
66+ start : int or datetime like, default None
6767 First year of the radiation time series. Defaults to first year
6868 available.
69- end: int or datetime like, default: None
69+ end : int or datetime like, default None
7070 Last year of the radiation time series. Defaults to last year
7171 available.
72- raddatabase: str, default: None
72+ raddatabase : str, default None
7373 Name of radiation database. Options depend on location, see [3]_.
74- components: bool, default: True
74+ components : bool, default True
7575 Output solar radiation components (beam, diffuse, and reflected).
7676 Otherwise only global irradiance is returned.
77- surface_tilt: float, default: 0
77+ surface_tilt : float, default 0
7878 Tilt angle from horizontal plane. Ignored for two-axis tracking.
79- surface_azimuth: float, default: 180
79+ surface_azimuth : float, default 180
8080 Orientation (azimuth angle) of the (fixed) plane. Counter-clockwise
8181 from north (north=0, south=180). This is offset 180 degrees from
8282 the convention used by PVGIS. Ignored for tracking systems.
@@ -85,45 +85,45 @@ def get_pvgis_hourly(latitude, longitude, start=None, end=None,
8585 The `surface_azimuth` parameter now follows the pvlib convention, which
8686 is counterclockwise from north. However, the convention used by the
8787 PVGIS website and pvlib<=0.9.5 is offset by 180 degrees.
88- usehorizon: bool, default: True
88+ usehorizon : bool, default True
8989 Include effects of horizon
90- userhorizon: list of float, default: None
90+ userhorizon : list of float, default None
9191 Optional user specified elevation of horizon in degrees, at equally
9292 spaced azimuth clockwise from north, only valid if ``usehorizon`` is
9393 true, if ``usehorizon`` is true but ``userhorizon`` is ``None`` then
9494 PVGIS will calculate the horizon [4]_
95- pvcalculation: bool, default: False
95+ pvcalculation : bool, default False
9696 Return estimate of hourly PV production.
97- peakpower: float, default: None
97+ peakpower : float, default None
9898 Nominal power of PV system in kW. Required if pvcalculation=True.
99- pvtechchoice: {'crystSi', 'CIS', 'CdTe', 'Unknown'}, default: 'crystSi'
99+ pvtechchoice : {'crystSi', 'CIS', 'CdTe', 'Unknown'}, default 'crystSi'
100100 PV technology.
101- mountingplace: {'free', 'building'}, default: free
101+ mountingplace : {'free', 'building'}, default free
102102 Type of mounting for PV system. Options of 'free' for free-standing
103103 and 'building' for building-integrated.
104- loss: float, default: 0
104+ loss : float, default 0
105105 Sum of PV system losses in percent. Required if pvcalculation=True
106- trackingtype: {0, 1, 2, 3, 4, 5}, default: 0
106+ trackingtype : {0, 1, 2, 3, 4, 5}, default 0
107107 Type of suntracking. 0=fixed, 1=single horizontal axis aligned
108108 north-south, 2=two-axis tracking, 3=vertical axis tracking, 4=single
109109 horizontal axis aligned east-west, 5=single inclined axis aligned
110110 north-south.
111- optimal_surface_tilt: bool, default: False
111+ optimal_surface_tilt : bool, default False
112112 Calculate the optimum tilt angle. Ignored for two-axis tracking
113- optimalangles: bool, default: False
113+ optimalangles : bool, default False
114114 Calculate the optimum tilt and azimuth angles. Ignored for two-axis
115115 tracking.
116- outputformat: str, default: 'json'
116+ outputformat : str, default 'json'
117117 Must be in ``['json', 'csv']``. See PVGIS hourly data
118118 documentation [2]_ for more info.
119- url: str, default: :const:`pvlib.iotools.pvgis.URL`
119+ url : str, default :const:`pvlib.iotools.pvgis.URL`
120120 Base url of PVGIS API. ``seriescalc`` is appended to get hourly data
121121 endpoint. Note, a specific PVGIS version can be specified, e.g.,
122122 https://re.jrc.ec.europa.eu/api/v5_2/
123- map_variables: bool, default: True
123+ map_variables : bool, default True
124124 When true, renames columns of the Dataframe to pvlib variable names
125125 where applicable. See variable :const:`VARIABLE_MAP`.
126- timeout: int, default: 30
126+ timeout : int, default 30
127127 Time in seconds to wait for server response before timeout
128128
129129 Returns
@@ -217,9 +217,9 @@ def get_pvgis_hourly(latitude, longitude, start=None, end=None,
217217 if raddatabase is not None :
218218 params ['raddatabase' ] = raddatabase
219219 if start is not None :
220- params ['startyear' ] = start if isinstance (start , int ) else pd . to_datetime ( start ) .year # noqa: E501
220+ params ['startyear' ] = start if isinstance (start , int ) else start .year
221221 if end is not None :
222- params ['endyear' ] = end if isinstance (end , int ) else pd . to_datetime ( end ) .year # noqa: E501
222+ params ['endyear' ] = end if isinstance (end , int ) else end .year
223223 if peakpower is not None :
224224 params ['peakpower' ] = peakpower
225225
@@ -315,7 +315,7 @@ def read_pvgis_hourly(filename, pvgis_format=None, map_variables=True):
315315 ``pvgis_format`` is ``None`` then the file extension will be used to
316316 determine the PVGIS format to parse. If ``filename`` is a buffer, then
317317 ``pvgis_format`` is required and must be in ``['csv', 'json']``.
318- map_variables: bool, default True
318+ map_variables : bool, default True
319319 When true, renames columns of the DataFrame to pvlib variable names
320320 where applicable. See variable :const:`VARIABLE_MAP`.
321321
@@ -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 ,
395- map_variables = True , url = URL , timeout = 30 ):
394+ userhorizon = None , startyear = None , endyear = None , url = URL ,
395+ map_variables = True , 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- map_variables: bool, default True
421+ url : str, default :const:`pvlib.iotools.pvgis.URL`
422+ base url of PVGIS API, append ``tmy`` to get TMY endpoint
423+ map_variables : bool, default True
422424 When true, renames columns of the Dataframe to pvlib variable names
423425 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
@@ -581,7 +581,7 @@ def read_pvgis_tmy(filename, pvgis_format=None, map_variables=True):
581581 ``outputformat='basic'``, please set ``pvgis_format`` to ``'basic'``.
582582 If ``filename`` is a buffer, then ``pvgis_format`` is required and must
583583 be in ``['csv', 'epw', 'json', 'basic']``.
584- map_variables: bool, default True
584+ map_variables : bool, default True
585585 When true, renames columns of the Dataframe to pvlib variable names
586586 where applicable. See variable :const:`VARIABLE_MAP`.
587587
@@ -678,7 +678,7 @@ def get_pvgis_horizon(latitude, longitude, url=URL, **kwargs):
678678 Latitude in degrees north
679679 longitude : float
680680 Longitude in degrees east
681- url: str, default: :const:`pvlib.iotools.pvgis.URL`
681+ url : str, default :const:`pvlib.iotools.pvgis.URL`
682682 Base URL for PVGIS
683683 kwargs:
684684 Passed to requests.get
0 commit comments