eoio.readers.emit.angles module

Contents

eoio.readers.emit.angles module#

Angles handling for EMIT (adds solar/viewing angles).

eoio.readers.emit.angles.add_angles(ds: Dataset, obs_ds: Dataset, angle_names: list[str]) Dataset[source]#

Add observation and solar angles to the dataset from the corresponding OBS file.

Parameters:
  • ds (xr.Dataset) – The target dataset to which angles will be added.

  • obs_ds (xr.Dataset) – The observation dataset (OBS) containing angle information.

  • angle_names (list of str) – List of angle variable names to add.

Returns:

The dataset with added angle variables.

Return type:

xr.Dataset

Notes

Mirrors the behaviour of the former read_angles() method.