latlon#

Create the latlon.nc grid description required by mHM.

The module builds compatible L0, L1, L11, and L2 grid definitions from headers, cell sizes, or existing files, checks grid alignment, and writes the combined latlon NetCDF file used by mHM/mRM setups.

Authors#

  • Jeisson Leal

  • Sebastian Müller

Functions#

add_optional_level(coords, level, ...[, ...])

Add optional level to the latlon dataset.

create_latlon(out_file, level0, level1[, ...])

Create the latlon.nc file from given ASCII headers.

get_header_from_file(file)

Get level-0 header from file.

xy_to_latlon(x, y[, crs])

Convert cartesian coordinates to lat-lon.