compass.landice.mesh.clip_mesh_to_bounding_box

compass.landice.mesh.clip_mesh_to_bounding_box(mask_ds, base_ds, bounding_box)[source]

Set cells to culled if they lay outside the bounding box

Parameters:
  • mask_ds (xr.Dataset) – mask dataset, generated by compute_mpas_region_mask

  • base_ds (xr.Dataset) – unculled mesh dataset

  • bounding_box (list of 4 ints) – Bounding box [x_min, x_max, y_min, y_max] to cull mesh outside of

Returns:

mask_ds (xarray.Dataset) – mask dataset with updated masks based on bounding box