@@ -47,8 +47,9 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
47
47
altitude = None , time_step = '1h' , time_ref = 'UT' , verbose = False ,
48
48
integrated = False , label = None , map_variables = True ,
49
49
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
52
53
diffuse radiation from CAMS (see [1]_). Data is retrieved from SoDa [2]_.
53
54
54
55
Time coverage: 2004-01-01 to two days ago
@@ -65,9 +66,9 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
65
66
in decimal degrees, between -90 and 90, north is positive (ISO 19115)
66
67
longitude : float
67
68
in decimal degrees, between -180 and 180, east is positive (ISO 19115)
68
- start: datetime like
69
+ start: datetime- like
69
70
First day of the requested period
70
- end: datetime like
71
+ end: datetime- like
71
72
Last day of the requested period
72
73
email: str
73
74
Email address linked to a SoDa account
@@ -177,8 +178,8 @@ def get_cams(latitude, longitude, start, end, email, identifier='mcclear',
177
178
altitude = - 999
178
179
179
180
# 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' )
182
183
183
184
email = email .replace ('@' , '%2540' ) # Format email address
184
185
identifier = 'get_{}' .format (identifier .lower ()) # Format identifier str
0 commit comments