Skip to content

Commit 84cadef

Browse files
authored
Merge pull request #18 from LIVVkit/mkstratos/mvksi-fixes
Fix issues running kso on mpas sea ice
2 parents f4f2afa + 037e50a commit 84cadef

3 files changed

Lines changed: 17 additions & 2 deletions

File tree

evv4esm/ensembles/e3sm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ def file_date_str(case_file, style="short", hist_name="h0"):
5555
search_regex = r"{}\.[0-9]+-[0-9]+-[0-9]+.nc".format(hist_name)
5656
elif style == "short":
5757
search_regex = r"{}\.[0-9]+-[0-9]+.nc".format(hist_name)
58+
elif style == "yronly":
59+
search_regex = r"{}\.[0-9]+.nc".format(hist_name)
5860
else:
5961
search_regex = r"{}\.[0-9]+-[0-9]+.nc".format(hist_name)
6062
result = re.search(search_regex, case_file).group(0)
@@ -68,6 +70,8 @@ def component_monthly_files(
6870
date_search = "????-??-??-??"
6971
elif date_style == "med":
7072
date_search = "????-??-??"
73+
elif date_style == "yronly":
74+
date_search = "????"
7175
else:
7276
date_search = "????-??"
7377

evv4esm/extensions/kso.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,20 +289,25 @@ def case_files(args):
289289
key1 += "1"
290290
key2 += "2"
291291

292+
if args.component in ["mpassi"]:
293+
date_style = "yronly"
294+
else:
295+
date_style = "med"
296+
292297
f_sets = {
293298
key1: e3sm.component_monthly_files(
294299
args.test_dir,
295300
args.component,
296301
args.ninst,
297302
hist_name=args.hist_name,
298-
date_style="med",
303+
date_style=date_style,
299304
),
300305
key2: e3sm.component_monthly_files(
301306
args.ref_dir,
302307
args.component,
303308
args.ninst,
304309
hist_name=args.hist_name,
305-
date_style="med",
310+
date_style=date_style,
306311
),
307312
}
308313

evv4esm/extensions/ocean_vars.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,11 @@
55
"ssh{}",
66
"velocityMeridional{}",
77
"velocityZonal{}"
8+
],
9+
"seaice": [
10+
"uVelocityGeo{}",
11+
"vVelocityGeo{}",
12+
"iceAreaCell{}",
13+
"iceVolumeCell{}"
814
]
915
}

0 commit comments

Comments
 (0)