<div dir="ltr">Hi Marston,<div>Maybe I am missing something. Why not use "ncl_convert2nc" command instead of an NCL script?</div><div><br></div><div>Even if you have many files, you can use the command in a shell script.</div><div><br></div><div>Sorry if I missed something earlier but the above command is easier to convert grib to netcdf.</div><div><br></div><div>Regards</div><div>Ben</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 30, 2017 at 11:10 AM, Karin Meier-Fleischer <span dir="ltr"><<a href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Marston,<br>
<br>
as I'm also working in the CDO consultancy here in Hamburg, I would
like to have a closer look at your IFS file, too, to see if the CDO
version 1.8.2 could handle it.<br>
<br>
If the file is not too large you can attach it to an 'offline' email
to me or upload it creating a new request on
<a class="m_-2348007207849537006moz-txt-link-freetext" href="https://code.mpimet.mpg.de/projects/cdo/boards/1" target="_blank">https://code.mpimet.mpg.de/<wbr>projects/cdo/boards/1</a> .<br>
<br>
Thanks in advance,<br>
Karin<br>
<br>
<div class="m_-2348007207849537006moz-cite-prefix">Am 27.06.17 um 20:49 schrieb Marston
Johnston:<br>
</div>
<blockquote type="cite">
<div class="m_-2348007207849537006WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">For years
I’ve been using CDO to convert ECMWF’s IFS grib files to
netcdf and converting it from reduced Gaussian grid to
regular lat lon.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">But CDO has
not kept up the pace with updates and they do not respond to
many questions.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Therefore,
I’m attempting to move this part of my processing chain to
NCL.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">I’m using
NCL 6.5 (beta) to read the grib file (see attached log
file). There 1 or 2 problems and then I have a question.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="m_-2348007207849537006MsoListParagraph"><span style="font-size:11.0pt"><span>1.)<span style="font:7.0pt "Times New Roman""> </span></span></span><span style="font-size:11.0pt">My NCL script is not finding the
experimental variables in the grib file. These variables are
given the generic names varXXX where XXX can be between 88
and 111, for example.<u></u><u></u></span></p>
<p class="m_-2348007207849537006MsoListParagraph"><span style="font-size:11.0pt"><span>2.)<span style="font:7.0pt "Times New Roman""> </span></span></span><span style="font-size:11.0pt">The script also doesn’t find the 3D
records. I’m not sure how NCL finds these records in the
grib file and then lists them as a 3D (time,lev,lat,lon),
not counting the time. <u></u><u></u></span></p>
<p class="m_-2348007207849537006MsoListParagraph"><span style="font-size:11.0pt"><span>3.)<span style="font:7.0pt "Times New Roman""> </span></span></span><span style="font-size:11.0pt">If 1 and 2 can be resolved, how can
I then convert the reduced Gaussian grid to regular lat lon?
Would ESMF work if I setup a regular lat lon grid?<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Appreciate
your thoughts on this.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">/M<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><u></u> <u></u></span></p>
<p class="MsoNormal"><span>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p>
<p class="MsoNormal"><span>Marston
S. Johnston, PhD<u></u><u></u></span></p>
<p class="MsoNormal"><span>Department
of Earth Sciences<u></u><u></u></span></p>
<p class="MsoNormal"><span>University
of Gothenburg, Sweden<u></u><u></u></span></p>
<p class="MsoNormal"><span>Email: <a href="mailto:marston.johnston@gu.se" target="_blank"><span style="color:#0070c0">marston.johnston@gu.se</span></a><u></u><u></u></span></p>
<p class="MsoNormal"><span>SkypeID:
marston.johnston <u></u><u></u></span></p>
<p class="MsoNormal"><span>Phone:
<a href="tel:+46%2031%20786%2049%2001" value="+46317864901" target="_blank">+46-31-7864901</a> <u></u><u></u></span></p>
<p class="MsoNormal"><span>Only
the fruitful thing is true!<u></u><u></u></span></p>
<p class="MsoNormal"><span>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<u></u><u></u></span></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<br>
<fieldset class="m_-2348007207849537006mimeAttachmentHeader"></fieldset>
<br>
<pre>______________________________<wbr>_________________
ncl-talk mailing list
<a class="m_-2348007207849537006moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="m_-2348007207849537006moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<pre class="m_-2348007207849537006moz-signature" cols="72">--
Dipl. Geophys. Karin Meier-Fleischer
Visualization, NCL, CDO
Application Support
Deutsches Klimarechenzentrum GmbH (DKRZ)
Bundesstrasse 45a - D20146 Hamburg - Germany
Phone: <a href="tel:+49%2040%20460094126" value="+4940460094126" target="_blank">+49 (0)40 460094 126</a>
Fax: <a href="tel:+49%2040%20460094270" value="+4940460094270" target="_blank">+49 (0)40 460094 270</a>
E-Mail: <a class="m_-2348007207849537006moz-txt-link-abbreviated" href="mailto:meier-fleischer@dkrz.de" target="_blank">meier-fleischer@dkrz.de</a>
URL: <a class="m_-2348007207849537006moz-txt-link-abbreviated" href="http://www.dkrz.de" target="_blank">www.dkrz.de</a>
Geschäftsführer: Prof. Dr. Thomas Ludwig
Sitz der Gesellschaft: Hamburg
Amtsgericht Hamburg HRB 39784
</pre>
</div>
<br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div>Benjamin L. Lamptey, PhD (Physicist, Meteorologist, Geoscientist, HPC & Info Systems)<br>Acting Director-General<br>African Centre of Meteorological Applications for
Development (ACMAD)</div><div>55, Avenue des Ministères, PL6<br>BP 13184, 1er Arrondissement, Niamey Plateau, Niger,<span style="font-size:10pt;font-family:Arial"><br>Tel.(+227) </span>
<span>20 73.49.92</span> <br>Fax: (+227) 20723627 <br></div><a href="http://www.acmad.net" target="_blank">www.acmad.</a>org</div><div dir="ltr"><br><div>Cell: +22796645655; +233265121750<br><a href="mailto:bllamptey@gmail.com" target="_blank">Email: b.lamptey@acmad.org; bllamptey@gmail.com</a><br>Skype: benlamptey<br><br></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div>
</div>