g2ctl and windows
Burn James
j.burn at GEOS.COM
Thu May 28 05:04:58 EDT 2009
Hi Arlindo
The main version of Grads we have here is 2.0.a3.oga.1
We also have access to the Cygwin version of Grads 2.0.a5.oga.4 - some of
our scripts are using this version now. It was from this version that I
took the latest version of wgrib2. The g2ctl I used is an .exe file -so
perl not needed?
Okay, trying with a g2ctl.pl and a perl v 5.6.0 for MSWin - from 2002 by
the looks - getting some error message: can't locate POSIX.pm in @INC (@INC
contains: .) BEGIN Failed - compliation aborted at line 36... I'll have a
play with the perl options here - Not sure about how to get a different
(Cygwin?) version.
BTW I love what you're doing with the other extensions stuff with Grads - I
run OpenSuse at home and am trying to pluck up courage and get into the
PyGrads or Perl interface...
Cheers
James
On Wed, 27 May 2009 18:58:55 -0700, Arlindo da Silva
<arlindo.dasilva at GMAIL.COM> wrote:
>On Wed, May 27, 2009 at 7:57 AM, Burn James <j.burn at geos.com> wrote:
>
>> Hi
>>
>> I'm struggling to create a ctl file for a Grib2 file I've downloaded.
>> Here's part of my (I'm afraid, Windows) batch file.
>>
>
>Which version of grads?
>
>
>>
>> rem create the inv file
>> wgrib2 -s H:\temp\multi_1.glo_30m.t00z.grib2 >global.t00z.grib.inv
>>
>> rem create the ctl file
>> H:\Grads20\g2ctl.exe -verf H:\temp\multi_1.glo_30m.t00z.grib2
>> >global.t00z.grib.ctl
>>
>> next stage is to use gribmap to create the idx file but I can't even get
>> past the g2ctl stage. My inv file looks fine - something like
>> 1:0:d=2009052700:WIND Wind Speed [m/s]:surface:anl:
>> 2:175642:d=2009052700:WDIR Wind Direction (from which blowing)
>> [deg]:surface:anl:
>> 3:426839:d=2009052700:UGRD U-Component of Wind [m/s]:surface:anl:
>> 4:600867:d=2009052700:VGRD V-Component of Wind [m/s]:surface:anl:
>> 5:776662:d=2009052700:HTSGW Significant Height of Combined Wind Waves and
>> Swell [m]:surface:anl: etc.
>>
>> However, the ctl file is created as a blank file. I'm using wgrib2
>> v0.1.7.8e 2/2009
>>
>> Any ideas? - I thought I may need -no_profile as its a wave model but it
>> appears it's something different.
>>
>
> Which version of perl are you using? You stand a better chance of you
>having this working by using perl that comes with cygwin. I need to
>investigate a long term solution for this problem. I take it is not an
>option for you to use grads v2.0, is it?
>
> Arlindo
>
>
>
>--
>Arlindo da Silva
>dasilva at alum.mit.edu
>
More information about the gradsusr
mailing list