pre_processors
extract
- class anemoi.inference.pre_processors.extract.ExtractBase(context: Context, metadata: Metadata)
Bases:
ProcessorBase class for pre-processors that extract data from the state.
- class anemoi.inference.pre_processors.extract.ExtractSlice(context: Context, metadata: Metadata, *slice_args: int)
Bases:
ExtractBaseExtract a subset of points from the state based on a slice.
- Parameters:
context (Context) – The context in which the processor is running.
metadata (Metadata) – Metadata corresponding to the dataset this processor is handling.
slice_args (int) – Arguments to create a slice object. This can be a single integer or a tuple of integers representing the start, stop, and step of the slice.