Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NoData values in SPI output #1

Open
mortezaomidi opened this issue Apr 6, 2023 · 0 comments
Open

NoData values in SPI output #1

mortezaomidi opened this issue Apr 6, 2023 · 0 comments

Comments

@mortezaomidi
Copy link

mortezaomidi commented Apr 6, 2023

Thank you for your valuable work.
I ran the SPI function for a NetCDF file (time series from 2000, 2023), but unfortunately many pixels calculated as NoData.

Could this line of code be the problem?
ds_In = ds_In.where(np.isinf(ds_In) == False) #= np.nan #Change infinity to NaN

Do you have an idea to solve the problem?

sample output for 2022-12-01

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant