<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">By the way, NCL can read GRIB file directly, which is definitely better than converting it into netcdf. See <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" class="">https://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml</a><div class=""><div class="">
<div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><br class="Apple-interchange-newline">Guido Cioni</div><div style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;" class=""><a href="http://guidocioni.altervista" class="">http://guidocioni.altervista</a>.org</div>
</div>
<br class=""><div><blockquote type="cite" class=""><div class="">On 21 Nov 2016, at 13:41, Guido Cioni <<a href="mailto:guidocioni@gmail.com" class="">guidocioni@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><span style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; float: none; display: inline !important;" class="">Hey Barry,</span><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class=""><div class=""><ol class="MailOutline"><li class="">ncl_grib2nc is deprecated, please use ncl_convert2nc instead.</li><li class="">This is a shell command, you have to call it outside of NCL (in the terminal). I just tried and it worked, although with some warning... </li></ol></div><div class=""><div class="">cheers</div><div class=""><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br class="Apple-interchange-newline">Guido Cioni</div><div class="" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><a href="http://guidocioni.altervista/" class="">http://guidocioni.altervista</a>.org</div></div><br class=""><div class=""><blockquote type="cite" class=""><div class="">On 21 Nov 2016, at 12:38, Barry Lynn <<a href="mailto:barry.h.lynn@gmail.com" class="">barry.h.lynn@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class="">Hi:<div class=""><br class=""></div><div class="">I assume that I need to convert namanl files to .nc format before using NCL.</div><div class=""><br class=""></div><div class="">However, the attached program (which should be simple to execute) will not read the attached file.</div><div class=""><br class=""></div><div class="">Thank you for your help,</div><div class=""><br class=""></div><div class="">Barry</div><div class=""><br class=""></div><div class=""><div class="">[wrf@mn03 NAM]$ ncl ./grib_to_ncl.ncl </div><div class=""> Copyright (C) 1995-2014 - All Rights Reserved</div><div class=""> University Corporation for Atmospheric Research</div><div class=""> NCAR Command Language Version 6.2.1</div><div class=""> The use of this software is governed by a License Agreement.</div><div class=""> See<span class="Apple-converted-space"> </span><a href="http://www.ncl.ucar.edu/" class="">http://www.ncl.ucar.edu/</a><span class="Apple-converted-space"> </span>for more details.</div><div class="">fatal:syntax error: line 19 in file ./grib_to_ncl.ncl before or near namanl_218_20130208_0000_000 </div><div class=""> ncl_grib2nc namanl_218_20130208_0000_000</div><div class="">-----------------------------------------^</div><div class=""><br class=""></div><div class="">fatal:error in statement</div><div class="">fatal:Syntax Error in block, block not executed</div><div class="">fatal:error at line 21 in file ./grib_to_ncl.ncl</div><div class=""><div class="gmail_chip gmail_drive_chip" style="width: 396px; height: 18px; max-height: 18px; background-color: rgb(245, 245, 245); padding: 5px; color: rgb(34, 34, 34); font-family: arial; font-style: normal; font-weight: bold; font-size: 13px; border: 1px solid rgb(221, 221, 221); line-height: 1;"><a href="https://drive.google.com/file/d/0B3E3GjUeKpBdQmJMZ01WVGdBRFk/view?usp=drive_web" target="_blank" class="" style="display: inline-block; max-width: 366px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; padding: 1px 0px; border: none;"><img src="https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png" class="" style="vertical-align: bottom; border: none;"> <span dir="ltr" class="" style="color: rgb(17, 85, 204); text-decoration: none; vertical-align: bottom;">namanl_218_20130208_0000_000.grb</span></a></div><br class=""></div><div class=""><br class=""></div>--<span class="Apple-converted-space"> </span><br class=""><div class="gmail_signature"><div dir="ltr" class="">Barry H. Lynn, Ph.D<div class=""><div class="">Senior Lecturer,</div><div class=""><div class=""><span class="" style="color: rgb(136, 136, 136);">The Institute of the Earth Science, </span><br class="" style="color: rgb(136, 136, 136);"><span class="" style="color: rgb(136, 136, 136);">The Hebrew University of Jerusalem, </span><br class="" style="color: rgb(136, 136, 136);"><span class="" style="color: rgb(136, 136, 136);">Givat Ram, Jerusalem 91904, Israel </span><br class="" style="color: rgb(136, 136, 136);"></div><span class="" style="color: rgb(136, 136, 136);">Tel: 972 547 231 170</span><br class="" style="color: rgb(136, 136, 136);"><span class="" style="color: rgb(136, 136, 136);">Fax: (972)-25662581</span></div></div><div class=""><span class="" style="color: rgb(136, 136, 136);"><br class=""></span></div><div class="">C.E.O, Weather It Is, LTD<br class="">Weather and Climate Focus<br class=""><a href="http://weather-it-is.com/" target="_blank" class="">http://weather-it-is.com</a><br class="">Jerusalem, Israel<br class="">Local: 02 930 9525<br class="">Cell: 054 7 231 170<br class="">Int-IS: x972 2 930 9525<br class="">US 914 432 3108<br class=""></div></div></div></div></div><span id="cid:D6E44F21-0845-4AB5-B7EC-85225EEDF3E2@mpimet.mpg.de" class=""><grib_to_ncl.ncl></span>_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class=""><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></div></blockquote></div></div></div></div></blockquote></div><br class=""></div></body></html>