-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support for CFTime.DateTimeNoLeap
calendar
#308
Comments
We actually do support using different calendar types (all CF convention calendars), and have run Wflow with different types of calendars. However, in order to make sure this works, you need to specify the calendar type in your toml file. See this page in the documentation for some additional explanations. In your case, it should be Hopefully this solves your issue! |
Hi Joost, thanks for your reply. I have actually set the calendar to "noleap" already in the config file, however it does not work. Here's the start of the config file: casename = "wflow_sbm"
calendar = "noleap"
starttime = "1990-01-01T00:00:00"
endtime = "1990-12-31T00:00:00"
time_units = "days since 1900-01-01 00:00:00"
timestepsecs = 86400 I run the model through the BMI, however I am not sure if that matters in this case. |
Looking at the To be able to convert from a noleap calendar, the |
And how is the time dimension setup in your forcing file? I have ran Wflow in the past with 365_day (and 360_day) calendar without issue. The time dimension in my forcing dataset looks like this (opened with xarray):
|
What it looks like in xarray depends a bit on which packages you have installed double time(time) ; time:axis = "T" ; time:bounds = "time_bnds" ; time:units = "days since 1850-1-1 00:00:00" ; time:standard_name = "time" ; time:long_name = "time" ; time:calendar = "365_day" ; time:calendar_type = "noleap" ; time:cartesian_axis = "T" ; The data has been generated using ESMValTool, so it should adhere to the CF-1.7 and CMOR standards If I change the following line Line 268 in ac78c32
to: time = reinterpret(eltype(dataset_times), clock.time) the model runs fine with the noleap calendar. |
Hi Bart, could you please share your model case, so we can reproduce the issue? |
Hi Willem. I have been trying to reproduce the error however I am not encountering it anymore... I am now able to provide the model with a noleap calendar, and run it without any issues. I'll close this issue now, if I encounter the error again I will reopen it. Thanks! |
Feature type
Changing existing functionality
Improvement Description
The current supported calendar types of forcing data seem to be
CFTime.DateTimeJulian, CFTime.DateTimeProlepticGregorian, CFTime.DateTimeStandard
. However, theCFTime.DateTimeNoLeap
calendar is not supported.Many global climate models use this "noleap" calendar, so it would be nice to be able to use the data from those without a tricky conversion.
On this line the following error is raised:
Additional Context
I encountered this issue while trying to generate forcing data for Wflow.jl with eWaterCycle + ESMValTool.
The text was updated successfully, but these errors were encountered: