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

Leap years #69

Open
AlessandroLovo opened this issue May 15, 2023 · 1 comment
Open

Leap years #69

AlessandroLovo opened this issue May 15, 2023 · 1 comment
Labels
bug Something isn't working enhancement New feature or request

Comments

@AlessandroLovo
Copy link
Collaborator

ERA data has leap years, and right now we select data based on the time.dt.dayofyear
This means that the 1st of june has two different dayofyear depending on leap year or not

@AlessandroLovo AlessandroLovo added bug Something isn't working enhancement New feature or request labels May 15, 2023
@AlessandroLovo
Copy link
Collaborator Author

AlessandroLovo commented Jul 26, 2023

The current fix is adapting the data (xr.DataArray) by doing

new_da = old_da.convert_calendar('noleap')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant