Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where is 2t ? #25

Open
paapu88 opened this issue Aug 23, 2023 · 0 comments
Open

Where is 2t ? #25

paapu88 opened this issue Aug 23, 2023 · 0 comments

Comments

@paapu88
Copy link

paapu88 commented Aug 23, 2023

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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant