eoio.readers.emit.data_io module

eoio.readers.emit.data_io module#

Image I/O helpers for EMIT based on the logic from the original reader.

eoio.readers.emit.data_io.attach_coords_from_groups(ds: DataArray, path: str) DataArray[source]#

Attach wavelength and location coordinates from groups in the EMIT file.

Parameters:
  • ds (xr.DataArray) – The data array to which coordinates will be attached.

  • path (str) – Path to the EMIT file.

Returns:

The data array with attached coordinates.

Return type:

xr.DataArray

eoio.readers.emit.data_io.read_dataset(ds: xr.Dataset, src: xr.Dataset, meas_vars: Sequence[str] | None = None, subset: EMITSubset | None = None) xr.Dataset[source]#

Read EMIT radiance dataset from the L1B file and return an xarray.Dataset.

Parameters:
  • ds (xr.Dataset) – The target dataset to populate.

  • src (xr.Dataset) – The source dataset containing radiance data.

  • meas_vars (Sequence[str], optional) – List of measurement variable names to include.

  • subset (dict, optional) – Subset dictionary specifying region of interest.

Returns:

The populated dataset with radiance data.

Return type:

xr.Dataset

Notes

This function implements the essential transformations present in the original monolithic reader.