model.runtime.configs.site_simulation_config

Site-simulation runtime configuration.

Module Contents

Classes

DomainConfig

Spatial domain selection under the domain block.

SiteTimeConfig

Simulation time window under the time block.

SiteSpinupConfig

Spinup settings under the spinup block.

SiteSimulationConfig

Top-level site_simulation block for a forward run at site scale.

API

class model.runtime.configs.site_simulation_config.DomainConfig

Bases: model.runtime.configs.base_config.BaseConfig

Spatial domain selection under the domain block.

Attributes

selection : str or list all for 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.BaseConfig

Simulation time window under the time block.

start and end are ISO date strings bounding the run; None uses 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.BaseConfig

Spinup settings under the spinup block.

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; 0 disables 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.BaseConfig

Top-level site_simulation block 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; None runs 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()