source: trunk/src/get_erai.py @ 169

Last change on this file since 169 was 109, checked in by pinsard, 12 years ago

draft of new tools for ERA-INTERIM data

  • Property svn:keywords set to URL Id
File size: 1.1 KB
Line 
1#!/usr/bin/env python
2# -*- coding: iso-8859-1 -*-
3
4"""
5
6DESCRIPTION
7===========
8
9get ERA-Interim reference files
10
11SYNOPSIS
12========
13
14::
15
16 $ python get_erai.py
17
18
19SEE ALSO
20========
21
22:ref:`ecmwf`
23
24TIPS
25====
26
27To convet a GRIB file to a NetCDF file ::
28 
29  $ cdo -f nc copy data.grib data.nc
30
31TODO
32====
33
34make it work for all needed variables
35
36produce netcdf files : now grib dispite name of the file target
37
38comment
39
40EVOLUTIONS
41==========
42
43$Id$
44
45$URL$
46
47- fplod 20111130T153500Z cratos (Linux)
48
49  * got from http://data-portal.ecmwf.int/data/d/token/interim_full_daily/
50  * add docstring
51
52"""
53
54from ecmwf import ECMWFDataServer
55
56server = ECMWFDataServer(
57       'http://data-portal.ecmwf.int/data/d/dataserver/',
58              'd558d095ce964389eeda5e908e9462f3',
59             'francoise.pinsard@locean-ipsl.upmc.fr'
60         )
61
62server.retrieve({
63    'dataset' : "interim_full_daily",
64    'date'    : "19790101/to/19790110",
65    'time'    : "00:00:00/06:00:00/12:00:00/18:00:00",
66    'grid'    : "1/1",
67    'step'    : "0",
68    'levtype' : "sfc",
69    'type'    : "an",
70    'param'   : "167.128",
71    'area'    : "60/-120/30/-60",
72    'target'  : "t2m.nc"
73        })
Note: See TracBrowser for help on using the repository browser.