Versions Compared

Key

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

The following MARS requests can be used as a tutorial. The links into the MARS Catalogue might be helpful to create a valid retrieve script. However, the dates might need to be adapted.

As one can very easily retrieve large amounts of data it is best to start mars in a location where plenty of disk space is available, e.g. in $SCRATCH:

Code Block
cd $SCRATCH

The solutions below provide valid MARS requests which can be passed to the mars command as

Code Block
% mars < myrequestfile
                             or
% mars myrequestfile

 

Simple retrieves

Retrieve 1000,850,700 and 500 hPa temperatures from the 15th of February 1999 12 UTC Analysis  > see in Catalogue 

...

Expand
titlesolution
retrieve,
    class   = e4,
    stream  = moda,
    type    = an,
    levtype = sfc,
    date    = 19640101,
    param   = 69.162/70.162,
    area    = europe,
    grid    = 1.125/1.125,
    target  = "e4_moda_fluxes.grb"

Retrieval of snow depth from the ERA-40 archive for November 1993, for all analysis base times > see in Catalogue. How many fields are requested?

Expand
titlesolution
retrieve,
  class   = e4,
  stream  = oper,
  expver  = 1,
  date    = 19931101/to/19931130,
  time    = 00/06/12/18,
  type    = an,
  levtype = sfc, 
  param   = sd,
  repres  = gg,
  target  = "era40.199311.sd"
#                                  It retrieves 30 x 4 = 120 fields.

 

 

Retrieve the temperature from model levels 1 and 2 for 1800 on 18th October 1991 from the uninitialised analysis. Try some or all of the above conversions. (solution)

...