Skip to content

Commit b8cd60f

Browse files
.mrc month transition
1 parent a259e5a commit b8cd60f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/utils/utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -222,9 +222,11 @@ def write_mrc(ds, exp_folder=None):
222222
if dt.hour == 0:
223223
hour = 24
224224
day = (dt - datetime.timedelta(hours=1)).day
225+
month = (dt - datetime.timedelta(hours=1)).month
225226
else:
226227
hour = dt.hour
227228
day = dt.day
229+
month = dt.month
228230
# writing the current files
229231
with open(
230232
f"{exp_folder}/oce_files/merc{dt.year-2000:02d}{dt.month:02d}{day:02d}{hour:02d}.mrc",

0 commit comments

Comments
 (0)