compass.landice.mesh.get_mesh_config_bounding_box

compass.landice.mesh.get_mesh_config_bounding_box(section, default_bounds=None)[source]

Get bounding-box coordinates from a mesh config section.

Parameters:
  • section (configparser.SectionProxy) – Mesh config section containing x_min, x_max, y_min, and y_max

  • default_bounds (list of float, optional) – Default bounds in the form [x_min, x_max, y_min, y_max] to use when config values are missing or set to None

Returns:

bounding_box (list of float) – Bounding box in the form [x_min, x_max, y_min, y_max]