ecmwf / ecmwf-opendata

A package to download ECMWF open data
Apache License 2.0
174 stars 27 forks source link

Where is 2t ? #25

Open paapu88 opened 1 year ago

paapu88 commented 1 year ago

Dear Developers,

When I download latest open data with the script below (adapted from README.md of this repo) , there is no variable 2t (and variable 10u is u10 and 10v is v10, not as in documented in this repo). Is it missing in the open data or have I made a mistake?

Variables I see are:

['v', 'u', 'skt', 'gh', 'r', 'st', 't', 'tp', 'msl', 'sp', 'v10', 'tcwv', 'u10', 'q', 'vo', 'd', 'ro', 'time', 'step', 'isobaricInhPa', 'latitude', 'longitude', 'valid_time', 'surface', 'depthBelowLandLayer', 'meanSea', 'heightAboveGround', 'entireAtmosphere']

If I remove the beta=True in the script below, I get even less variables.

terveisin, Markus

from ecmwf.opendata import Client
import xarray as xr
import matplotlib.pyplot as plt

client = Client("ecmwf", beta=True)

filename_osuite = "open_data_operational.grib"

dl = client.retrieve(
        step=[0],
        stream="oper",
        type="fc",
        target=filename_osuite,
)
print(dl.datetime)

ds = xr.open_dataset(filename_osuite, engine="cfgrib")

# Get the names of all variables
variable_names = list(ds.variables.keys())

# Print the variable names
print("Variable Names:", variable_names)