process_metadata_file()

Parse a metadata (D_*.TXT) file into a scenario + vars_info dict.

Usage

Source

process_metadata_file(file)

Parameters

file: str | Path
Path to a D_<ROOT>.TXT metadata file.

Returns

{"scenario": str, "vars_info": polars.DataFrame}
The scenario is one of "single", "single_multiple", or
"single_multiple_single".