g2gdf.pl in GrADS1.9

Mark Sponsler msponsler at COMCAST.NET
Thu Apr 10 17:36:50 EDT 2008


Bingo!
I renamed to old version of g2ctl.pl, then placed the new version in the win32 dir.  Set my path and then tried to invoke it with no options, and it started fine.  Then I added the grib file name and the perl script found it and displayed the descriptor file to the screen. Finally I tried to get it to write out a control file but I don't think I understand the command sytanx.  Either way, it looks like you found whatever was causing the problem.  Congratulations!.

P:\>set PATH=c:\Program Files\PCGrADS19\win32;%PATH%

P:\>path
PATH=c:\Program Files\PCGrADS19\win32;C:\Perl\bin\;C:\orant\Ora81\bin\;C:\WINNT\
system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Attachmate\E!E2K\;C:\P
rogram Files\PCGrADS\win32e\;C:\Program Files\GMT\bin;C:\Program Files\wgrib2\

P:\>g2ctl.pl
c:\Program Files\PCGrADS19\win32\g2ctl.pl 0.0.3g  wesley ebisuzaki
 makes a Grads control file for grib files
 usage: c:\Program Files\PCGrADS19\win32\g2ctl.pl [options] [grib_file] [optiona
l index file] [optional pdef file] >[ctl file]
 -verf           .. use forecast verification times
 -0              .. use analysis times
 -365            .. 365 day calendar
 -ts[timestep]   .. set timestep for individual time files (e.g. -ts6hr)
 -lc             .. set lowercase option for parameter names
 -iso_profile    .. set z coordinate to ocean isotherms
 -prs_profile    .. set z coordinate to pressure (mb)
 -m_profile      .. set z coordinate to meters above ground/msl
 -no_profile     .. no z coordinates
 -raw            .. raw grid
 -iso_profile    .. make profile using subsurface isoterms
Note 1: the index file will be generated by the gribmap program, default: grib_f
ile.idx
Note 2: the pdef file is only generated for thinned lat-lon grids, default: grib
_file.pdef

P:\>g2ctl.pl -verf c:\grib\input_new\multi_1.wc_4m.t12z.grib2
dset c:\grib\input_new\multi_1.wc_4m.t12z.grib2
index c:\grib\input_new\multi_1.wc_4m.t12z.grib2.idx
undef 9.999E+20
title c:\grib\input_new\multi_1.wc_4m.t12z.grib2
*  produced by g2ctl v0.0.3g
* griddef=1:0:(736 x 526):grid_template=0: lat-lon grid:(736 x 526) units 1e-06
input WE:NS output WE:SN res 48 lat 50.000000 to 15.000000 by 0.066667 lon 195.0
00000 to 244.000000 by 0.066667 #points=387136
dtype grib2
ydef 526 linear 15.000000 0.066667
xdef 736 linear 195.000000 0.066667
tdef 61 linear 12Z19mar2008 3hr
zdef 1 linear 1 1
vars 16
DIRPWsfc  0,1,1   10,0,10 ** surface none Primary Wave Direction [deg]
HTSGWsfc  0,1,1   10,0,3 ** surface none Significant Height of Combined Wind Wav
es and Swell [m]
PERPWsfc  0,1,1   10,0,11 ** surface none Primary Wave Mean Period [s]
SWDIRl241  0,241,1   10,0,7 ** ordered sequence of data none Direction of Swell
Waves [deg]
SWDIRl241  0,241,2   10,0,7 ** ordered sequence of data none Direction of Swell
Waves [deg]
SWELLl241  0,241,1   10,0,8 ** ordered sequence of data none Significant Height
of Swell Waves [m]
SWELLl241  0,241,2   10,0,8 ** ordered sequence of data none Significant Height
of Swell Waves [m]
SWPERl241  0,241,1   10,0,9 ** ordered sequence of data none Mean Period of Swel
l Waves [s]
SWPERl241  0,241,2   10,0,9 ** ordered sequence of data none Mean Period of Swel
l Waves [s]
UGRDsfc  0,1,1   0,2,2 ** surface none U-Component of Wind [m/s]
VGRDsfc  0,1,1   0,2,3 ** surface none V-Component of Wind [m/s]
WDIRsfc  0,1,1   0,2,0 ** surface none Wind Direction (from which blowing) [deg]
WINDsfc  0,1,1   0,2,1 ** surface none Wind Speed [m/s]
WVDIRsfc  0,1,1   10,0,4 ** surface none Direction of Wind Waves [deg]
WVHGTsfc  0,1,1   10,0,5 ** surface none Significant Height of Wind Waves [m]
WVPERsfc  0,1,1   10,0,6 ** surface none Mean Period of Wind Waves [s]
ENDVARS

P:\>g2ctl.pl -verf c:\grib\input_new\multi_1.wc_4m.t12z.grib2 c:\grib\input_new\
control.ctl
dset c:\grib\input_new\multi_1.wc_4m.t12z.grib2
index c:\grib\input_new\control.ctl
undef 9.999E+20
title c:\grib\input_new\multi_1.wc_4m.t12z.grib2
*  produced by g2ctl v0.0.3g
* griddef=1:0:(736 x 526):grid_template=0: lat-lon grid:(736 x 526) units 1e-06
input WE:NS output WE:SN res 48 lat 50.000000 to 15.000000 by 0.066667 lon 195.0
00000 to 244.000000 by 0.066667 #points=387136
dtype grib2
ydef 526 linear 15.000000 0.066667
xdef 736 linear 195.000000 0.066667
tdef 61 linear 12Z19mar2008 3hr
zdef 1 linear 1 1
vars 16
DIRPWsfc  0,1,1   10,0,10 ** surface none Primary Wave Direction [deg]
HTSGWsfc  0,1,1   10,0,3 ** surface none Significant Height of Combined Wind Wav
es and Swell [m]
PERPWsfc  0,1,1   10,0,11 ** surface none Primary Wave Mean Period [s]
SWDIRl241  0,241,1   10,0,7 ** ordered sequence of data none Direction of Swell
Waves [deg]
SWDIRl241  0,241,2   10,0,7 ** ordered sequence of data none Direction of Swell
Waves [deg]
SWELLl241  0,241,1   10,0,8 ** ordered sequence of data none Significant Height
of Swell Waves [m]
SWELLl241  0,241,2   10,0,8 ** ordered sequence of data none Significant Height
of Swell Waves [m]
SWPERl241  0,241,1   10,0,9 ** ordered sequence of data none Mean Period of Swel
l Waves [s]
SWPERl241  0,241,2   10,0,9 ** ordered sequence of data none Mean Period of Swel
l Waves [s]
UGRDsfc  0,1,1   0,2,2 ** surface none U-Component of Wind [m/s]
VGRDsfc  0,1,1   0,2,3 ** surface none V-Component of Wind [m/s]
WDIRsfc  0,1,1   0,2,0 ** surface none Wind Direction (from which blowing) [deg]
WINDsfc  0,1,1   0,2,1 ** surface none Wind Speed [m/s]
WVDIRsfc  0,1,1   10,0,4 ** surface none Direction of Wind Waves [deg]
WVHGTsfc  0,1,1   10,0,5 ** surface none Significant Height of Wind Waves [m]
WVPERsfc  0,1,1   10,0,6 ** surface none Mean Period of Wind Waves [s]
ENDVARS
P:\>
  --
Thanks,
Mark

-------------- Original message --------------
From: Arlindo da Silva <dasilva at ALUM.MIT.EDU>
Mark,

   Try running g2ctl.pl on your grib-2 file:

g2ctl.pl -verf c:\grib\input_new\multi_1.wc_4m.t12z.grib2

  Do get the same access denied error?

      Arlindo


--
Arlindo da Silva
dasilva at alum.mit.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://gradsusr.org/pipermail/gradsusr/attachments/20080410/e474fc69/attachment.html 


More information about the gradsusr mailing list