climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dnad...@apache.org
Subject [2/4] git commit: add README information to get access to ECMWF and verifcation.py program to extract ECMWF ERA-Iterim year 2013 data file.
Date Wed, 12 Mar 2014 21:32:45 GMT
add README information to get access to ECMWF and verifcation.py program to extract ECMWF ERA-Iterim
year 2013 data file.


Project: http://git-wip-us.apache.org/repos/asf/climate/repo
Commit: http://git-wip-us.apache.org/repos/asf/climate/commit/4416aa58
Tree: http://git-wip-us.apache.org/repos/asf/climate/tree/4416aa58
Diff: http://git-wip-us.apache.org/repos/asf/climate/diff/4416aa58

Branch: refs/heads/master
Commit: 4416aa5801644b3cb98e340a15bde3d57443b252
Parents: a9e26b6
Author: Denis Nadeau <dnadeau@esgcmor.gsfc.nasa.gov>
Authored: Wed Mar 12 15:00:18 2014 -0400
Committer: Denis Nadeau <dnadeau@esgcmor.gsfc.nasa.gov>
Committed: Wed Mar 12 15:00:18 2014 -0400

----------------------------------------------------------------------
 obs4MIPs/examples/ECMWF/Y2013/README          | 49 ++++++++++++++++++++++
 obs4MIPs/examples/ECMWF/Y2013/verification.py | 23 ++++++++++
 2 files changed, 72 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/climate/blob/4416aa58/obs4MIPs/examples/ECMWF/Y2013/README
----------------------------------------------------------------------
diff --git a/obs4MIPs/examples/ECMWF/Y2013/README b/obs4MIPs/examples/ECMWF/Y2013/README
new file mode 100644
index 0000000..4cf903b
--- /dev/null
+++ b/obs4MIPs/examples/ECMWF/Y2013/README
@@ -0,0 +1,49 @@
+Prerequisite
+============
+
+Read ECMWF python script documentation from the following link.
+https://software.ecmwf.int/wiki/display/WEBAPI/Accessing+ECMWF+data+servers+in+batch
+
+-
+Register to the ECMWF website
+http://apps.ecmwf.int/registration/
+-
+
+-
+Retrieve your key
+https://api.ecmwf.int/v1/key/
+-
+
+-
+Create a file in $HOME/.ecmwfapirc containning your key.
+    Content of $HOME/.ecmwfapirc 	
+    {
+        "url"   : "http://api.ecmwf.int/v1",
+        "key"   : "MYKEY"
+        "email" : "MYEMAIL"
+    }
+-
+=== Install Python package ====
+
+setenv PYTHONPATH /wherever/you/want/to/install/python/packages
+-
+Dowload and install python ECMWF API on your system.
+https://software.ecmwf.int/wiki/download/attachments/23694554/ecmwf-api-client-python.tgz?api=v2
+
+     wget "https://software.ecmwf.int/wiki/download/attachments/23694554/ecmwf-api-client-python.tgz?api=v2"
--output-document=ecmwf-api-client-python.tgz
+-
+
+
+-
+setenv PYTHONPATH /wherever/you/want/to/install/python/packages
+python setup.py build
+python setup.py install --prefix=/wherever/you/want/to/install/python/packages
+
+-
+
+Please run the following script to pull the example file from ECMWF repository
+-
+python verification.py
+-
+
+

http://git-wip-us.apache.org/repos/asf/climate/blob/4416aa58/obs4MIPs/examples/ECMWF/Y2013/verification.py
----------------------------------------------------------------------
diff --git a/obs4MIPs/examples/ECMWF/Y2013/verification.py b/obs4MIPs/examples/ECMWF/Y2013/verification.py
new file mode 100755
index 0000000..a573c55
--- /dev/null
+++ b/obs4MIPs/examples/ECMWF/Y2013/verification.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python
+
+from ecmwfapi import ECMWFDataServer
+
+# To run this example, you need an API key 
+# available from https://api.ecmwf.int/v1/key/
+
+server = ECMWFDataServer()
+
+server.retrieve({ 
+"levelist"    :   "1/2/3/5/7/10/20/30/50/70/100/125/150/175/200/225/250/300/350/400/450/500/550/600/650/700/750/775/800/825/850/875/900/925/950/975/1000",
+"stream"      :   "moda",
+"levtype"     :   "pl",
+"param"       :   "129.128/130.128/131.128/132.128/133.128/135.128/138.128/155.128/157.128/203.128/246.128/247.128/248.128/60.128",
+"dataset"     :   "interim",
+"grid"        :   "0.75/0.75",
+"date"        :   "20130101/20130201/20130301/20130401/20130501/20130601/20130701/20130801/20130901/20131001/20131101/20131201",
+"target"      :   "ecint_prs_2013.nc",
+"class"       :   "ei",
+"format"      :   "netcdf",
+"type"        :   "an"
+})
+


Mime
View raw message