Skip to content

Metfcts models

smhi.models.metfcts_model

MetfctsMultiPoint

Bases: BaseModel

Multi point model.

Source code in smhi/models/metfcts_model.py
class MetfctsMultiPoint(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[MetfctsMultiPointSchema]

MetfctsPoint

Bases: BaseModel

Point model.

Source code in smhi/models/metfcts_model.py
class MetfctsPoint(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: MetfctsGeoPolygon
    status: int
    headers: Dict[str, str]
    df: pd.DataFrame
    df_info: DataFrame[MetfctsPointInfoSchema]