Skip to content

Commit 4d47a3c

Browse files
committed
Adjust mass balance calibration indices
1 parent a0629ad commit 4d47a3c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pygem/bin/run/run_calibration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -907,6 +907,9 @@ def run(list_packed_vars):
907907
nrows_rm = (~mask).sum() # number of dropped rows
908908
for key in ('temp', 'tempstd', 'prec', 'lr'):
909909
gdir.historical_climate[key] = gdir.historical_climate[key][nrows_rm:]
910+
# adjust mass balance data indices
911+
gdir.mbdata['t1_idx'] -= nrows_rm
912+
gdir.mbdata['t2_idx'] -= nrows_rm
910913

911914
# get observation period indices in model date_table
912915
# create lookup dict (timestamp → index)

0 commit comments

Comments
 (0)