Water level predictions throws error if no interval is specified
GClunies opened this issue · 0 comments
GClunies commented
According to NOAA API, default time interval for predicted water levels is 6 minutes. This does not require interval
to be specified in a call to the API.
Currently coops.get_data()
requires that an interval is supplied to the function, if no interval is supplied (see options here) it throws an error.
ValueError: No interval specified for water level predictions. See https://tidesandcurrents.noaa.gov/api/#interval for list of available intervals
Code used to generate error:
df_pred = coops.get_data(begin_date="20150101",
end_date="20180101",
stationid="9447130",
product="predictions",
datum="MLLW",
units="english",
time_zone="lst_ldt")