Skip to content

Commit

Permalink
Modify ensemble methods to match mpas ensembles too
Browse files Browse the repository at this point in the history
  • Loading branch information
mkstratos committed Aug 31, 2022
1 parent d6905b3 commit eb09fcd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions evv4esm/ensembles/e3sm.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@ def component_monthly_files(dir_, component, ninst, hist_name="h0", nmonth_max=1
else:
date_search = "????-??"

base = "{d}/*{c}_????.{n}.{ds}.nc".format(d=dir_, c=component, n=hist_name, ds=date_search)
def component_monthly_files(dir_, component, ninst, hist_name="hist", nmonth_max=24, date_style="short"):
base = "{d}/*{c}_????.{n}.????-??-??.nc".format(d=dir_, c=component, n=hist_name)
search = os.path.normpath(base)
result = sorted(glob.glob(search))

Expand Down Expand Up @@ -150,4 +151,4 @@ def load_mpas_climatology_ensemble(files, field_name, mask_value=None):
if mask_value:
ens_out = np.ma.masked_less(ens_out, mask_value)

return {"data": ens_out, "desc": var_desc}
return {"data": ens_out, "desc": var_desc}

0 comments on commit eb09fcd

Please sign in to comment.