Skip to content

Strang models

smhi.models.strang_model

StrangMultiPoint

Bases: BaseModel

Multi point model.

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

    parameter_key: int
    parameter_meaning: str
    valid_time: Optional[datetime]
    time_interval: Optional[str]
    url: str
    status: int
    headers: Dict[str, str]
    df: Optional[DataFrame[StrangMultiPointSchema]]

StrangParameter

Bases: BaseModel

Strang parameter model.

Source code in smhi/models/strang_model.py
class StrangParameter(BaseModel):
    """Strang parameter model."""

    key: Optional[int]
    meaning: Optional[str]
    time_from: Optional[datetime] = None
    time_to: Optional[Callable]

StrangPoint

Bases: BaseModel

Point model.

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

    parameter_key: int
    parameter_meaning: str
    longitude: float
    latitude: float
    time_from: Optional[datetime]
    time_to: Optional[datetime]
    time_interval: Optional[str]
    url: str
    status: int
    headers: Dict[str, str]
    df: Optional[DataFrame[StrangPointSchema]]