Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Replaced TP by TPVAR in the retrieval example.

...

Users often need to write their retrieved fields to multiple target files named according to forecast base-time, forecast step, parameter name etc. Rather than using an external loop around the MARS request this can best be done by using the multi-target feature, see Data storage keywords. If, using this method, you don't get the desired file names, they can in most cases be easily renamed afterwards.

...

A sample MARS request to compute the 48-hour accumulation of total precipitation from T1 = 216 h to T2 =264 h, on a 0.5/0.5 regular lat/lon grid where the truncation time step is 240 looks like this:

RETRIEVE,
  
CLASS    = OD,
   STREAM   = ENFO,
   EXPVER   = 1,
   TYPE     = CF,
   LEVTYPE  = SFC,
   DATE     = -1,
   TIME     = 12,
   PARAM    = TP,
   STEP     = 216,
   
GRID     = 0.5/0.5,
   FIELDSET = T1
RETRIEVE,
   STEP     = 264,
   FIELDSET = T2
RETRIEVE,
   STEP     = 240,
   FIELDSET = TSTAR_HIGH_RES
RETRIEVE,
   STEP     = 240,
   STREAM   = EFOV,
   PARAM    = TPTPVAR,
   FIELDSET = TSTAR_LOW_RES
COMPUTE,
   FORMULA  = "T2-TSTAR_LOW_RES+TSTAR_HIGH_RES-T1",
   TARGET   = "tp.grib"

...