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
met2model.ED2 skips over leap years #1550
Comments
Workaround |
@mccabe, that work around won't work -- it will get you through the PEcAn met workflow but models that need leap years will still be one day short, and thus will crash. I think you really do need to copy and add in an extra day |
I agree. My solution is completely hackey, and I intend to sequester it in a personal branch for the time being. ED seems fine with it for now, so I think I'll return to this problem after ESA and implement a real solution. |
I think this is not a met2model.ED2 bug, but it is due to the GFDL not being processed properly (assuming GFDL has leap years), there is no check for leap years in the download.GFDL code, it's always 2920 values per year Also met2model.ED processes leap years for AmerifluxLBL |
I think we agreed previously that the issue was with the GFDL met, the question is whether the solution should come within the GFDL download, within met2model, or be something generic in between. Either way, that extra leap day needs to be added for models that need it. |
got it, I wasn't sure whether GFDL has leap years or not (should've read the thread more carefully, not just the title :)) |
Many modeled met products (and even some obs) skip leap years, some older climate models even used a 360 day year. So we either need to decide that all met products must gap-fill leap days (for example, by replicating Feb 28 twice) if not provided, or all met2model must do that step if the model requires it. Since this seems model specific (some models don't care), seems like met2model. |
This issue is stale because it has been open 365 days with no activity. |
I think this has been addressed. That function takes a pecan/models/ed/R/met2model.ED2.R Lines 26 to 28 in 9ed21c9
|
Only confirmed this error for GFDL, but might happen for others.
met2model.ED2
flags all leap years as incomplete and warns "____ is not a complete year and will not be included
" and skips them. This makes ED2 fail for runs that span leap years.Example error run here.
The text was updated successfully, but these errors were encountered: