StormScopeGOESConditioned¶
NANWC202680 GBNVIDIAPyTorch
Import path: earth2studio.models.px.StormScopeGOESConditioned
Documentation¶
Bases: StormScopeGOES
StormScope GOES forecasts conditioned on numerical weather prediction fields.
Used by the legacy 6km_1hr nearcasting variant, which conditions each step
on 500 hPa geopotential (z500) at the input times.
StormScopeGOES.load_model returns this class for variants with
conditioning variables. Conditioning follows the same protocol as
StormScopeMRMS: pass the initial conditioning history, then the
new frames at the lead times of each forecast.
Parameters are as for StormScopeGOES, except that
conditioning_variables, conditioning_means and conditioning_stds
are required.
__call__ ¶
create_iterator ¶
create_iterator(
x: DataArray, conditioning: DataArray
) -> Generator[
DataArray,
DataArray | tuple[DataArray, ...] | None,
None,
]
Create an iterator for conditioned GOES time-integration.
Parameters:
-
x(DataArray) –Initial GOES history.
-
conditioning(DataArray) –Initial conditioning history. Send the new conditioning frames at the lead times of the latest yielded forecast to advance.
Yields:
-
DataArray–Forecast fields, beginning with the first prediction.
load_default_package
classmethod
¶
load_default_package() -> Package
Load the default StormScope package from Hugging Face.
load_model
classmethod
¶
load_model(
package: Package,
model_name: Literal["6km_1hr"] = "6km_1hr",
amp: bool = True,
compile: bool = False,
) -> Self
Load a conditioned GOES variant from a package.
Parameters:
-
package(Package) –Package to load model from.
-
model_name(Literal['6km_1hr'], default:'6km_1hr') –Conditioned variant to load, by default
"6km_1hr". -
amp(bool, default:True) –Enable automatic mixed precision (autocast) for the sampler's network forward passes. Default is True.
-
compile(bool, default:False) –Compile each staged expert with
torch.compile("reduce-overhead"). Default is False.
Returns:
-
Self–Instantiated StormScopeGOESConditioned model.