@@ -75,7 +75,8 @@ def get_meteonorm(latitude, longitude, start, end, api_key, endpoint,
75
75
Orientation (azimuth angle) of the (fixed) plane. Clockwise from north
76
76
(north=0, east=90, south=180, west=270).
77
77
time_step : {'1min', '15min', '1h'}, default : '15min'
78
- Frequency of the time series.
78
+ Frequency of the time series. The endpoint ``'forecast/basic'`` only
79
+ supports ``time_step='1h'``.
79
80
horizon : str or list, default : 'auto'
80
81
Specification of the horizon line. Can be either 'flat', 'auto', or
81
82
a list of 360 integer horizon elevation angles.
@@ -158,6 +159,10 @@ def get_meteonorm(latitude, longitude, start, end, api_key, endpoint,
158
159
159
160
if 'basic' not in endpoint :
160
161
params ['frequency' ] = TIME_STEP_MAP .get (time_step , time_step )
162
+ else :
163
+ if time_step not in ['1h' , '1_hour' ]:
164
+ raise ValueError ("The 'forecast/basic' api endpoint only "
165
+ "supports ``time_step='1h'``." )
161
166
162
167
headers = {"Authorization" : f"Bearer { api_key } " }
163
168
@@ -180,7 +185,7 @@ def get_meteonorm(latitude, longitude, start, end, api_key, endpoint,
180
185
def get_meteonorm_tmy (latitude , longitude , api_key ,
181
186
parameters = 'all' , * , surface_tilt = 0 ,
182
187
surface_azimuth = 180 , time_step = '1h' , horizon = 'auto' ,
183
- terrain = 'open' , albedo = None , turbidity = 'auto' ,
188
+ terrain_situation = 'open' , albedo = None , turbidity = 'auto' ,
184
189
random_seed = None , clear_sky_radiation_model = 'esra' ,
185
190
data_version = 'latest' , future_scenario = None ,
186
191
future_year = None , interval_index = False ,
@@ -212,7 +217,7 @@ def get_meteonorm_tmy(latitude, longitude, api_key,
212
217
Specification of the horizon line. Can be either 'flat' or 'auto', or
213
218
specified as a list of 360 integer horizon elevation angles.
214
219
'auto'.
215
- terrain : str, default : 'open'
220
+ terrain_situation : str, default : 'open'
216
221
Local terrain situation. Must be one of: ['open', 'depression',
217
222
'cold_air_lake', 'sea_lake', 'city', 'slope_south',
218
223
'slope_west_east'].
@@ -279,7 +284,7 @@ def get_meteonorm_tmy(latitude, longitude, api_key,
279
284
'frequency' : TIME_STEP_MAP .get (time_step , time_step ),
280
285
'parameters' : parameters ,
281
286
'horizon' : horizon ,
282
- 'situation' : terrain ,
287
+ 'situation' : terrain_situation ,
283
288
'turbidity' : turbidity ,
284
289
'clear_sky_radiation_model' : clear_sky_radiation_model ,
285
290
'data_version' : data_version ,
0 commit comments