forcings
- class anemoi.inference.forcings.Forcings(context: TensorHandler)
Bases:
ABCRepresents a forcings provider for the model.
- class anemoi.inference.forcings.ComputedForcings(context: TensorHandler, variables: list[str], mask: Any)
Bases:
ForcingsCompute forcings like cos_julian_day or insolation.
- class anemoi.inference.forcings.CoupledForcings(context: TensorHandler, input: Input, variables: list[str], mask: ndarray[tuple[Any, ...], dtype[Any]])
Bases:
ForcingsRetrieve forcings from the input.
- load_forcings_array(dates: list[str | datetime | int], current_state: dict[str, Any]) ndarray[tuple[Any, ...], dtype[Any]]
Load the forcings for the given dates.
- Parameters:
dates (List[Any]) – The list of dates for which to load the forcings.
current_state (State) – The current state of the model.
- Returns:
The loaded forcings as a numpy array.
- Return type:
- class anemoi.inference.forcings.ConstantForcings(context: TensorHandler, input: Input, variables: list[str], mask: ndarray[tuple[Any, ...], dtype[Any]])
Bases:
CoupledForcings
- class anemoi.inference.forcings.BoundaryForcings(context: TensorHandler, input: DatasetInput, variables: list[str], variables_mask: ndarray[tuple[Any, ...], dtype[Any]])
Bases:
ForcingsRetrieve boundary forcings from the input.