model.runtime.configs.site_simulation_config¶
Site-simulation runtime configuration.
Module Contents¶
Classes¶
Spatial domain selection under the |
|
Simulation time window under the |
|
Spinup settings under the |
|
Top-level |
API¶
- class model.runtime.configs.site_simulation_config.DomainConfig¶
Bases:
model.runtime.configs.base_config.BaseConfigSpatial domain selection under the
domainblock.Attributes
selection : str or list
allfor every site, a list of site IDs, a path to a site-list file, or a four-value bounding box[lat_min, lat_max, lon_min, lon_max](grid mode only). The form is resolved by :meth:selection_kind. drop_invalid_sites : bool Whether to drop sites whose inputs contain NaN/Inf during loading.- selection: object¶
‘all’
- drop_invalid_sites: bool¶
True
- classmethod from_dict(raw)¶
- resolved_selection()¶
- selection_kind()¶
- validate()¶
- class model.runtime.configs.site_simulation_config.SiteTimeConfig¶
Bases:
model.runtime.configs.base_config.BaseConfigSimulation time window under the
timeblock.startandendare ISO date strings bounding the run;Noneuses the full driver record.- start: object¶
None
- end: object¶
None
- classmethod from_dict(raw)¶
- validate()¶
- class model.runtime.configs.site_simulation_config.SiteSpinupConfig¶
Bases:
model.runtime.configs.base_config.BaseConfigSpinup settings under the
spinupblock.Attributes
start, end : str, optional ISO date bounds of the spinup driver window; both set or both
None. cycles : int Number of times the spinup window is repeated (no_grad) to warm-start prognostic states before each run;0disables spinup.- start: object¶
None
- end: object¶
None
- cycles: int¶
0
- classmethod from_dict(raw)¶
- validate()¶
- class model.runtime.configs.site_simulation_config.SiteSimulationConfig¶
Bases:
model.runtime.configs.base_config.BaseConfigTop-level
site_simulationblock for a forward run at site scale.Attributes
domain, time, spinup : Site selection, time window, and spinup settings. output_dir : str, optional Directory for the simulation output NetCDF and summary. nn_weights_path : str, optional Checkpoint of learned NN parameter weights to load;
Noneruns with prescribed parameters only.- domain: model.runtime.configs.site_simulation_config.DomainConfig¶
‘field(…)’
- time: model.runtime.configs.site_simulation_config.SiteTimeConfig¶
‘field(…)’
- spinup: model.runtime.configs.site_simulation_config.SiteSpinupConfig¶
‘field(…)’
- output_dir: object¶
None
- nn_weights_path: object¶
None
- classmethod from_dict(raw)¶
- validate()¶