ssapy_toolkit.Coordinates.lon_lat_bbox

Functions

bbox_min(lons, lats)

Compute the minimal bounding box for points given by lats/lons. Returns: (lat_min, lat_max, lon_left, lon_right, lon_span_deg).

ssapy_toolkit.Coordinates.lon_lat_bbox.bbox_min(lons, lats)[source]

Compute the minimal bounding box for points given by lats/lons. Returns:

(lat_min, lat_max, lon_left, lon_right, lon_span_deg)

Notes:
  • lon_left/lon_right are representatives in [-180, 180).

  • If lon_left > lon_right, the bbox crosses the antimeridian.

  • lon_span_deg is the minimal circular span covering all longitudes.