Re: Problems reading GRIB2 files

From: Gerry Creager <gerry.creager_at_nyahnyahspammersnyahnyah>
Date: Thu, 03 Sep 2009 08:46:06 -0500

Samuel,

My apologies for not getting back to you since yesterday morning! I'm
in Texas: The intercontinental differences do play out and I was busy
qith a supercomputer problem most of the day!

The codetable tells NCL how to read different files originating from
different sources. I note that MY $NCARG_ROOT doesn't point to the
lib/ncarg subdirectory (and this is on a working system) but to the
top-level directory. It must work: I process grib2 GFS data routinely.
  Thus I suspect your $NCARG_ROOT should point to /data2/share/ncarg

What directory is ncl executed from ("which ncl")?

gerry

Leung Samuel 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
> <mailto: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 <mailto: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
>
>

-- 
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 - 07:46:06 MDT

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