neural_lam.datastore#
Datastore backends for loading and serving weather model data.
Submodules#
Attributes#
Functions#
|
Instantiate a datastore based on its short-name identifier. |
Package Contents#
- neural_lam.datastore.init_datastore(datastore_kind: str, config_path: str | pathlib.Path, n_boundary_points: int | None = None) base.BaseDatastore[source]#
Instantiate a datastore based on its short-name identifier.
- Parameters:
datastore_kind (str) – Key corresponding to one of
DATASTORES.config_path (str | pathlib.Path) – Path to the datastore-specific configuration file.
n_boundary_points (int, optional) – Forwarded to
MDPDatastorewhendatastore_kindis"mdp", overriding its default boundary-mask width. Must be left unset for other datastore kinds.
- Returns:
Concrete datastore instance configured for
config_path.- Return type:
- Raises:
NotImplementedError – If
datastore_kindis not registered.ValueError – If
n_boundary_pointsis set for adatastore_kindother thanMDPDatastore.SHORT_NAME.
- neural_lam.datastore.DATASTORES#
- neural_lam.datastore.DATASTORE_CLASSES#