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

Clarification about leap days in monthly data #81

Open
lukruh opened this issue Feb 17, 2025 · 0 comments
Open

Clarification about leap days in monthly data #81

lukruh opened this issue Feb 17, 2025 · 0 comments

Comments

@lukruh
Copy link

lukruh commented Feb 17, 2025

Hello,
I assume, that the spei() function does not account for leap days in monthly input data (even when a time series is given), does it?
Looking at the code I'd think the data is given as it is to the fitting function without applying days_in_month or something like that.
However, I'm not an R expert and couldn't find anything related to leap days in the docs, so I'd like to have this clarified. As far as I understand providing actual measurements or any leap day aware data could impact the PDF fitting for February.

hargreaves() seems to account for leap days when time series objects are provided, but not for regular arrays.

Thanks for any help in advance.

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