libera_utils.footprint_matching.readers.base.in_box#

libera_utils.footprint_matching.readers.base.in_box(lats: ndarray, lons: ndarray, bbox: BoundingBox) → ndarray#

Mask of the points inside a plain (non-wrapping) box, edges included.

Parameters:
  • lats (np.ndarray) – Point coordinates in degrees, longitude in -180..180, of the same shape.

  • lons (np.ndarray) – Point coordinates in degrees, longitude in -180..180, of the same shape.

  • bbox (BoundingBox) – A plain box, such as one half from split_dateline().

Returns:

Boolean array the shape of lats, true where the point lies inside bbox.

Return type:

np.ndarray