You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xs.climatological_mean and xs.compue_deltas unstack data into [year, month, day] to perform their actions, then puts everything back into a 1D time array using: ds = ds.stack(time=("year", "month", "day")) (line 123 in climatological_mean)
This might have been an oversight on our part, but this only works when all values of day exist for every month. With daily data, this creates an array of size 372 (31 x 12), including many impossible days that make pandas crash.
Steps To Reproduce
No response
Additional context
No response
Contribution
I would be willing/able to open a Pull Request to address this bug.
The text was updated successfully, but these errors were encountered:
RondeauG
changed the title
xs.climatological_mean is broken with daily data
xs.climatological_mean and compute_deltas are broken with daily data
Apr 25, 2023
Setup Information
Description
xs.climatological_mean
andxs.compue_deltas
unstack data into[year, month, day]
to perform their actions, then puts everything back into a 1Dtime
array using:ds = ds.stack(time=("year", "month", "day"))
(line 123 in climatological_mean)This might have been an oversight on our part, but this only works when all values of
day
exist for every month. With daily data, this creates an array of size 372 (31 x 12), including many impossible days that makepandas
crash.Steps To Reproduce
No response
Additional context
No response
Contribution
The text was updated successfully, but these errors were encountered: