eoio.readers.sentinel3_slstr.masks module

Contents

eoio.readers.sentinel3_slstr.masks module#

Mask helpers for Sentinel-3 SLSTR reader.

eoio.readers.sentinel3_slstr.masks.add_masks(*, ds: Dataset, layout: S3SLSTRLayout, grids: list[str], clip_boxes: Dict[str, Tuple[float, float, float, float]] | None, config: Any, use_chunks: bool, chunks: Dict[str, int] | None)[source]#

Read quality masks and add them to an xarray Dataset.

Parameters:
  • ds – Dataset to which quality mask variables will be added.

  • layout – Layout helper for locating the relevant mask file.

  • grids – List of grid identifiers to read masks for (e.g. [“an”, “ao”]).

  • clip_boxes – Bounding boxes for subsetting the mask data, or None.

  • config – Resolved reader configuration containing parameters used by the reader.

  • use_chunks – Whether to compute and apply chunking heuristics.

  • chunks – Optional chunking specification passed to the raster reader.

Returns:

Dataset with mask variables merged in.