compass.landice.mesh.run_optional_interpolation

compass.landice.mesh.run_optional_interpolation(self, mesh_filename, src_proj, parallel_executable, nProcs, bedmachine_dataset=None, measures_dataset=None, subset_bounds=None)[source]

Run optional interpolation from high-resolution BedMachine and MEaSUREs datasets and perform some necessary cleanup. This can require many more resources than the rest of the mesh generation process, so it is usually desirable to skip this step when prototyping meshes. This step is only run if interpolate_data is set to True in the config file and the necessary dataset paths are provided.

Parameters:
  • self (compass.step.Step) – Step instance providing logger and context

  • mesh_filename (str) – Destination MALI mesh file to interpolate to

  • src_proj (str) – Source dataset projection for SCRIP generation

  • parallel_executable (str) – Parallel launcher executable (e.g. srun/mpirun)

  • nProcs (int or str) – Number of processes for regridding weight generation

  • bedmachine_dataset (str, optional) – BedMachine dataset path; if None this interpolation is skipped

  • measures_dataset (str, optional) – MEaSUREs dataset path; if None this interpolation is skipped

  • subset_bounds (list of float, optional) – Optional source-dataset subset bounds in the form [x_min, x_max, y_min, y_max]. If provided, BedMachine and MEaSUREs datasets are subsetted before SCRIP generation and interpolation.