Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Some users are interested on the height of the different model levels. This Python script will allow you to compute the geopotential on each one. The starting point is the geopotential and the pressure (z and lnsp) on the surface. The output will be written in grib format, writing providing the height in meters for each level.

For this use case, you need to retrieve in grib format both temperature (t) and Specific humidity (q) for each model level. Besides, you need both surface geopotential (z) and logarithm of surface pressure (lnsp) for model level = 1. Both files have to be synchronized using the same class, stream, date, time, step and gridType. The script will iterate through the date/time/step parameters, allowing you to get the values for multiple times.

If you are using MARS to retrieve the data, we have prepared a script that will allow you to get the data and then call the Python script automatically. You can set the date, time, step, class, grid resolution, type, area... The script will create and execute the MARS requests to get (t,q,z,lnsp). You can find more information about the script here.

Download

...