<div dir="ltr">thanks Dave<div>for all your investigation</div><div>Ousmane</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 6, 2017 at 5:45 PM, David Brown <span dir="ltr"><<a href="mailto:dbrown@ucar.edu" target="_blank">dbrown@ucar.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Ousmane,<br>
I finally was able to get the complete file and it appears to be as I<br>
suggested earlier, that NCL is not reading all the records because it<br>
does not yet handle GRIB2 product definition template 61. This one<br>
should be relatively easy to add to NCL so I think we should be able<br>
to have this fixed in time for the next NCL release (6.5.0) which is<br>
going to be available soon.<br>
-dave<br>
<div class="HOEnZb"><div class="h5"><br>
On Mon, Sep 4, 2017 at 5:10 AM, ousmane ndiaye <<a href="mailto:ondiaye70@gmail.com">ondiaye70@gmail.com</a>> wrote:<br>
> Thanks dave<br>
> for your answer and investigation<br>
> The size is actually :<br>
><br>
> -rwxrwxrwx 1 macbook staff 1298838 Jul 20 16:36 1Sep2009.grib<br>
><br>
> I ftp it while changing the name to "file1Sep2009.grib"<br>
> Ousmane<br>
> thanks<br>
><br>
><br>
> On Thu, Aug 31, 2017 at 9:37 PM, David Brown <<a href="mailto:dbrown@ucar.edu">dbrown@ucar.edu</a>> wrote:<br>
>><br>
>> Hi Ousmane,<br>
>> The second error message is pretty minor. It simply indicates that the<br>
>> table used to give a value to the "production_status" attribute is not<br>
>> quite up-to-date. If it were up-to-date. you would see<br>
>><br>
>> production_status : S2S Operational Products<br>
>><br>
>> instead of<br>
>><br>
>> production_status : 6<br>
>><br>
>> (6 is the code for "S2S Operational Products" in the table 1.6.table)<br>
>><br>
>> The first error is more serious, but I am unable to duplicate it with<br>
>> any version of NCL that I have. One possible reason for this is that<br>
>> the file you uploaded may be truncated. It only contains one complete<br>
>> GRIB record, but it also contains the beginning of a second record.<br>
>> The file as we received it is 24020 bytes:<br>
>> ls -l 1Sep2009.grib<br>
>> -rw-r--r-- 1 dbrown ncar 24020 Aug 31 15:15 1Sep2009.grib<br>
>><br>
>> If your file is bigger than that, then the file was not successfully<br>
>> uploaded to the ftp site. Can you check the size of your file and if<br>
>> necessary upload it again? If it is the same size, then your file is<br>
>> incomplete and maybe you can retrieve it again from wherever it came<br>
>> from.<br>
>><br>
>> I can tell you that this file uses a GRIB2 Product Definition Template<br>
>> number (see<br>
>> <a href="http://www.nco.ncep.noaa.gov/pmb/docs/grib2/grib2_table4-0.shtml" rel="noreferrer" target="_blank">http://www.nco.ncep.noaa.gov/<wbr>pmb/docs/grib2/grib2_table4-0.<wbr>shtml</a>),<br>
>> 61, that NCL does not yet fully support. That means that the error you<br>
>> are seeing would not be surprising assuming the file is complete. We<br>
>> will be updating our code to handle this template as soon as possible.<br>
>><br>
>> Thanks for your report and hopefully you can send a complete file to us.<br>
>> -dave<br>
>><br>
>><br>
>><br>
>> On Thu, Aug 31, 2017 at 6:50 AM, ousmane ndiaye <<a href="mailto:ondiaye70@gmail.com">ondiaye70@gmail.com</a>><br>
>> wrote:<br>
>> > Dear All,<br>
>> ><br>
>> > I downloaded forecast file from ecmwf s2s data base in grib2 format.<br>
>> ><br>
>> > When I try to read it I got this error :<br>
>> ><br>
>> > ncl 3> ff=addfile("1Sep2009.grib","r"<wbr>)<br>
>> ><br>
>> > warning:NclGRIB2: TPRATE_P61_L1 contains records that NCL cannot<br>
>> > currently<br>
>> > differentiate. One or more records will be ignored.<br>
>> ><br>
>> > warning: Entry (6) not found in code table file<br>
>> ><br>
>> > /Users/macbook/Downloads/ncl-<wbr>6.4.0/lib/ncarg/grib2_<wbr>codetables/ncep/1/1.3.table<br>
>> ><br>
>> ><br>
>> ><br>
>> > ==<br>
>> ><br>
>> > any help<br>
>> ><br>
>> > Ousmane<br>
>> ><br>
>> ><br>
>> ><br>
>> ><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>
><br>
><br>
</div></div></blockquote></div><br></div>