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
I have run standardized_precipitation_index with CMORPH daily data
The output has no data in any time step. I don't know what could be wrong.
The calculation got some UserWarning s but the function went through.
I'm not sure if I want to run SPI from 1998 to 2017 what pr_cal should I set to, could it be based on climatology (1981-01-01 to 2020-12-31)?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Setup Information
Context
I have run standardized_precipitation_index with CMORPH daily data
The output has no data in any time step. I don't know what could be wrong.
The calculation got some UserWarning s but the function went through.
I'm not sure if I want to run SPI from 1998 to 2017 what pr_cal should I set to, could it be based on climatology (1981-01-01 to 2020-12-31)?
Steps To Reproduce
ds = cmorph_ds
ds['prcp'].attrs['units'] = 'mm/day'
pr = cmorph_ds.prcp
pr_cal = pr.sel(time=slice(datetime(1998, 5, 1), datetime(1998, 11, 30)))
spi_6 = standardized_precipitation_index(pr, pr_cal, freq="MS", window=6, dist="gamma", method="ML")
Beta Was this translation helpful? Give feedback.
All reactions