Skip to content
Snippets Groups Projects
Commit 4a356c47 authored by Woude, Auke van der's avatar Woude, Auke van der
Browse files

Start at month 1 of year

parent 3387d509
Branches
No related tags found
No related merge requests found
...@@ -132,7 +132,7 @@ def check_era_present(dacycle): ...@@ -132,7 +132,7 @@ def check_era_present(dacycle):
NRUNYEARS_SPINUP = int(dacycle.dasystem['sib.spinup.years']) NRUNYEARS_SPINUP = int(dacycle.dasystem['sib.spinup.years'])
# SiB runs start 'NRUNYEARS_SPINUP' years beforehand, on the first of the month # SiB runs start 'NRUNYEARS_SPINUP' years beforehand, on the first of the month
sib_starttime = dtm.datetime(starttime.year - NRUNYEARS_SPINUP, starttime.month, 1) sib_starttime = dtm.datetime(starttime.year - NRUNYEARS_SPINUP, 1, 1)
# SiB ends on the final day of the last month in the dasystem # SiB ends on the final day of the last month in the dasystem
sib_endtime = dtm.datetime(endtime.year, endtime.month + 1, 1) - dtm.timedelta(days=1) sib_endtime = dtm.datetime(endtime.year, endtime.month + 1, 1) - dtm.timedelta(days=1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment