[ncl-install] ncl_convert2nc reports 'Badly placed ()'s'

Comiskey, Glenn g.comiskey at geos.com
Fri Jun 24 04:07:44 MDT 2011


Mary,
 
I can confirm that I can run the csh (/bin/csh -> tcsh) command and open
a tcsh shell.
 
Copied back original ncl_convert2nc and ran "ncl_convert2nc
$NCARG_ROOT/lib/ncarg/data/grb/ced1.1f00.t00z.grb" (and the also the
other two files) but it reported: Badly placed ()'s
 
Added line "echo $vars" before "if ($?vars) then", but this results in
"vars: Undefined variable."
 
Added line "set vars = 0" before "if ($?vars) then", but this results
in:
warning:NclGRIB: Detected incomplete record, skipping record
.
.
warning:NclGRIB: Detected incomplete record, skipping record
fatal:getfilevarnames: file does not exist 
fatal:Execute: Error occured at or near line 227 in file
/tmp/tmp3436.ncl
 
Added line "set vars = 1" before "if ($?vars) then", but this results
in:
warning:NclGRIB: Detected incomplete record, skipping record
.
.
warning:NclGRIB: Detected incomplete record, skipping record
fatal:getfilevarnames: file does not exist 
fatal:Execute: Error occured at or near line 227 in file
/tmp/tmp3624.ncl
 
Issue seems to relate to vars variable, which looks like it doesn't get
set but then this shouldn't be an issue with "if ($?vars) then" as it's
supposedly just checking to see if the variable does exist.
 
Regards,
 
Glenn

________________________________

From: Mary Haley [mailto:haley at ucar.edu] 
Sent: 23 June 2011 20:18
To: Comiskey, Glenn
Cc: ncl-install at ucar.edu; David Brown
Subject: Re: [ncl-install] ncl_convert2nc reports 'Badly placed ()'s'


Glenn, 


Are you actually able to run csh?  What happens if you type "csh" on the
UNIX command line?

Did you make any other changes to ncl_convert2nc to get it to work?

As a test, go back to the original "ncl_convert2nc" before you made any
changes, and execute it with:

ncl_convert2nc $NCARG_ROOT/lib/ncarg/data/grb/ced1.lf00.t00z.eta.grb

Let us know what happens.

--Mary
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20110624/a32815c3/attachment-0001.html 


More information about the ncl-install mailing list