Geosatellite: API Reference#
- class yr_weather.Geosatellite(headers=None, use_cache=True)#
Bases:
APIClientA client for interacting with the MET Geosatellite API.
- get_image(area: Literal['africa', 'atlantic_ocean', 'europe', 'global', 'mediterranean'] = 'europe', img_type: Literal['infrared', 'visible'] = 'infrared', time: str | None = None, size: Literal['normal', 'small'] = 'normal') Response#
Get a geosatellite image.
- Parameters:
area (
SatArea) – Optional: The area for the image. Must be a validSatArea. Default is"europe".img_type (Literal["infrared", "visible"]) – Optional: The image type. Either “infrared” or “visible”. Default is
"infrared".time (
str) – Optional: The time formatted as described in MET.no’s documentation. Default isNone.size (Literal["normal, small"]) – Optional: Image resolution. Either “normal” or “small” for thumbnails. Default is
"normal".
- Returns:
A Response class enabling saving or further management of the data received.
- Return type: