landcover_ascii_to_nc#

Convert mHM landcover ASCII maps to CF-compliant NetCDF files.

The module reads land-cover periods from an mHM namelist, converts each ASCII grid to NetCDF, adds time metadata for the configured validity period, and writes files suitable for mHM v6 setup workflows.

Authors#

  • Jeisson Leal

Functions#

add_time_bounds_cf(ds, input_infos)

Take a dataset with a datetime64 'time' coordinate.

convert_lc_ascii_to_nc(input_nml, output[, ...])

Workflow for converting landcover ASCII files to NetCDF.

parse_nml_for_landcover(nml_text)

Extract landcover-relevant information from an mHM namelist.