Re: Can't read NCEP NAM12 Grib2 files

From: David Brown <dbrown_at_nyahnyahspammersnyahnyah>
Date: Mon, 30 Mar 2009 12:33:49 -0600

Hi Ron,

I tried reading a sample file (nam.t00z.awip1203.tm00.grib2) that I
got from the site you mention and the output looked pretty normal.
(There were a few parameter codes that were unrecognized, but in
general the variables and grids looked reasonable.)

Your sample code below uses 'addfiles'. Do you have the same problem
if you just read one file? Are you saying that when you
do an 'ncl_filedump' it does not produce any content in the file.

Perhaps you could tell me specifically which files you are trying to
use with your sample code.
Thanks,
  -dave

On Mar 30, 2009, at 12:15 PM, Ron Chapman wrote:

> We are having difficulty reading NCEP NAM12 grib2 files from the NOAA
> ftp site. The actual grib files are the NAM 218 AWIPS Grid - CONUS
> (12-km Resolution) found at the link
> http://www.nco.ncep.noaa.gov/pmb/products/nam
>
> The output from ncl_dumpfile is
>
> $ ncl_filedump nam.grib
> Copyright (C) 1995-2009 - All Rights Reserved
> University Corporation for Atmospheric Research
> NCAR Command Language Version 5.1.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: nam
> path: nam.grib
> file global attributes:
> dimensions:
> variables:
>
> when I try and read the grib file with the following ncl script I
> get a
> segmentation fault.
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
>
> begin
>
> diri = "./nam_dynamic/" ; input data directory
> setfileoption("grb","SingleElementDimensions","Forecast_time" )
> fils = systemfunc("cd "+diri +" ; ls DOWNLOAD*.grib")
> f = addfiles (diri+fils, "r")
> end
>
> Any suggestions??
>
>
> RWDI - One of Canada's 50 Best Managed Companies
> www.rwdi.com/50_best/
>
> This communication is intended for the sole use of the party to
> whom it was addressed and may contain information that is
> privileged and/or confidential. Any other distribution, copying or
> disclosure is strictly prohibited. If you received this email in
> error, please notify us immediately by replying to this email and
> delete the message without retaining any hard or electronic copies
> of same.
>
> Outgoing emails are scanned for viruses, but no warranty is made to
> their absence in this email or attachments.
>
> _______________________________________________
> 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 Mon Mar 30 2009 - 12:33:49 MDT

This archive was generated by hypermail 2.2.0 : Mon Apr 06 2009 - 14:56:31 MDT