indexing problem in directional stats when no registries in one of the directions
Closed this issue · 1 comments
mcarvajalino commented
Hi,
I have been getting the following error when trying to run "plot_directional_return_periods":
The data is downloadet with metocean api via:
Swellpkt=[5.52033,62.54500]
df_ts = ts.TimeSeries(lon=Swellpkt[0], lat=Swellpkt[1],
start_time='2003-01-01', end_time='2023-12-01' ,
product='NORA3_wave_sub')
The only reason I can think of for the indexing not working is that some of the directions are empty:
Is this a bug?
KonstantinChri commented
Hi @mcarvajalino,
Thanks for finding this bug. The empty sectors in the data are creating this issue.
I tried to fix it by setting to 0 in extremes for empty sectors. Please make a git pull and re-run your script. Let me know if it works.