esm_catalog_utils.parse_path_cesm#

esm_catalog_utils.parse_path_cesm(path, case)#

Separate a CESM output file path into components.

The returned dictionary has key-value pairs for the following keys, if applicable:

  • “scomp”: specific model component name immediately after case, e.g., cam, clm2, mom6

  • “component”: generic component name, derived from scomp

  • “stream”: name of output steam, e.g., h, h0, h.nday1

  • “varname”: name of variable, for timeseries files

  • “datestring”: string represent date, if present

Parameters:
  • path (str or path-like) – Path being separated/parsed.

  • case (str) – Name of case that generated, and is first component of, path.

Return type:

dict

Notes

Assumes that timeseries files have a datestring with a date range.