This page will give you a short overview on the recommended steps to retrieve data from MARS.
Explore the archive
The first step is to find out if the data you like to retrieve is actually archived in MARS. To do that, explore the MARS content by directly browsing the MARS Catalogue (authorisation required) or the MARS content overview which in turn contain links to the MARS Catalogue. Once you found the right fields, you can use Web-MARS to "Check for availability", to "Estimate download size" or to "Retrieve the selection", just a few fields, to verify that this is the data you expect to get. In the MARS Catalogue use Ctrl+Left-Mouse-Button to select/unselect multiple list items or Shift+Left-Mouse-Button to select a range. If now you like to retrieve larger data volumes (for more dates than you can get with one request in Web-MARS), to make the data retrieve part of a script etc. you need to create a MARS request and pass is to the MARS command.Create a MARS request
Once you found the right fields, let Web-MARS create a MARS request as a starting point by clicking on "View the MARS request" on the last page of the archive tree. Copy and paste this initial request into a file and add a line to specify your target file, e.g.target="myfile
". Your saved request file can now be used to retrieve the data by calling themars
command:% mars myrequestfile
If you have access to ECMWF computers, you can call mars e.g. on ecgate. However, all MARS requests are preferably done in a batch job, see below. Web users with access to MARS (users without access to ECMWF computers) need to install and use the mars command on their local system to Access MARS via the Web API.
Retrieve the data in a batch job
As MARS retrievals can use considerable resources, the general recommendation is to retrieve data via serial batch jobs on the ecgate server. A full ecgate batch job which retrieves fields from MARS, applies some computation and transfers the resulting data to a remote site, is provided with mars_ectrans.ksh. Once all this works fine, you might want to expand your script, e.g. to loop over several requests, write to multiple target files etc. For all modifications please consider the implications these might have reg. the resources like disk space and CPU time.
For further guidance please refer to the more detailed pages in this user guide.
3 Comments
Francesco Calcavecchia
the link to "MARS Catalogue" is broken (403 Forbidden)
Sanjeev Dwivedi
I am not able to download the data via mars as it is telling no permission. I am from India. How i can download the ERA5 data.
XCristian XSimarro2
You can find more information in this article: How to download ERA5