Re: NCEP Grib Conversion problem with NCL 5.2.0.

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 16 2011 - 14:36:57 MST

Hi Michael,

Dave Brown pointed out that you may have gotten an NCL that was compiled against a grib2 library that didn't have a necessary 64-bit flag set when it was compiled.

I could try giving you a 5.2.1 "ncl" executable to try on your RHEL system. First, I need to know what version of gcc you are running there, "gcc --version".

--Mary

On Feb 16, 2011, at 9:42 AM, Mary Haley wrote:

> Hi Michael,
>
> Thanks for providing the GRIB2 file.
>
> I tried running "ncl_filedump -c" on this file using versions 5.1.1, 5.2.0, 5.2.1, and our current test version, and got the same correct results for all the versions.
>
> I noticed that you have a slightly different location of your GRIB2 code tables, so I'm guessing that your NCL installation came from a LINUX package installer, and not from us. If that's the case, then it's possible that your environment is set up incorrectly, or else the wrong files are installed.
>
> When you installed V5.2.0, did you get a new set of GRIB2 code tables, or are you using ones from an older installation? If you are using files from an older installation, this might be a problem.
>
> Dave Brown will have a better idea of what causes the error:
>
>> fatal:NclGRIB2: Invalid Product Definition Template.
>
> and may be able to tell you if this is because of a missing grib2 table, or something else.
>
> Meanwhile, I've attached the list of grib2 code tables that are a part of 5.2.0, in case you want to compare it to what you have in /usr/share/ncarg/grib2_codetables on your RHEL5.5 system.
>
> --Mary
>
> On Feb 15, 2011, at 9:46 PM, Michael Uddstrom wrote:
>
>> Dear Mary / Dennis
>>
>> At ncl 4.3.0 we are able to convert NCEP grib files to nc via ncl_convert2nc (demo grib file attached).
>>
>> Details as follows:
>> uname -a
>> Linux pa.niwa.co.nz 2.6.18-prep #1 SMP Mon Apr 16 23:40:46 UTC 2007 x86_64 x86_64 x86_64 GNU/Linux
>> [root@pa ~]# ncargpath root
>> /usr
>> [root@pa ~]# ncargpath grib2_codetables
>> /usr/lib/ncarg/grib2_codetables
>>
>> [root@pa tmp]# ncl_convert2nc gep11_t12z_pgrb2af12_2_2010081112.grb -e grb -o .
>> Processing file: gep11_t12z_pgrb2af12_2_2010081112.grb...
>> Copyright (C) 1995-2007 - All Rights Reserved
>> University Corporation for Atmospheric Research
>> NCAR Command Language Version 4.3.0
>> The use of this software is governed by a License Agreement.
>> See http://www.ncl.ucar.edu/ for more details.
>>
>> [root@pa tmp]# ls -l *.nc
>> -rw-r--r-- 1 root root 428228 Feb 16 03:52 gep11_t12z_pgrb2af12_2_2010081112.nc
>>
>> and / or
>>
>> [root@pa tmp]# ncl_filedump -c gep11_t12z_pgrb2af12_2_2010081112.grb | head -20
>> Copyright (C) 1995-2007 - All Rights Reserved
>> University Corporation for Atmospheric Research
>> NCAR Command Language Version 4.3.0
>> The use of this software is governed by a License Agreement.
>> See http://www.ncl.ucar.edu/ for more details.
>> Variable: f (file variable)
>>
>> filename: gep11_t12z_pgrb2af12_2_2010081112
>> path: gep11_t12z_pgrb2af12_2_2010081112.grb
>> file global attributes:
>> dimensions:
>> lat_0 = 73
>> lon_0 = 144
>> lv_ISBL0 = 2
>> variables:
>> float TMP_P1_L100_GLL0 ( lat_0, lon_0 )
>> center : US National Weather Service - NCEP (WMC)
>> production_status : Operational products
>> long_name : Temperature
>> units : K
>>
>> However, on a (different) RHEL5.5 system. at ncl 5.2.0
>>
>> uname -a
>> Linux fc-2 2.6.18-194.el5 #1 SMP Tue Mar 16 21:52:39 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
>> [root@fc-2 ~]# ncargpath root
>> /usr
>> [root@fc-2 ~]# ncargpath grib2_codetables
>> /usr/share/ncarg/grib2_codetables
>>
>> we get from ncl_filedump (and equivalently from ncl_convert2nc
>>
>> [root@fc-2 ~]# ncl_filedump -c gep20_t12z_pgrb2af372_2_2010081112.grb
>> Copyright (C) 1995-2010 - All Rights Reserved
>> University Corporation for Atmospheric Research
>> NCAR Command Language Version 5.2.0
>> The use of this software is governed by a License Agreement.
>> See http://www.ncl.ucar.edu/ for more details.
>> fatal:NclGRIB2: Invalid Product Definition Template.
>> fatal:Could not open (gep20_t12z_pgrb2af372_2_2010081112.grb)
>> Variable: f (file variable)
>> (0) File Missing Value : -1
>> warning: getfiledimsizes(): undefined file variable
>> Segmentation fault
>>
>> Hopefully there is enough information here to enable you to suggest the solution that has evaded us to date...
>>
>> Thanks for your help
>>
>> Michael
>>
>>
>>
>>
>>
>>
>> Please consider the environment before printing this email.
>>
>> NIWA is the trading name of the National Institute of Water & Atmospheric Research Ltd.
>> <gep11_t12z_pgrb2af12_2_2010081112.grb>_______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
> <grib2.5.2.0.txt>_______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Feb 16 14:37:03 2011

This archive was generated by hypermail 2.1.8 : Thu Feb 17 2011 - 22:00:17 MST