Skip to content

Eobs

This module contains functionality to download and load E-OBS data.

Fetches complete grid from https://surfobs.climate.copernicus.eu/dataaccess/access_eobs.php.

Example: Get elevantion of whole E-OBS grid
from springtime.datasets.meteo.eobs import EOBS
datasource = EOBS(product_type='elevation',
                variables=['land_surface_elevation'],
                years=[2000, 2002]
                )
datasource.download()
ds = datasource.load()
Example: Get all variables for a single point
from springtime.datasets.meteo.eobs import EOBSSinglePoint
datasource = EOBSSinglePoint(point=[5, 50],
                            product_type='ensemble_mean',
                            grid_resolution='0.25deg',
                            years=[2000,2002])
datasource.download()
df = datasource.load()
Example: Get elevation
from springtime.datasets.meteo.eobs import EOBSSinglePoint
datasource = EOBSSinglePoint(point=[5, 50],
                            product_type='elevation',
                            variables=['land_surface_elevation'],
                            years=[2000, 2002]
                            )
datasource.download()
df = datasource.load()

Example: Load all variables for a selection of points.

from springtime.datasets.meteo.eobs import EOBSMultiplePoints
datasource = EOBSMultiplePoints(points=[
                                    [5, 50],
                                    [5, 55],
                                ],
                                product_type='ensemble_mean',
                                grid_resolution='0.25deg',
                                years=[2000,2002])
datasource.download()
df = datasource.load()
Example: Load coarse mean temperature around amsterdam from 2002 till 2002
from springtime.datasets.meteo.eobs import EOBSBoundingBox

dataset = EOBSBoundingBox(
    years=[2000,2002],
    area={
        'name': 'amsterdam',
        'bbox': [4, 50, 5, 55]
    },
    grid_resolution='0.25deg'
)
dataset.download()
df = dataset.load()

EOBS

Bases: Dataset

E-OBS dataset.

Attributes:

Name Type Description
years

timerange. For example years=[2000, 2002] downloads data for three years.

resample

Resample the dataset to a different time resolution. If None, no resampling.

product_type Literal['ensemble_mean', 'ensemble_spread', 'elevation']

one of "ensemble_mean", "ensemble_spread", "elevation".

variables Sequence[Variable]

Some variables are specific for a certain product type.

grid_resolution Literal['0.25deg', '0.1deg']

either "0.25deg" or "0.1deg"

version Literal['26.0e']

currently only possible value is "26.0e"

download()

Download the data.

load()

Load the dataset from disk into memory.

This may include pre-processing operations as specified by the context, e.g. filter certain variables, remove data points with too many NaNs, reshape data.

EOBSSinglePoint

Bases: EOBS

E-OBS dataset for a single point.

Attributes:

Name Type Description
years

timerange. For example years=[2000, 2002] downloads data for three years.

resample

Resample the dataset to a different time resolution. If None, no resampling.

product_type

one of "ensemble_mean", "ensemble_spread", "elevation".

variables

Some variables are specific for a certain product type.

grid_resolution

either "0.25deg" or "0.1deg"

version

currently only possible value is "26.0e"

point Tuple[float, float]

Point as longitude, latitude in WGS84 projection.

download()

Download the data.

load()

Load the dataset from disk into memory.

This may include pre-processing operations as specified by the context, e.g. filter certain variables, remove data points with too many NaNs, reshape data.

EOBSMultiplePoints

Bases: EOBS

E-OBS dataset for a multiple points.

Attributes:

Name Type Description
years

timerange. For example years=[2000, 2002] downloads data for three years.

resample

Resample the dataset to a different time resolution. If None, no resampling.

product_type

one of "ensemble_mean", "ensemble_spread", "elevation".

variables

Some variables are specific for a certain product type.

grid_resolution

either "0.25deg" or "0.1deg"

version

currently only possible value is "26.0e"

keep_grid_location bool

If True, keep the eobs_longitude and eobs_latitude columns. If False, drop them.

points Points

Points as longitude, latitude in WGS84 projection.

download()

Download the data.

load()

Load the dataset from disk into memory.

This may include pre-processing operations as specified by the context, e.g. filter certain variables, remove data points with too many NaNs, reshape data.

EOBSBoundingBox

Bases: EOBS

E-OBS dataset for a multiple points.

Attributes:

Name Type Description
years

timerange. For example years=[2000, 2002] downloads data for three years.

resample

Resample the dataset to a different time resolution. If None, no resampling.

product_type

one of "ensemble_mean", "ensemble_spread", "elevation".

variables

Some variables are specific for a certain product type.

grid_resolution

either "0.25deg" or "0.1deg"

version

currently only possible value is "26.0e"

area NamedArea

A dictionary of the form {"name": "yourname", "bbox": [xmin, ymin, xmax, ymax]}.

download()

Download the data.

load()

Load the dataset from disk into memory.

This may include pre-processing operations as specified by the context, e.g. filter certain variables, remove data points with too many NaNs, reshape data.