rompy.schism.data.SCHISMDataSflux#

pydantic model rompy.schism.data.SCHISMDataSflux[source]#
Fields:
Validators:
field air_1: DataBlob | SfluxAir | None = None#

sflux air source 1

Validated by:
field air_2: DataBlob | SfluxAir | None = None#

sflux air source 2

Validated by:
field data_type: Literal['sflux'] = 'sflux'#

Model type discriminator

Validated by:
field prc_1: DataBlob | SfluxPrc | None = None#

sflux prc source 1

Validated by:
field prc_2: DataBlob | SfluxPrc | None = None#

sflux prc source 2

Validated by:
field rad_1: DataBlob | SfluxRad | None = None#

sflux rad source 1

Validated by:
field rad_2: DataBlob | SfluxRad | None = None#

sflux rad source 2

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