compass.landice.tests.ismip7_forcing.create_mapfile.build_mapping_file
- compass.landice.tests.ismip7_forcing.create_mapfile.build_mapping_file(config, logger, ismip7_grid_file, mapping_file, mali_mesh_file=None, method_remap=None, projection=None)[source]
Build a mapping file for regridding from an ISMIP7 polar stereographic grid to the MALI unstructured mesh.
- Parameters:
config (compass.config.CompassConfigParser) – Configuration options for the test case
logger (logging.Logger) – A logger for output from the step
ismip7_grid_file (str) – An ISMIP7 grid file (with x/y coordinates)
mapping_file (str) – Output mapping file path
mali_mesh_file (str, optional) – The MALI mesh file
method_remap (str, optional) – Remapping method: ‘bilinear’, ‘neareststod’, or ‘conserve’
projection (str, optional) – Projection flag for SCRIP generation (e.g., ‘ais-bedmap2’, ‘gis-bamber’). If not provided, reads from ice_sheet_params.