compass.landice.tests.ismip6_forcing.atmosphere.create_mapfile_smb.build_mapping_file(config, cores, logger, ismip6_grid_file, mapping_file, mali_mesh_file=None, method_remap=None)[source]

Build a mapping file if it does not exist. Mapping file is then used to remap the ismip6 source file in polarstero coordinate to unstructured mali mesh

  • config (compass.config.CompassConfigParser) – Configuration options for a ismip6 forcing test case

  • cores (int) – the number of cores for the ESMF_RegridWeightGen

  • logger (logging.Logger) – A logger for output from the step

  • ismip6_grid_file (str) – ismip6 grid file

  • mapping_file (str) – weights for interpolation from ismip6_grid_file to mali_mesh_file

  • mali_mesh_file (str, optional) – The MALI mesh file is used if mapping file does not exist

  • method_remap (str, optional) – Remapping method used in building a mapping file