compass.landice.mesh.interp_gridded2mali

compass.landice.mesh.interp_gridded2mali(self, source_file, mali_scrip, parallel_executable, nProcs, dest_file, proj, variables='all', hull_path=None)[source]

Interpolate gridded dataset (e.g. MEASURES, BedMachine) onto a MALI mesh

Parameters:
  • source_file (str) – filepath to the source gridded datatset to be interpolated

  • mali_scrip (str) – name of scrip file corresponding to destination MALI mesh

  • parallel_executable (str) – executable needed to launch a parallel job

  • nProcs (int) – number of processors to use for generating remapping weights

  • dest_file (str) – MALI input file to which data should be remapped

  • proj (str) – projection of the source dataset

  • variables ("all" or list of strings) – either the string “all” or a list of strings

  • hull_path (matplotlib.path.Path or None, optional) – Pre-built buffered concave boundary of the destination mesh footprint, as returned by compass.landice.mesh.build_dst_scrip_hull(). When provided, the boundary is not recomputed from mali_scrip, which avoids redundant I/O and computation when this function is called multiple times with the same destination mesh.

Returns:

masked_source_scrip (str) – Path to the masked source SCRIP file written during interpolation.