<div dir="ltr">I will confirm that this change was not intended and is not part of any change to the actual GRIB handling code. The code that determines whether a file is GRIB1 or GRIB2 is unchanged. The issue that needs fixing is simply the recognition of the alternate suffixes.<div> -dave</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 9, 2015 at 11:03 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>One of the NCL core developers will likely respond. <br><br></div>To my knowledge, all pre-6.3.0 GRIB extensions *should still be recognized*. Backward compatibility is important.<br><br>--<br></div>That said .... .grib, gr1, gr2 do produces a failure in 6.3.0. I will open a JIRA ticket.<br><br> <a href="https://vets.development.ucar.edu/jira/browse/NCL-2197" target="_blank">NCL-2197 - GRIB extensions not recognized in 6.3.0</a> <br><br>--<br></div>Also, I see in my original reply to CS that I should have included the following, <br><br>The following illustrate how to force a &#39;time dimension&#39; when importing variables from a file with just on time step. By default, NCL does not import singleton (aka, degenerate) dimensions. Hence, no &#39;time&#39; dimension. Users can force one or more &#39;time&#39; dimensions via:<br><br>%&gt; ncl_filedump -itime  nam.t06z.awip1203.grb<br><br></div><div>[snip]<br></div><div><span class="">path:   nam.t06z.awip1203<br>   file global attributes:<br>   dimensions:<br></span>      initial_time0_hours = 1<br></div>[snip]<br><div>  variables:<br>      float TMP_P0_L1_GLC0 ( initial_time0_hours, ygrid_0, xgrid_0 )<br></div><div>[SNIP]<br><br>===<br>%&gt; ncl_filedump -ftime  nam.t06z.awip1203.grb<br><br><div>[snip]<br></div><div><span class="">path:   nam.t06z.awip1203<br>   file global attributes:<br>   dimensions:<br></span>      forecast_time0 = 1<br></div>[snip]<br><div>  variables:<br>      float TMP_P0_L1_GLC0 ( forecast_time0, ygrid_0, xgrid_0 )<br></div>[SNIP]<br><br>===<br>%&gt;  ncl_filedump -ftime -itime nam.t06z.awip1203.grb <br><br></div><div>[snip]<br></div><div>   dimensions:<br>      initial_time0_hours = 1<br>      forecast_time0 = 1<br></div><div>[snip]<br><br></div><div>float TMP_P0_L1_GLC0 ( initial_time0_hours, forecast_time0, ygrid_0, xgrid_0 )<br></div><div>[SNIP]<br></div><div><br></div><div>*************<br></div><div>From a script<br><br>setfileoption(&quot;grb&quot;,&quot;SingleElementDimensions&quot;,&quot;Initial_time&quot;) ; initial_time0_hours<br></div><div>and/or<br>setfileoption(&quot;grb&quot;,&quot;SingleElementDimensions&quot;,&quot;Forecast_time&quot;) <br><br><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 9, 2015 at 8:40 AM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">As an ignorant user of various types of grib without worrying about which type it is. Does this sentence no longer apply then, from the addfile doc page.  </div><div class="gmail_default" style="font-family:verdana,sans-serif">&quot;<span style="color:rgb(0,0,0);font-size:13px;line-height:16px"><i> </i></span><span style="color:rgb(0,0,0);font-size:13px;line-height:16px"><i>Also note, in the case of GRIB, that you do not need to indicate whether the file is GRIB 1 or GRIB 2. NCL treats all the acceptable GRIB extensions as meaning the same thing. The GRIB version is determined internally.</i>&quot;</span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-size:13px;line-height:16px"><br></span></div><div class="gmail_default" style="font-family:verdana,sans-serif"><span style="color:rgb(0,0,0);font-size:13px;line-height:16px">Is there a way to determine which extension is needed then? If this isn&#39;t a bug, this seems like a step backwards in my uneducated opinion. </span></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On 9 April 2015 at 10:27, Carl Schreck <span dir="ltr">&lt;<a href="mailto:cjschrec@ncsu.edu" target="_blank">cjschrec@ncsu.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Aha! I was adding &quot;.grib&quot;, which worked in the previous version, but not now. The <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/addfile.shtml" target="_blank">addfile documentation </a>lists these as possible grib extensions:<div><span style="color:rgb(0,0,0);font-family:verdana,sans-serif;font-size:13.3333330154419px;line-height:16px">&quot;.gr&quot;, &quot;.gr1&quot;, &quot;.grb&quot;, &quot;.grib&quot;, &quot;.grb1&quot;, &quot;.grib1&quot;, &quot;.gr2&quot;, &quot;grb2&quot;, &quot;.grib2&quot;</span><br></div><div><br></div><div>I get errors in 6.3.0 if I use &quot;.gr1:, &quot;.gr2&quot;, or &quot;.grib&quot; for this particular file. I see there were significant changes to the handling of grib files, but I can&#39;t tell whether this change was either intentional or documented.</div><span><font color="#888888"><div><br></div><div>    Carl</div></font></span></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Apr 9, 2015 at 10:11 AM, Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div>Hi Carl,<br><br>In the following, the file name is:  nam.t06z.awip1203<br><br></div><div>You must add the &#39;.grb&#39; extension<br><br></div><div>%&gt; ncl_filedump nam.t06z.awip1203.grb<br><br></div><div>NCL will look for a file named &quot;nam.t06z.awip1203.grb&quot; on the disk.<br></div><div>If it does not find it, NCL will look for &quot;nam.t06z.awip1203&quot; and <br></div><div>&#39;remember&#39; to treat it as a grib file.<br><br></div><div>One file <br><br>  f = addfile(&quot;nam.t06z.awip1203.grb&quot;,&quot;r&quot;)<br><br></div><div><br></div><div>For multiple files<br><br>  <br></div><div>   diri = &quot;./&quot;<br></div><div>   fili = systemfunc(&quot;cd &quot;+diri+&quot; ; ls nam.t06z.awip*&quot;)<br></div><div>   f   = addfiles(diri+fili+&quot;.grb&quot;)<br>    ListSetType (f, &quot;join&quot;)   <br></div><div><br></div><div>HTH<br></div><div>D<br></div><div><br> Copyright (C) 1995-2015 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.3.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.<br><br>Variable: f<br>Type: file<br>filename:       nam.t06z.awip1203<br>path:   nam.t06z.awip1203<br>   file global attributes:<br>   dimensions:<br>      ygrid_0 = 428<br>      xgrid_0 = 614<br>      lv_ISBL0 = 4<br>      lv_SIGL1 = 5<br>      lv_SPDL2 = 6<br>      lv_HTGL3 = 2<br>      lv_SPDL4 = 5<br>      lv_ISBL5 = 2<br>      lv_ISBL6 = 5<br>      lv_SPDL7 = 3<br>      lv_HTGL8 = 2<br>      lv_HTGL9 = 2<br>      lv_DBLL10 = 4<br>   variables:<br>      float TMP_P0_L1_GLC0 ( ygrid_0, xgrid_0 )<br>         center :       US National Weather Service - NCEP (WMC)<br>         production_status :    Operational products<br>         long_name :    Temperature<br>         units :        K<br>         _FillValue :   1e+20<br>         coordinates :  gridlat_0 gridlon_0<br>         grid_type :    Lambert Conformal can be secant or tangent, conical or bipolar<br>         parameter_discipline_and_category :    Meteorological products, Temperature<br>         parameter_template_discipline_category_number :        ( 0, 0, 0, 0 )<br>         level_type :   Ground or water surface<br>         level :         0<br>         forecast_time :        3<br>         forecast_time_units :  hours<br>         initial_time : 04/09/2015 (06:00)<br></div><br></div>[SNIPu<br><div><br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Thu, Apr 9, 2015 at 7:54 AM, Carl Schreck <span dir="ltr">&lt;<a href="mailto:cjschrec@ncsu.edu" target="_blank">cjschrec@ncsu.edu</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">I&#39;m having a strange issue where NAM forecast grib files from ldm are not able to be read in 6.3.0. A sample file is:<div><a href="ftp://filsrv.cicsnc.org/carl/temp/nam.t06z.awip1203" target="_blank">ftp://filsrv.cicsnc.org/carl/temp/nam.t06z.awip1203</a></div><div><br></div><div>The error I get is:</div><div>--</div><div><div>fatal:[&quot;FileSupport.c&quot;:4159]:(/home/carl/ftp/temp/nam.t06z.awip1203.grib) has no file extension, can&#39;t determine type of file to open</div><div><br></div><div>Variable: f</div><div>Type: file</div><div>(0) File Missing Value : -1</div></div><div>--</div><div>Renaming the file to have a .grib extension makes no difference. It does work if I roll back to 6.2.1, however. </div><div><br></div><div>The binaries I downloaded are:</div><div>ncl_ncarg-6.2.1.Linux_SL6.5_x86_64_gcc447.tar.gz<br></div><div></div><div>ncl_ncarg-6.3.0.Linux_RHEL6.4_x86_64_gcc447.tar.gz<br></div><div><br></div><div>Thanks!</div><div><br></div><div>    Carl</div><div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><table style="max-width:100%;border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px;background-color:transparent" border="0" cellpadding="2" cellspacing="2"><tbody><tr><td height="71" align="center" width="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank"><img src="http://www.cicsnc.org/assets/images/cicsnc-logo.png" height="93" width="96"></a>  <a href="http://www.researcherid.com/rid/B-8711-2011" target="_blank"><br></a></span></span><br><font size="4"><b style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif"> <a href="http://www.cyclonecenter.org/" style="color:rgb(38,58,143);text-decoration:none" target="_blank">Cyclone</a></b><a href="http://www.cyclonecenter.org/" style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;text-decoration:none" target="_blank">Center.org</a>  </font></td><td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br><b>Research Associate</b><br><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina Institute for Climate Studies (NCICS) /<br>Cooperative Institute for Climate and Satellites NC (CICS-NC)</a> <br><a href="http://ncsu.edu/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina State University</a><br><a href="http://ncdc.noaa.gov/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">NOAA National Centers for Environmental Information (NCEI)</a><br>151 Patton Ave, Asheville, NC 28801<br>e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: <a href="tel:%2B1%20828%20257%203140" value="+18282573140" target="_blank">+1 828 257 3140</a><br></span></span><a href="http://scholar.google.com/citations?hl=en&amp;user=th8ONEcAAAAJ&amp;view_op=list_works&amp;sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">Publications</a><br><a href="http://monitor.cicsnc.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">monitor.cicsnc.org/mjo</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"></td></tr></tbody></table></div></div></div></div></div></div>
</div></div>
<br></div></div>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><br><table style="max-width:100%;border-collapse:collapse;border-spacing:0px;color:rgb(51,51,51);font-size:14px;border:3px solid rgb(170,170,170);font-family:Times;line-height:12px;background-color:transparent" border="0" cellpadding="2" cellspacing="2"><tbody><tr><td height="71" align="center" width="71"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank"><img src="http://www.cicsnc.org/assets/images/cicsnc-logo.png" height="93" width="96"></a>  <a href="http://www.researcherid.com/rid/B-8711-2011" target="_blank"><br></a></span></span><br><font size="4"><b style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif"> <a href="http://www.cyclonecenter.org/" style="color:rgb(38,58,143);text-decoration:none" target="_blank">Cyclone</a></b><a href="http://www.cyclonecenter.org/" style="text-align:start;color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;text-decoration:none" target="_blank">Center.org</a>  </font></td><td valign="top"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif"><b>Carl J. Schreck III, PhD</b><br><b>Research Associate</b><br><a href="http://www.cicsnc.org/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina Institute for Climate Studies (NCICS) /<br>Cooperative Institute for Climate and Satellites NC (CICS-NC)</a> <br><a href="http://ncsu.edu/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">North Carolina State University</a><br><a href="http://ncdc.noaa.gov/" style="color:rgb(38,58,143);text-decoration:none;font-weight:bold" target="_blank">NOAA National Centers for Environmental Information (NCEI)</a><br>151 Patton Ave, Asheville, NC 28801<br>e: </span></span><a href="mailto:cjschrec@ncsu.edu" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">cjschrec@ncsu.edu</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"><span style="font-size:11px"><span style="font-family:arial,helvetica,sans-serif">o: <a href="tel:%2B1%20828%20257%203140" value="+18282573140" target="_blank">+1 828 257 3140</a><br></span></span><a href="http://scholar.google.com/citations?hl=en&amp;user=th8ONEcAAAAJ&amp;view_op=list_works&amp;sortby=pubdate" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">Publications</a><br><a href="http://monitor.cicsnc.org/mjo/" style="color:rgb(38,58,143);font-family:arial,helvetica,sans-serif;font-size:11px;text-decoration:none;font-weight:bold" target="_blank">monitor.cicsnc.org/mjo</a><br style="font-family:arial,helvetica,sans-serif;font-size:11px"></td></tr></tbody></table></div></div></div></div></div></div>
</div>
</div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>