pyiem.models.igra module#

Data Model for IGRA.

class pyiem.models.igra.SoundingHeader(*, station, valid, release_valid, p_src, np_src, geom)[source]#

Bases: BaseModel

A Center Weather Advisory.

Parameters:
model_config = {'arbitrary_types_allowed': True}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

station: str#
valid: datetime#
release_valid: datetime#
p_src: str#
np_src: str#
geom: Point#
class pyiem.models.igra.SoundingRecord(*, lvltyp1, lvltyp2, valid=None, press=None, pflag, gph=None, zflag, temp=None, tflag, rh=None, dewp=None, wdir=None, wspd=None)[source]#

Bases: BaseModel

Represents a sounding record.

Parameters:
lvltyp1: int#
lvltyp2: int#
valid: datetime | None#
press: float | None#
pflag: str#
gph: int | None#
zflag: str#
temp: float | None#
tflag: str#
rh: float | None#
dewp: float | None#
wdir: int | None#
wspd: float | None#
model_config = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

class pyiem.models.igra.SoundingModel(*, header, records)[source]#

Bases: BaseModel

Represents a sounding.

Parameters:
header: SoundingHeader#
records: list[SoundingRecord]#
model_config = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].