Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

grib_get_string("shortName")

Ehsan Taghizade
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 27, 2021

Hi,
I'd like to plot a cross-section of era5 data, using the following link:

https://confluence.ecmwf.int/display/METV/Vertical+cross+section+-+Wind+shear

However, I faced a problem at first. Based on the above link, it seems after reading data the output of set(fs.grib_get_string("shortName")) command must show the short name of variables in fs (data), but it prints nothing for my data!

import metview as mv
fs = mv.read(source="./pvtw_20051219.grib")
set(fs.grib_get_string("shortName"))

As it was mentioned after the last line nothing is being shown. But, in the mentioned link, shows the output as below:

{'lnsp', 'q', 't', 'u', 'v', 'z'}

In my case, I've downloaded (potential vorticity, temperature, u and v-components of wind), as mentioned for ERA5 data.

I'll be thankful if I have any help.

Sincerely,

Ehsan Taghizade

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events