process

Contents

process#

eoio.interface.process(ds: Dataset, processors: Dict[str, Any], context: Context | None) Dataset[source]#

Runs a user-defined processing pipeline on an xarray Dataset.

Parameters:
  • ds

    Input xarray.Dataset to be processed.

    This dataset is passed sequentially through each processor defined in processors

  • processors

    Definition of post-processing steps to apply after reading (e.g. interpolation, unit conversion, etc.).

    Dictionary keys should be the names of the processors to run. The associated entry should be a subdictionary of parameters for that processor. Required parameters are defined at the processor level.

  • context – Optional processing context (reader info, metadata view, logger, etc.).

Returns:

xarray.Dataset The processed dataset after all configured processors have been applied successfully