Skip to content

Commit 1af8739

Browse files
committed
uncommitted updates
1 parent ae07d48 commit 1af8739

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

compass/landice/tests/ismip6_GrIS_forcing/file_finders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, archive_fp, version="v1", workdir="./"):
7474
# should do some checking here that all the fps work...
7575
self.dir2GCMs = dir2GCMs
7676

77-
def get_filename(self, GCM, scenario, variable, start=2015, end=2100):
77+
def get_filename(self, GCM, scenario, variable, start=1950, end=2100):
7878
"""
7979
"""
8080
if GCM == "NorESM1-M":

compass/landice/tests/ismip6_GrIS_forcing/forcing_gen/forcing_gen.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ racmo_smb_fn = smb_rec.1958-2019.BN_RACMO2.3p2_FGRN055_GrIS.MM.nc
99
climatology_start = 1960
1010
climatology_end = 1989
1111

12+
[TF_ref_climatology]
13+
GCM = MIROC5
14+
climatology_start = 1990
15+
climatology_end = 2014
16+
1217
[ISMIP6_GrIS_Forcing]
1318

1419
# full path to MALI mesh forcing data will be regridded onto

compass/landice/tests/ismip6_GrIS_forcing/process_forcing.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ def process_variable(self, GCM, scenario, var, forcing_fp, start, end):
107107
drop_variables=vars_2_drop,
108108
use_cftime=True)
109109

110-
# mask of desired time indices
111-
mask = remapped_ds.time.dt.year.isin(range(start, end))
110+
# create mask of desired time indices. Include forcing from year prior
111+
# to requested start date since forcing in July but sims start in Jan
112+
mask = remapped_ds.time.dt.year.isin(range(start - 1, end))
112113
# drop the non-desired time indices from remapped dataset
113114
remapped_ds = remapped_ds.where(mask, drop=True)
114115
# add xtime variable based on `time`

0 commit comments

Comments
 (0)