NCEP CSFR grb2 errors

From: Allison Steiner <alsteiner_at_nyahnyahspammersnyahnyah>
Date: Wed Jul 20 2011 - 13:10:03 MDT


I'm trying to process the NCEP CSFR GRB2 temperature output for 1979-2009 and am running into some problems.

The attached script opens the files in a loop and tries to read in a specified variable (ALBDO_P8_L1_GGA0) from each file. The script runs for the first fifteen months with the usual NCL grib warnings, e.g.:
warning: Entry (205) not found in code table file /usr/share/ncarg/grib2_codetables/ncep/4/4.10.table

However, when it reaches the 16th file,the grib error changes slightly to

warning: NclGRIB2: codetable file "/usr/share/ncarg/grib2_codetables/ncep/1/1.3.table" not a valid GRIB2 code table.

It then crashes on the subsequent file (the 17th) with the following error:
fatal: NclGRIB2: codetable directory "/usr/share/ncarg/grib2_codetables" invalid
fatal:Could not open (../Ncep/flxf03.gdas.198006.grb2)
fatal:Either file (f) isn't defined or variable (ALBDO_P8_L1_GGA0) is not a variable in the file
fatal:Execute: Error occurred at or near line 19 in file testncep2.ncl

I would suspect this was something with the libraries, but the script runs for multiple months before getting this error. Also, the crash always occurs on the 17th file, even if I change the decade of data I'm processing, indicating that the error is not due to any one specific file. I'm running NCL v. 5.1.1. Two years of monthly data are loaded to ( with the beginning file extension of flxf03.gdas.YYYYMM.grb2.

Any ideas?

Thank you,


   ; Script to read in NCEP CSFR data 1979-2009
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"


; list all files
fili = systemfunc("ls ../Ncep/*.grb2")
nfil = dimsizes(fili)

; file loop
do nf=0, nfil-1
  print(nf+" "+fili(nf))
  f = addfile(fili(nf),"r") ; grib


end do


ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
Received on Wed Jul 20 13:10:11 2011

This archive was generated by hypermail 2.1.8 : Fri Jul 29 2011 - 08:44:18 MDT