Skip to content

Mesan models

smhi.models.mesan_model

MesanMultiPoint

Bases: BaseModel

Multi point model.

Source code in smhi/models/mesan_model.py
class MesanMultiPoint(BaseModel):
    """Multi point model."""

    parameter: str
    parameter_meaning: str
    geo: bool
    downsample: int
    url: str
    approved_time: datetime
    reference_time: datetime
    valid_time: datetime
    status: int
    headers: Dict[str, str]
    df: DataFrame[MesanMultiPointSchema]

MesanPoint

Bases: BaseModel

Point model.

Source code in smhi/models/mesan_model.py
class MesanPoint(BaseModel):
    """Point model."""

    model_config = ConfigDict(arbitrary_types_allowed=True)

    longitude: float
    latitude: float
    url: str
    approved_time: datetime
    reference_time: datetime
    level_unit: str
    geometry: MesanGeometry
    status: int
    headers: Dict[str, str]
    df: pd.DataFrame
    df_info: DataFrame[MesanPointInfoSchema]