Versions Compared

Key

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

Table of Contents

Introduction

This is a brief introduction of the main request parameter syntax.

...

Code Block
titleMARS request
retrieve,
 stream=oper,
 levtype=sfc,
 param=165.128/41.128,
 "dataset"=interim,
 step=0,
 grid=0.75/0.75,
 time=00,
 date=2013-09-01/to/2013-09-30,
 type=an,
 class=ei
Code Block
languagepy
titlePython equivalence
 #!/usr/bin/env python
from ecmwfapi import ECMWFDataServer
   
server = ECMWFDataServer()
   
server.retrieve({
    'dataset' : "interim",
	'time'    : "00",
	'date'    : "2013-09-01/to/2013-09-30",
    'step'    : "0",
    'type'    : "an",
    'levtype' : "sfc",    
    'param'   : "165.128/41.128",
    'grid'    : "0.75/0.75",
    'target'  : "interim201309.grib"
    })

...

In the Dataset service there is an extra mandatory keyword called dataset which does not appear in normal MARS requests.

Keyworddefinition
dataset See Available Datasets
formatYou can add 'format' : "netcdf" to retrieve the data in NetCDF format.

the other possible MARS keywords are explained in the Legacy MARS keywords documentation.