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: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Pressure Source')]#
np_src: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Number of Pressure Levels Source')]#
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: Annotated[datetime | None, FieldInfo(annotation=NoneType, required=True, description='Valid Time')]#
press: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Pressure', metadata=[Ge(ge=0)])]#
pflag: str#
gph: Annotated[int | None, FieldInfo(annotation=NoneType, required=True, description='Geopotential Height', metadata=[Ge(ge=0)])]#
zflag: str#
temp: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Temperature', metadata=[Ge(ge=-100)])]#
tflag: str#
rh: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Relative Humidity', metadata=[Gt(gt=0), Lt(lt=105)])]#
dewp: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Dewpoint Temperature', metadata=[Ge(ge=-100)])]#
wdir: Annotated[int | None, FieldInfo(annotation=NoneType, required=True, description='Wind Direction', metadata=[Ge(ge=0), Le(le=360)])]#
wspd: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Wind Speed', metadata=[Ge(ge=0)])]#
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].