@@ -47,8 +47,9 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
4747 altitude = None , time_step = '1h' , time_ref = 'UT' , verbose = False ,
4848 integrated = False , label = None , map_variables = True ,
4949 server = URL , timeout = 30 ):
50- """
51- Retrieve time-series of radiation and/or clear-sky global, beam, and
50+ """Retrieve irradiance and clear-sky time series from CAMS.
51+
52+ Time-series of radiation and/or clear-sky global, beam, and
5253 diffuse radiation from CAMS (see [1]_). Data is retrieved from SoDa [2]_.
5354
5455 Time coverage: 2004-01-01 to two days ago
@@ -65,9 +66,9 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
6566 in decimal degrees, between -90 and 90, north is positive (ISO 19115)
6667 longitude : float
6768 in decimal degrees, between -180 and 180, east is positive (ISO 19115)
68- start: datetime like
69+ start: datetime- like
6970 First day of the requested period
70- end: datetime like
71+ end: datetime- like
7172 Last day of the requested period
7273 email: str
7374 Email address linked to a SoDa account
@@ -177,8 +178,8 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
177178 altitude = - 999
178179
179180 # Start and end date should be in the format: yyyy-mm-dd
180- start = start .strftime ('%Y-%m-%d' )
181- end = end .strftime ('%Y-%m-%d' )
181+ start = pd . to_datetime ( start ) .strftime ('%Y-%m-%d' )
182+ end = pd . to_datetime ( end ) .strftime ('%Y-%m-%d' )
182183
183184 email = email .replace ('@' , '%2540' ) # Format email address
184185 identifier = 'get_{}' .format (identifier .lower ()) # Format identifier str
0 commit comments