-
Notifications
You must be signed in to change notification settings - Fork 15
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
Allow variable values in ocean_month.py
#208
Comments
ocean_month.py
ocean_month.py
Another issue is that these constants should come from zppy/zppy/templates/ocean_month.py Lines 20 to 25 in 9793c65
from mpas_tools.cime.constants import constants
...
# specific heat [J/(kg*degC)]
cp = constants['SHR_CONST_CPSW']
# [kg/m3]
rho = constants['SHR_CONST_RHOSW']
fac = rho * cp This will require adding a new dependency on |
I don't think this is a problem. It might be more aesthetic to have: tunits = f"days since {start_yr:d04}-01-01 00:00:00" but your later calls to |
year2 = y + 10 - 1 Presumably this should be the following? year2 = min(y + 10 -1, end_yr) |
In
zppy/templates/ocean_month.py
, Lines 32-35,10
is hard-coded:This was causing issues addressing #128 because the tests were using fewer than 10 years.
A related issue, on line 29:
tunits = "days since 0001-01-01 00:00:00"
, which I believe is only true if we're running from year0001
and not say1850
.The text was updated successfully, but these errors were encountered: