Persistence¶
GlobalNVIDIAPyTorch
Import path: earth2studio.models.px.Persistence
Documentation¶
Bases: Module, PrognosticMixin
Persistence model that generates a forecast by applying the identity operator on the initial condition and indexing the lead time by 6 hours. Primarily used in testing.
Parameters:
-
variable(Union[str, List[str]]) –The variable or list of variables predicted by the model.
-
domain_coords(CoordSystem | GridDefinition | str) –Domain coordinates, grid definition, or registered grid name.
-
history(int, default:1) –Specifies the number of previous time steps to include as input, by default set to 1.
-
dt(timedelta64, default:timedelta64(6, 'h')) –Time-step size of model between inputs and output, by default np.timedelta64(6, "h")
__call__ ¶
create_iterator ¶
Yield forecasts starting with the first prediction after the input.
With a level 2 checkpoint, the latest forecast is saved after each yield and
a resumed run continues from it instead of re-initializing from x.
Parameters:
-
x(DataArray) –Initial history matching
input_coords().
Yields:
-
DataArray–Persisted forecasts after the rear hook. The front hook runs before subsequent steps; both hooks feed recurrence directly.