libera_utils.footprint_matching.readers.base.split_dateline#

libera_utils.footprint_matching.readers.base.split_dateline(bbox: BoundingBox) → list[BoundingBox]#

Split an antimeridian-crossing box into its west and east halves.

A wrapping box is given in the [0, 360) form with lon_min < 180 < lon_max (see BoundingBox). The west half [lon_min, 180] is already a plain box; the east half runs from -180 to lon_max - 360.

Parameters:

bbox (BoundingBox) – Any box.

Returns:

[bbox] for a box that does not wrap, else [west, east].

Return type:

list[BoundingBox]