-
-
Notifications
You must be signed in to change notification settings - Fork 291
Description
Hello,
I am getting an error running the code in part seasonal averages and long-term trends, any idea what's going on?
Thank you so much for all your work, looking forward to your responding.
S
IndexError Traceback (most recent call last)
Cell In[108], line 9
7 # remove nans
8 idx_nan = np.isnan(chainage)
----> 9 dates_nonan = [dates[_] for _ in np.where(~idx_nan)[0]]
10 chainage = chainage[~idx_nan]
12 # compute shoreline seasonal averages (DJF, MAM, JJA, SON)
Cell In[108], line 9, in (.0)
7 # remove nans
8 idx_nan = np.isnan(chainage)
----> 9 dates_nonan = [dates[_] for _ in np.where(~idx_nan)[0]]
10 chainage = chainage[~idx_nan]
12 # compute shoreline seasonal averages (DJF, MAM, JJA, SON)
IndexError: list index out of range