Re: GRIB to NC file

From: James McPhee <jpmcphee_at_nyahnyahspammersnyahnyah>
Date: Tue, 28 Jul 2009 21:12:39 -0400

Dear Mary, this is the output I get from your instructions:

topanga:~ jmcphee$ ncl -V
5.1.1

topanga:~ jmcphee$ which ncl
/usr/local/bin/ncl

topanga:~ jmcphee$ which ncl_convert2nc
/usr/local/bin/ncl_convert2nc

topanga:~ jmcphee$ ls -l `which ncl_convert2nc'
>

topanga:~ jmcphee$ ncl
  Copyright (C) 1995-2009 - All Rights Reserved
  University Corporation for Atmospheric Research
  NCAR Command Language Version 5.1.1
  The use of this software is governed by a License Agreement.
  See http://www.ncl.ucar.edu/ for more details.
ncl 0> ncl_convert2nc $NCARG_ROOT/lib/ncarg/data/grb/
ced1.lf00.t00z.eta.grb
fatal:syntax error: line 0 before or near $
ncl_convert2nc $
---------------^

fatal:error in statement
ncl 1>

also, with my own data what i get is:

ncl 1> ncl_convert2nc HADCM3_B2_prec_1960-2099.grb
fatal:syntax error: line 1 before or near HADCM3_B2_prec_1960
ncl_convert2nc HADCM3_B2_prec_1960
---------------------------------^

fatal:error in statement

I should point out that in the same folder I also have tow files, with
extensions .ctl and .gmp.

Thanks,

James

James McPhee
Ingeniero Civil, PhD.
Profesor Asistente, Departamento de Ingenieria Civil
Facultad de Ciencias Fisicas y Matematicas, Universidad de Chile
Av. Blanco Encalada 2002 piso 3
Santiago, Chile
tel: +56-2-9784397
jmcphee_at_ing.uchile.cl
http://www.cec.uchile.cl/~jmcphee

On Jul 28, 2009, at 11:48 AM, Mary Haley wrote:

>
> James,
>
> What's the exact error message that you receive?
>
> Does the following produce an error message:
>
> ncl_convert2nc $NCARG_ROOT/lib/ncarg/data/grb/ced1.lf00.t00z.eta.grb
>
> Finally, what does the following report:
>
> ncl -V
> which ncl
> which ncl_convert2nc
> ls -l `which ncl_convert2nc`
> printenv NCARG_ROOT
>
> --Mary
>
>
>
> On Tue, 28 Jul 2009 jmcphee_at_ing.uchile.cl wrote:
>
>> Dear All,
>>
>> I'm trying to convert .grb files to netcdf using ncl. I have the
>> latest ncl distribution running on OS X 10.5. When I try running the
>> command
>>
>> ncl_convert2nc foo -e grb
>>
>> I just get a syntax error, and no more information.
>>
>> Any help will be much appreciated!
>>
>> James
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>> _______________________________________________
>> ncl-talk mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
Received on Tue Jul 28 2009 - 19:12:39 MDT

This archive was generated by hypermail 2.2.0 : Wed Jul 29 2009 - 09:07:41 MDT