Re: Problems reading GRIB2 files

From: Leung Samuel <shwl0608_at_nyahnyahspammersnyahnyah>
Date: Thu, 3 Sep 2009 15:33:45 +0800

Understood. Thanks for your help and effort. I will install the full version
of NCL and try again later.

Samuel Leung

On Thu, Sep 3, 2009 at 12:41 PM, Mary Haley <haley_at_ucar.edu> wrote:

>
> One thing I forgot to mention: the code for reading GRIB1 files is
> built into the "ncl" executable and you don't need additional
> files.
>
> For GRIB2, however, the GRIB2 code tables are needed, and these are
> installed in various directories under
> $NCARG_ROOT/lib/ncarg/grib2_codetables.
>
> --Mary
>
>
> On Wed, 2 Sep 2009, Mary Haley wrote:
>
>
>> [Gerry, thanks for taking a swing at this. What you suggested was my
>> first thought too.]
>>
>> Samuel, I think you have just a partial version of NCL, since it is
>> reporting version "5.1.1-alpha". You might have had an older version
>> of NCL at one point, and I gave you a new alpha "ncl" to try but
>> didn't give you all the extra files that go with it, like code tables.
>>
>> Since your "/data2/share/ncarg/lib/ncarg/grib2_codetables" doesn't
>> exist, I recommend downloading and installing NCL V5.1.1 , so you can
>> get the full, non-alpha version.
>>
>> The instructions are at:
>>
>> http://www.ncl.ucar.edu/Download/
>>
>> --Mary
>>
>>
>> On Thu, 3 Sep 2009, Leung Samuel wrote:
>>
>> Gerry,
>>>
>>> I have confirmed that /data2/share/ncarg/ is the $NCARG_ROOT. The
>>> permission
>>> is 755.
>>>
>>> Despite the problem I face when handling grib2 files, the ncl I am using
>>> works fine when I use it with grib1 files.
>>>
>>> Samuel
>>>
>>> On Wed, Sep 2, 2009 at 10:43 PM, Leung Samuel <shwl0608_at_gmail.com>
>>> wrote:
>>>
>>> Gerry,
>>>>
>>>> Thanks for your quick reply.
>>>>
>>>> Sorry that I cannot access that computer until I am back to office
>>>> tomorrow
>>>> (I am from Hong Kong).
>>>>
>>>> As I remember, the path /data2/share/ncarg/lib/ncarg/ does exist but
>>>> there
>>>> is no "grib2_codetables" folder inside. What does that codetable folder
>>>> essentially do?
>>>>
>>>> Samuel
>>>>
>>>>
>>>> On Wed, Sep 2, 2009 at 10:20 PM, Gerry Creager <gerry.creager_at_tamu.edu
>>>> >wrote:
>>>>
>>>> Samuel,
>>>>>
>>>>> Sorry for the obvious questions, but, have you made sure
>>>>> /data2/share/ncarg/lib really IS $NCARG_ROOT, or is it something more
>>>>> like,
>>>>> /data2/share/ncl/lib/ncarg
>>>>>
>>>>> Also, what are the permissions on reading $NCARG_ROOT ?
>>>>>
>>>>> gerry
>>>>>
>>>>>
>>>>> Leung Samuel wrote:
>>>>>
>>>>> Hi NCL Team,
>>>>>>
>>>>>> This is the first time I use NCL to read GRIB2 files and I got
>>>>>> problems
>>>>>> when doing that. It seems that ncl is looking for a "codetable
>>>>>> directory"
>>>>>> and the following is the output of reading that GRIB2 file
>>>>>>
>>>>>> Copyright (C) 1995-2009 - All Rights Reserved
>>>>>> University Corporation for Atmospheric Research
>>>>>> NCAR Command Language Version 5.1.1-alpha
>>>>>> The use of this software is governed by a License Agreement.
>>>>>> See http://www.ncl.ucar.edu/ for more details.
>>>>>> fatal: NclGRIB2: codetable directory
>>>>>> "/data2/share/ncarg/lib/ncarg/grib2_codetables" invalid
>>>>>> fatal:Could not open (myfile.grb2)
>>>>>>
>>>>>> (/data2/share/ncarg/ is the $NCARG_ROOT in my computer)
>>>>>>
>>>>>> And this error makes the ncl cannot continue. Does it mean I have to
>>>>>> download a codetable from somewhere else before reading the GRIB2
>>>>>> file?
>>>>>>
>>>>>> Thanks and regards,
>>>>>> Samuel Leung
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>> _______________________________________________
>>>>>> ncl-talk mailing list
>>>>>> List instructions, subscriber options, unsubscribe:
>>>>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>>>>
>>>>>>
>>>>> --
>>>>> Gerry Creager -- gerry.creager_at_tamu.edu
>>>>> Texas Mesonet -- AATLT, Texas A&M University
>>>>> Cell: 979.229.5301 Office: 979.458.4020 FAX: 979.862.3983
>>>>> Office: 1700 Research Parkway Ste 160, TAMU, College Station, TX 77843
>>>>>
>>>>>
>>>>
>>>>
>>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
Received on Thu Sep 03 2009 - 01:33:45 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 03 2009 - 07:55:08 MDT