rompy.schism.data.SCHISMDataSflux#
- pydantic model rompy.schism.data.SCHISMDataSflux[source]#
- Fields:
air_1 (rompy.core.data.DataBlob | rompy.schism.data.SfluxAir | None)
air_2 (rompy.core.data.DataBlob | rompy.schism.data.SfluxAir | None)
prc_1 (rompy.core.data.DataBlob | rompy.schism.data.SfluxPrc | None)
prc_2 (rompy.core.data.DataBlob | rompy.schism.data.SfluxPrc | None)
rad_1 (rompy.core.data.DataBlob | rompy.schism.data.SfluxRad | None)
rad_2 (rompy.core.data.DataBlob | rompy.schism.data.SfluxRad | None)
- Validators:
check_weights
»all fields
- field data_type: Literal['sflux'] = 'sflux'#
Model type discriminator
- Validated by:
- validator check_weights » all fields[source]#
Check that relative weights for each pair add to 1.
- Parameters:
cls – The class.
v – The variable.
- Raises:
ValueError – If the relative weights for any variable do not add up to 1.0.
- get(destdir: str | Path, grid: SCHISMGrid | None = None, time: TimeRange | None = None) Path [source]#
Writes SCHISM sflux data from a dataset.
- Parameters:
destdir (str | Path) – The destination directory to write the sflux data.
grid (Optional[SCHISMGrid], optional) – The grid type. Defaults to None.
time (Optional[TimeRange], optional) – The time range. Defaults to None.
- Returns:
The path to the written sflux data.
- Return type:
Path