Versions Compared

Key

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

...

  1. Browse the ERA-Interim data catalogue for the data you are interested in, and in the last step make a selection in all boxes and click 'View the MARS request'. This shows a template Python script with your selected options.
  2. Copy the Python script to a text file and save it, for example as 'my_ERA-Interim_script_v1.py'
  3. If necessary, adapt the Python script to your requirements,e.g. change date, time and grid.
    1. For an output in netcdf format, specify "format" as "netcdf"
    2. If you specify "format" as "netcdf", then you will need to set "grid" e.g. "grid": "0.3/0.3". Otherwise, GRIB to netCDF conversion will fail. 
    3. To subset to a geographical area, specify "area" asN/W/S/E in geographic lat/long degrees. Southern latitudes and western longitudes must be given as negative numbers e.g. "area": "75/-20/10/60". Requires "grid" to be set to a regular grid e.g. "grid": "0.3/0.3".
    4. Change the "target": "CHANGEME", to the desired output path and file name, e.g. "data1.nc" or "./data/data1.grib". The default path is the current working directory.

...