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.
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
This archive was generated by hypermail 2.1.8 : Thu Feb 17 2011 - 22:00:17 MST