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

Add option to fill missing leap-days #218

Open
gutmann opened this issue May 18, 2020 · 0 comments
Open

Add option to fill missing leap-days #218

gutmann opened this issue May 18, 2020 · 0 comments

Comments

@gutmann
Copy link

gutmann commented May 18, 2020

This is a feature request to add an option for metsim to fill missing days by interpolation of the input data in time, including changing the calendar from noleap to standard.

Some forcing datasets do not have leap days (many climate models and even daymet...?!?). While metsim supports a noleap calendar (thankyou!), many models that use its output do not.

A nice feature would be an option for metsim to read data on a noleap calendar, fill missing leap days by interpolating the Tmin/Tmax/Precip/wind data between Feb 28 and Mar 1, then apply MTCLIM algorithms, and output data on a standard calendar.

This might implemented using xarray's interp option, though I think that adds a dependency on scipy. Leap days at the very beginning or end of the requested time period can be ffill and bfilled

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