<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">this will be so useful. Thanks.<br>
<br>
Sébastien<br>
<br>
Le 29/11/2012 16:36, <a class="moz-txt-link-abbreviated" href="mailto:stephen.pascoe@stfc.ac.uk">stephen.pascoe@stfc.ac.uk</a> a écrit :<br>
</div>
<blockquote
cite="mid:4C353E6E4A08AE4792B350DAA392B5213B9D2EF2@EXCHMBX02.fed.cclrc.ac.uk"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">I would like to announce the first alpha
release of esgf-pyclient: A python interface to the ESGF
Search API.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Although still in development the library
is already useful for finding ESGF data, including download
URLs, OPeNDAP URLs, filenames, sizes and checksums.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">- Download
fromhttp://pypi.python.org/pypi/esgf-pyclient<o:p></o:p></p>
<p class="MsoNormal">- See the documentation at
<a class="moz-txt-link-freetext" href="http://esgf-pyclient.readthedocs.org">http://esgf-pyclient.readthedocs.org</a><o:p></o:p></p>
<p class="MsoNormal">- Follow development at
<a class="moz-txt-link-freetext" href="http://github.com/stephenpascoe/esgf-pyclient">http://github.com/stephenpascoe/esgf-pyclient</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For a quick start try:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">$ pip install esgf-pyclient<o:p></o:p></p>
<p class="MsoNormal">$ python<o:p></o:p></p>
<p class="MsoNormal">>>> from pyesgf.search import
SearchConnection<o:p></o:p></p>
<p class="MsoNormal">>>> conn =
SearchConnection('<a class="moz-txt-link-freetext" href="http://pcmdi9.llnl.gov/esg-search/search">http://pcmdi9.llnl.gov/esg-search/search</a>',
distrib=True)<o:p></o:p></p>
<p class="MsoNormal">>>> ctx =
conn.new_context(project='CMIP5', query='humidity',
experiment_family='RCP')<o:p></o:p></p>
<p class="MsoNormal">>>> ctx.hit_count<o:p></o:p></p>
<p class="MsoNormal">1927<o:p></o:p></p>
<p class="MsoNormal">>>> ctx.search()[0].dataset_id<o:p></o:p></p>
<p class="MsoNormal">u'cmip5.output1.NASA-GISS.GISS-E2-R.rcp45.day.atmos.day.r6i1p1.v20120516|esgdata1.nccs.nasa.gov'<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Find further examples in the documentation.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thanks,<o:p></o:p></p>
<p class="MsoNormal">Stephen.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Consolas">---<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Consolas">Stephen
Pascoe +44 (0)1235 445980<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Consolas">Centre of
Environmental Data Archival<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:10.5pt;font-family:Consolas">STFC
Rutherford Appleton Laboratory, Harwell Oxford, Didcot OX11
0QX, UK<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<p>-- <br>
Scanned by iCritical.
</p>
<br>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">--
Sébastien Denvil
IPSL, Pôle de modélisation du climat
UPMC, Case 101, 4 place Jussieu,
75252 Paris Cedex 5
Tour 45-55 2ème étage Bureau 209
Tel: 33 1 44 27 21 10
Fax: 33 1 44 27 39 02
</pre>
</body>
</html>