<div class="gmail_quote">On Wed, Apr 9, 2008 at 7:00 PM, Mark Sponsler &lt;<a href="mailto:msponsler@comcast.net">msponsler@comcast.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Using Grads1.9 Win32 superpack (non-self installing) ver 4/6/08 off a<br>
flash drive on a machine which I do not have admin rights...<br>
<br>
While playing with the new g2gdf.pl extension in Grads1.9, received the<br>
following error trying to read a grib2 file:<br>
<br>
<br>
&gt;set PATH=c:\Program Files\PCGrADS19\win32<br>
<br>
&gt;g2gdf.pl -o c:\grib\input_new\multi_1.gdf &nbsp;-I<br>
c:\grib\input_new\multi_1.inv c:\grib\input_new\multi_1.wc_4m.t12z.grib2<br>
<br>
 &nbsp; g2gdf - control file/inventory for &quot;g2&quot; extension<br>
<br>
 &nbsp; &nbsp; &nbsp; &nbsp; Descriptor: c:\grib\input_new\multi_1.gdf<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Inventory: c:\grib\input_new\multi_1.inv<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Data Dir: c:\grib\input_new\<br>
 &nbsp; &nbsp; &nbsp; &nbsp; Grib files: multi_1.wc_4m.t12z.grib2<br>
<br>
cannot create c:\grib\input_new\multi_1.gdf --- is g2ctl.pl on path? at<br>
c:\Program Files\PCGrADS19\win32\g2gdf.pl line 52.<br></blockquote><div><br></div><div>Start by testing whether g2ctl works on your grib2 file; use the g2ctl.exe version.</div><div>&nbsp;</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
All the other apps seem to work fine when using the &#39;set PATH&#39; command.<br>
<br>
Maybe something needs to be &#39;virtualized&#39; in g2gdf.pl?<br>
</blockquote></div><br>I am a bit confused. Which shell are you using? Are you using the Perl version (g2gdf.pl) or the executable &quot;g2gdf.exe&quot;? If using the script version you must use a Cygwin compiled perl, or else you may need to use &quot;dos2unix&quot; to convert the resulting text files .gdf/.inv. Also, use POSIX file names with forward slashes:&nbsp;c:/grib/input_new/multi_1.wc_4m.t12z.grib2<div>
<br><div>My recommendation would be for you to start with g2gdf.exe and g2ctl.exe which should already be in your win32 directory. Next, try these with POSIX file names. And if using g2ctl.pl with perl/cygwin, you need the win32 patched version.</div>
<div><br></div><div>&nbsp;&nbsp;Let me know how it goes. Are your particular grib-2 files available on-line?</div><div><br></div><div>&nbsp;&nbsp; Arlindo<br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a>
</div></div>