gordias.util.cmip_path.get_stem_base_part#

gordias.util.cmip_path.get_stem_base_part(path: Path | str) str#

Get base part of filename stem.

The base part of the stem is the CMIP/CORDEX-like filename stem without the first part, generally a variable name, and the last part, if the last part is a time range.

Parameters:

path (pathlib.Path | str) – Filename to get the stem base from.

Returns:

Stem base.

Return type:

str