libera_utils.footprint_matching.geometry.bounding_box_from_points#
- libera_utils.footprint_matching.geometry.bounding_box_from_points(center_lat_deg: float, center_lon_deg: float, lats: ArrayLike, lons: ArrayLike, *, truncated: bool = False) BoundingBox#
Build the lat/lon bounding box of one footprint from its boundary points.
Single-footprint form of
bounding_box_from_points_batch(), which documents the pole, dateline and polar handling.- Parameters:
center_lat_deg (float) – Footprint anchor, degrees; used only for the pole-enclosure test.
center_lon_deg (float) – Footprint anchor, degrees; used only for the pole-enclosure test.
lats (array_like) – Boundary-point latitudes and longitudes, degrees.
lons (array_like) – Boundary-point latitudes and longitudes, degrees.
truncated (bool, optional) – Limb-truncation flag carried onto the box.
- Returns:
The enclosing box.
- Return type: