Skip to content

Commit

Permalink
request 1 day before in api for precipitation stations
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Apr 5, 2024
1 parent 6112a3d commit 1cedf7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hydropandas/io/knmi.py
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ def get_knmi_daily_rainfall_api(
params = {"vars": meteo_var, "stns": str(stn)}

if start is not None:
params["start"] = start.strftime("%Y%m%d")
params["start"] = (start - pd.Timedelta(days=1)).strftime("%Y%m%d")
if end is not None:
params["end"] = end.strftime("%Y%m%d")
strio = get_knmi_api(url, params)
Expand Down

0 comments on commit 1cedf7f

Please sign in to comment.