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

SPEI infinity values #50

Closed
phyvera opened this issue Dec 24, 2022 · 1 comment
Closed

SPEI infinity values #50

phyvera opened this issue Dec 24, 2022 · 1 comment

Comments

@phyvera
Copy link

phyvera commented Dec 24, 2022

Has anyone found a solution to this problem of infinite SPEI values? I calculate the global SPEI using CESM-LE data and get an infinite value (-Inf or -Inf). I already consider na.rm =TRUE even though I have no missing value in my data.
Should I replace -Inf with -3 and Inf with 3, does this make sense?

I have already calculated SPEI ( PET with THornthwaite, Hargreave and Penman) taking different distributions such as Logistic, Gamma, PearsonIII, but I still have these values Infinite and NaN.

Any help and advice is welcome

@sbegueria
Copy link
Owner

There’s no solution to this, as it is not really a bug. Simply, it’s not possible to fit this distributions to certain data. Look at the data that produce this values, probably it’s way out of range, or contains mostly zeros, or similar.

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

2 participants