pyiem.models.igra module#
Data Model for IGRA.
- class pyiem.models.igra.SoundingHeader(*, station, valid, release_valid, p_src, np_src, geom)[source]#
Bases:
BaseModelA Center Weather Advisory.
- Parameters:
- model_config = {'arbitrary_types_allowed': True}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
- p_src: Annotated[str, FieldInfo(annotation=NoneType, required=True, description='Pressure Source')]#
- 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:
BaseModelRepresents a sounding record.
- 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)])]#
- gph: Annotated[int | None, FieldInfo(annotation=NoneType, required=True, description='Geopotential Height', metadata=[Ge(ge=0)])]#
- temp: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Temperature', metadata=[Ge(ge=-100)])]#
- 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:
BaseModelRepresents a sounding.
- Parameters:
header (SoundingHeader)
records (list[SoundingRecord])
- header: SoundingHeader#
- records: list[SoundingRecord]#
- model_config = {}#
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].