<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Hi Ousmane,<br>
    <br>
    sometimes the ECMWF data have mixed GRIB 1 and GRIB 2 records. To
    convert these files to GRIB 1 you can use the grib_api tools as
    Guido mentioned already.<br>
    <br>
    <font color="#3333ff"><tt>  grib_set -s editionNumber=1 </tt><tt><span
          class="gmail-s1">1Sep2009.grib </span></tt><tt><span
          class="gmail-s1">1Sep2009_GRIB1.grib</span></tt></font><br>
    <br>
    Then try to read the new file <span class="gmail-s1">1Sep2009_GRIB1.grib
      in your NCL script.<br>
      <br>
      -Karin<br>
    </span><br>
    <div class="moz-cite-prefix">Am 31.08.17 um 14:50 schrieb ousmane
      ndiaye:<br>
    </div>
    <blockquote type="cite"
cite="mid:CA+147En_SKrGFHeQqTNvNwUNkb3HCe82+XR1g3iLZ+8xTjSVLg@mail.gmail.com">
      <div dir="ltr">
        <div class="gmail_extra">
          <p class="gmail-p1"><span class="gmail-s1">Dear All,</span></p>
          <p class="gmail-p1"><span class="gmail-s1">I downloaded
              forecast file from ecmwf s2s data base in grib2 format.<br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s1">When I try to read
              it I got this error : </span></p>
          <p class="gmail-p1"><span class="gmail-s1">ncl 3>
              ff=addfile("1Sep2009.grib","r")<span
                class="gmail-Apple-converted-space">   </span></span></p>
          <p class="gmail-p1"><span class="gmail-s1">warning:NclGRIB2:
              TPRATE_P61_L1 contains records that NCL cannot currently
              differentiate. One or more records will be ignored.</span></p>
          <p class="gmail-p1"><span class="gmail-s1">warning: Entry (6)
              not found in code table file
/Users/macbook/Downloads/ncl-6.4.0/lib/ncarg/grib2_codetables/ncep/1/1.3.table</span></p>
          <p class="gmail-p1"><span class="gmail-s1"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s1"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s1">==</span></p>
          <p class="gmail-p1"><span class="gmail-s1">any help</span></p>
          <p class="gmail-p1"><span class="gmail-s1">Ousmane</span></p>
          <p class="gmail-p1"><span class="gmail-s1"><br>
            </span></p>
          <p class="gmail-p1"><span class="gmail-s1"><br>
            </span></p>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>