Step-by-step guide

In the MARS Retrieval icon, the menu for the Class parameter does not explicitly show ERA5, but it is there! The icon employs a system of aliases, and classes ESAT, ERA5 and EA all refer to the same class. Because ESAT appears first in the configuration file, this is what appears in the menu. Select it in order to retrieve ERA5 data. In Python or Macro code, any of the three names will work. Here is some sample Python code that retrieves and plots relative humidity from ERA5:

import metview as mv

rh = mv.retrieve(
    class_   = "era5",
    type     = "fc",
    levelist = [700,800,900,1000],
    param    = "r",
    date     = 20201130,
    time     = 18,
    step     = 12,
    grid     = [1,1]
    )

mv.plot(rh)