<html><body>
<DIV>Hi Arlindo, </DIV>
<DIV>Yeah - this is a tricky bug. </DIV>
<DIV> </DIV>
<DIV>OK - here's the result of trying to get to model_25.gdf</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Microsoft Windows XP [Version 5.1.2600]<BR>(C) Copyright 1985-2001 Microsoft Corp.</DIV>
<DIV> </DIV>
<DIV>P:\>set PATH=c:\Program Files\PCGrADS19\win32;%PATH%</DIV>
<DIV> </DIV>
<DIV>P:\>gradsc -l<BR>Starting X server under /Xming<BR>Starting gradsc under c:\PROGRA~1\PCGRAD~2\win32 ...</DIV>
<DIV>Grid Analysis and Display System (GrADS) Version 1.9.0-rc1<BR>Copyright (c) 1988-2007 by Brian Doty and IGES<BR>Center for Ocean-Land-Atmosphere Studies (COLA)<BR>Institute for Global Environment and Society (IGES)<BR>GrADS comes with ABSOLUTELY NO WARRANTY<BR>See file COPYRIGHT for more information</DIV>
<DIV>Config: v1.9.0-rc1 32-bit little-endian readline lats athena printim</DIV>
<DIV>Issue 'q config' command for more information.</DIV>
<DIV>GX Package Initialization: Size = 11 8.5<BR></DIV>
<DIV>ga-> g2_open model_25.gdf<BR>Scanning description file: model_25.gdf<BR>Open Error: Can't open description file<BR></DIV>
<DIV>ga-> g2_open c:\Program Files\PCGrADS19\data\model_25.gdf<BR>Scanning description file: c:\Program<BR>Open Error: Can't open description file</DIV>
<DIV> </DIV>
<DIV>
<DIV>Next I tried editing the gfs gdf file as specified using the carrot ^ (file attached). Notice the grep error. </DIV>
<DIV> </DIV></DIV>
<DIV>ga-> g2_open c:\grib\hires_input\gfs_t12z.gdf g2_verb<BR>Scanning description file: c:\grib\hires_input\gfs_t12z.gdf<BR>Data file c:\grib\hires_input\gfs_t12z.grib2___ is open as file 1<BR>LON set to 0 360<BR>LAT set to -90 90<BR>LEV set to 1000 1000<BR>Time values set: 2008:4:16:18 2008:4:16:18<BR>Define memory allocation size = 4 bytes<BR></DIV>
<DIV>ga-> set lev 825<BR>LEV set to 825 825<BR></DIV>
<DIV>ga-> d g2(tmpprs)<BR>grep: gfs_t12z.inv: No such file or directory</DIV>
<DIV>*** FATAL ERROR: could not open file: c:gribhires_inputgfs_t12z.grib2 ***</DIV>
<DIV>Cannot contour grid - all undefined values<BR></DIV>
<DIV>ga-> close 1<BR>File 1 has been closed</DIV>
<DIV> </DIV>
<DIV>Next I tried using the non-Posix / in the gdf file.<BR></DIV>
<DIV>ga-> g2_open c:\grib\hires_input\gfs_t12z.gdf g2_verb<BR>Scanning description file: c:\grib\hires_input\gfs_t12z.gdf<BR>Data file c:\grib\hires_input\gfs_t12z.grib2___ is open as file 1<BR>LON set to 0 360<BR>LAT set to -90 90<BR>LEV set to 1000 1000<BR>Time values set: 2008:4:16:18 2008:4:16:18<BR></DIV>
<DIV>ga-> set lev 825<BR>LEV set to 825 825<BR></DIV>
<DIV>ga-> d g2(tmpprs)<BR>: No such file or directoryfs_t12z.inv</DIV>
<DIV>*** FATAL ERROR: could not open file: c:gribhires_inputgfs_t12z.grib2 ***</DIV>
<DIV>Cannot contour grid - all undefined values<BR></DIV>
<DIV>ga-></DIV>
<DIV> </DIV>
<DIV>Then I went back to trying a bunch of options on model_25.gdf (posix, non-posix, upper and lower case C):</DIV>
<DIV> </DIV>
<DIV>ga-> close 1<BR>File 1 has been closed</DIV>
<DIV><BR>ga-> g2_open model_25.gdf g2_verb<BR>Scanning description file: model_25.gdf<BR>Open Error: Can't open description file</DIV>
<DIV><BR>ga-> close 1<BR>Close Error: Only last file may be closed</DIV>
<DIV><BR>ga-> g2_open c:\Program Files\PCGrADS19\data\model_25.gdf g2_verb<BR>Scanning description file: c:\Program<BR>Open Error: Can't open description file</DIV>
<DIV><BR>ga-> g2_open C:\Program Files\PCGrADS19\data\model_25.gdf g2_verb<BR>Scanning description file: C:\Program<BR>Open Error: Can't open description file</DIV>
<DIV><BR>ga-> g2_open C:/Program Files/PCGrADS19/data/model_25.gdf g2_verb<BR>Scanning description file: C:/Program<BR>Open Error: Can't open description file</DIV>
<DIV><BR>ga-> g2_open c:/Program Files/PCGrADS19/data/model_25.gdf g2_verb<BR>Scanning description file: c:/Program<BR>Open Error: Can't open description file<BR>ga-></DIV>
<DIV class=signature id=signature>--<BR>Thanks, <BR>Mark</DIV>
<DIV> </DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message -------------- <BR>From: Arlindo da Silva <dasilva@ALUM.MIT.EDU> <BR>On Thu, Apr 17, 2008 at 12:54 PM, Mark Sponsler <<A href="mailto:msponsler@comcast.net">msponsler@comcast.net</A>> wrote:<BR>
<DIV class=gmail_quote>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>
<DIV>Arlindo - No luck. I've tried doing a 'cd' in the past when I've had pathing issues and it seems to make no difference. The only way to make progress is to explicitly identify the whole path to the input file:</DIV>
<DIV> </DIV>
<DIV>P:\>set PATH=c:\Program Files\PCGrADS19\win32;%PATH%</DIV>
<DIV> </DIV>
<DIV>P:\>cd c:\grib\hires_input\</DIV>
<DIV> </DIV>
<DIV>P:\>g2gdf.exe -verf gfs_t12z.grib2<BR>cannot find any GRIB-2 file at script/g2gdf.pl line 124.</DIV>
<DIV> </DIV>
<DIV>P:\>g2gdf -verf gfs_t12z.grib2<BR>cannot find any GRIB-2 file at script/g2gdf.pl line 124.</DIV>
<DIV> </DIV></DIV></BLOCKQUOTE>
<DIV><BR>Rats! I suspect that the problem is related to the "\" in the file names, as indicated by the grads error message:<BR><BR>: No such file or directoryt12z.inv<BR><BR>To test this hypothesis, edit the last 2 lines of your .gdf<BR><BR>FROM:<BR><BR>@ global String dset c:\grib\hires_input\gfs_t12z.grib2<BR>@ global String inventory c:\grib\hires_input\gfs_t12z.inv<BR><BR>TO:<BR><BR>@ global String dset ^gfs_t12z.grib2<BR>@ global String inventory ^gfs_t12z.inv<BR><BR>and if that does not work replace all the "\" with "/"<BR><BR>@ global String dset c:/grib/hires_input/gfs_t12z.grib2<BR>@ global String inventory c:/grib/hires_input/gfs_t12z.inv<BR><BR>One frustating aspect of all of this is that I have no such problem on my Windows XP boxes, so I cannot perform these tests myself. Are you running Vista by any chance?<BR><BR>Also, after the "g2_open" please add a "g2_verb" for extra diagnostic messages.<BR><
BR>BTW
, are you able to display the model_25.gdf included in the data/ directory?<BR><BR> Thanks,<BR><BR> Arlindo<BR><BR></DIV></DIV>-- <BR>Arlindo da Silva<BR><A href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</A> </BLOCKQUOTE></body></html>