i7aof.grid¶
High-level API for grid-related functionality. See i7aof.grid for developer details.
- i7aof.grid.ismip.get_horiz_res_string(config)¶
Get the horizontal resolution string from the configuration.
- Parameters:
config (mpas_tools.config.MpasConfigParser) – Configuration object with grid parameters.
- Returns:
The horizontal resolution as a string.
- Return type:
str
- i7aof.grid.ismip.get_ismip_grid_filename(config)¶
Get the ISMIP grid filename from the configuration.
- Parameters:
config (mpas_tools.config.MpasConfigParser) – Configuration object with grid parameters.
- Returns:
The ISMIP grid filename.
- Return type:
str
- i7aof.grid.ismip.get_res_string(config, extrap: bool = False)¶
Get the resolution string from the configuration.
- Parameters:
config (mpas_tools.config.MpasConfigParser) – Configuration object with grid parameters.
extrap (bool, optional) – If True, use
dz_extrap
for the vertical component of the resolution string.
- Returns:
The resolution as a string combining horizontal and vertical resolutions.
- Return type:
str
- i7aof.grid.ismip.get_ver_res_string(config, extrap: bool = False)¶
Get the vertical resolution string from the configuration.
- Parameters:
config (mpas_tools.config.MpasConfigParser) – Configuration object with grid parameters.
extrap (bool, optional) – If True, use
dz_extrap
instead ofdz
for the resolution.
- Returns:
The vertical resolution as a string.
- Return type:
str
- i7aof.grid.ismip.write_ismip_grid(config)¶
Write the ISMIP grid to a NetCDF file.
- Parameters:
config (mpas_tools.config.MpasConfigParser) – Configuration object with grid parameters.