...
- As a starting point, 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.
- Copy the template Python script to a text file and save it, for example as 'my_ERA-Interim_script_v1.py'.
- Adapt the template Python script to your requirements, taking the following remarks into account:
- In most cases, you will have to add lat/lon "grid" in your script, e.g., "grid": "1.0/1.0". This will enable you to download data on a regular lat/lon grid. And this is necessary if you download the data in NetCDF format.
- For an output in NetCDF format, add
:"format"
in your script. By default, output will be in GRIB format. Notice if you retrieve forecast data in NetCDF, please be aware of this potential issue."netcdf"
- If you specify
, the horizontal resolution is in decimal degrees. For more details, see this link. If not set, the archived grid as specified in the data documentation is used."grid"
- If you do not want global data, you can add
asN/W/S/E in lat/lon degrees. Southern latitudes and western longitudes must be given as negative numbers, e.g.,"area"
. If you set "area", you should also"area"
:
"75/-20/10/60"
add a lat/lon
as shown in c. For more details about "area", see this link.grid, e.g., "grid": "1.0/1.0",
- If you are retrieving forecast data (
), make sure that"type":"fc"
are specified. Note that if"steps"
is set to"type"
, then"fc"
is the time of the forecast."time"
- 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.
...