<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16609" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY
style="WORD-WRAP: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space"
bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi Jennifer,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Thanks, when would the next release be available? I
dont think I'm going to be building from source. I will have to ignore this
variable for the meantime.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Steven</FONT></DIV>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=jma@COLA.IGES.ORG href="mailto:jma@COLA.IGES.ORG">Jennifer Adams</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=GRADSUSR@LIST.CINECA.IT
href="mailto:GRADSUSR@LIST.CINECA.IT">GRADSUSR@LIST.CINECA.IT</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, April 03, 2008 3:29
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> Re: grads-2.0.a1 segmentation
fault</DIV>
<DIV><BR></DIV>Hi, Steven --
<DIV>Great detective work! I downloaded the file you pointed to and now I can
see the error -- I fixed the lat/lon/time as you suggest and with 'set gxout
contour' got :</DIV>
<DIV> Result value = 4.26098e-311 but with 'set gxout
print' I got: Printing Grid -- 1 Values -- Undef =
9.999e+20 9.999e+20
<DIV><BR></DIV>
<DIV>This is clearly a bug -- I will look into it and put a fix in the next
release. </DIV>
<DIV>Jennifer</DIV>
<DIV><BR></DIV></DIV>
<DIV><BR>
<DIV>On Apr 3, 2008, at 7:28 AM, Steven Weiss wrote:<BR
class=Apple-interchange-newline>
<BLOCKQUOTE type="cite">
<DIV style="MARGIN: 0px">Hi,</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">I'm getting a segmentation fault which occurs
inconsistantly. I've managed</DIV>
<DIV style="MARGIN: 0px">to narrow it down to a particular variable in the
grib file - DISRswsfc that</DIV>
<DIV style="MARGIN: 0px">sometimes has garbage in it for certain time steps.
I'm working with the</DIV>
<DIV style="MARGIN: 0px">wavewatch 3 data from ncep/noaa.</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Below is an example of what is happening:</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Grads Output</DIV>
<DIV style="MARGIN: 0px">------------</DIV>
<DIV style="MARGIN: 0px">Grid Analysis and Display System (GrADS) Version
2.0.a1</DIV>
<DIV style="MARGIN: 0px">Copyright (c) 1988-2008 by Brian Doty and the</DIV>
<DIV style="MARGIN: 0px">Institute for Global Environment and Society
(IGES)</DIV>
<DIV style="MARGIN: 0px">GrADS comes with ABSOLUTELY NO WARRANTY</DIV>
<DIV style="MARGIN: 0px">See file COPYRIGHT for more information</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Config: v2.0.a1 little-endian readline printim
grib2 netcdf hdf4-sds</DIV>
<DIV style="MARGIN: 0px">Issue 'q config' command for more
information.</DIV>
<DIV style="MARGIN: 0px">Landscape mode? ('n' for portrait):</DIV>
<DIV style="MARGIN: 0px">GX Package Initialization: Size = 11 8.5</DIV>
<DIV style="MARGIN: 0px">Running in Batch mode</DIV>
<DIV style="MARGIN: 0px">ga-> sw.gs</DIV>
<DIV style="MARGIN: 0px">Result value = -1.04874e+80</DIV>
<DIV style="MARGIN: 0px">Segmentation fault</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Downloaded data</DIV>
<DIV style="MARGIN: 0px">---------------</DIV>
<DIV style="MARGIN: 0px"><A
href="ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/wave.20080403/nww3.t00z.grib.grib2">ftp://ftpprd.ncep.noaa.gov/pub/data/nccf/com/wave/prod/wave.20080403/nww3.t00z.grib.grib2</A></DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Control file</DIV>
<DIV style="MARGIN: 0px">-------------</DIV>
<DIV style="MARGIN: 0px">dset ^nww3.all.grb</DIV>
<DIV style="MARGIN: 0px">index ^nww3.all.grb.idx</DIV>
<DIV style="MARGIN: 0px">undef 9.999E+20</DIV>
<DIV style="MARGIN: 0px">title nww3.all.grb</DIV>
<DIV style="MARGIN: 0px">*<SPAN class=Apple-converted-space>
</SPAN>produced by g2ctl v0.0.3d</DIV>
<DIV style="MARGIN: 0px">* griddef=1:0:(288 x 157):grid_template=0: lat-lon
grid:(288 x 157) units 1e-06</DIV>
<DIV style="MARGIN: 0px">input WE:NS output WE:SN res 48 lat 78.000000 to
-78.000000 by 1.000000 lon 0.00</DIV>
<DIV style="MARGIN: 0px">0000 to 358.750000 by 1.250000 #points=45216</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">dtype grib2</DIV>
<DIV style="MARGIN: 0px">ydef 157 linear -78.000000 1</DIV>
<DIV style="MARGIN: 0px">xdef 288 linear 0.000000 1.250000</DIV>
<DIV style="MARGIN: 0px">tdef 61 linear 00Z03apr2008 3hr</DIV>
<DIV style="MARGIN: 0px">zdef 1 linear 1 1</DIV>
<DIV style="MARGIN: 0px">vars 11</DIV>
<DIV style="MARGIN: 0px">DIRPWsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>10,0,10 **
surface none Primary Wave Direction [deg]</DIV>
<DIV style="MARGIN: 0px">DIRSWsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>10,0,12 **
surface none Secondary Wave Direction [deg]</DIV>
<DIV style="MARGIN: 0px">HTSGWsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>10,0,3 **
surface none Significant Height of Combined Wind</DIV>
<DIV style="MARGIN: 0px"><SPAN
class=Apple-converted-space> </SPAN>Waves and Swell [m]</DIV>
<DIV style="MARGIN: 0px">PERPWsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>10,0,11 **
surface none Primary Wave Mean Period [s]</DIV>
<DIV style="MARGIN: 0px">PERSWsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>10,0,13 **
surface none Secondary Wave Mean Period [s]</DIV>
<DIV style="MARGIN: 0px">UGRDsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>0,2,2 **
surface none U-Component of Wind [m/s]</DIV>
<DIV style="MARGIN: 0px">VGRDsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>0,2,3 **
surface none V-Component of Wind [m/s]</DIV>
<DIV style="MARGIN: 0px">WDIRsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>0,2,0 **
surface none Wind Direction (from which blowing) [deg]</DIV>
<DIV style="MARGIN: 0px">WVPERsfc<SPAN class=Apple-converted-space>
</SPAN>0,1,0 <SPAN class=Apple-converted-space> </SPAN>10,0,6 **
surface none Mean Period of Wind Waves [s]</DIV>
<DIV style="MARGIN: 0px">ENDVARS</DIV>
<DIV style="MIN-HEIGHT: 14px; MARGIN: 0px"><BR></DIV>
<DIV style="MARGIN: 0px">Piece of code for lat/lon -29 16.25</DIV>
<DIV style="MARGIN: 0px">-----------------------------------</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>fmt2 = "%-.2f"</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>'d dirswsfc'</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>val=subwrd(result,4)</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>ln=sublin(result,1)</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>say ln</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>if (val = "9.999e+20" | val = "1e+20")</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>val = "N/A"</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>else</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>rc = math_format(fmt2,val)</DIV>
<DIV style="MARGIN: 0px">*** the segmentation fault occurs on line above due
to a bad number in val</DIV>
<DIV style="MARGIN: 0px"><SPAN class=Apple-converted-space>
</SPAN>endif</DIV></BLOCKQUOTE></DIV><BR>
<DIV><SPAN class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2"><SPAN
class=Apple-style-span
style="WORD-SPACING: 0px; FONT: 12px Helvetica; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BORDER-COLLAPSE: separate; border-spacing: 0px 0px; -khtml-text-decorations-in-effect: none; -apple-text-size-adjust: auto; orphans: 2; widows: 2">
<DIV>--</DIV>
<DIV>Jennifer M. Adams</DIV>
<DIV>IGES/COLA</DIV>
<DIV>4041 Powder Mill Road, Suite 302</DIV>
<DIV>Calverton, MD 20705</DIV>
<DIV><A href="mailto:jma@cola.iges.org">jma@cola.iges.org</A></DIV>
<DIV><BR class=khtml-block-placeholder></DIV><BR
class=Apple-interchange-newline></SPAN></SPAN></SPAN></DIV><BR></DIV></BLOCKQUOTE></BODY></HTML>