<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">The latest available Ubuntu/Debian package for GrADS is 2.0.a9. I was using it on some NOMADS GFS data. It creates beautiful georeferenced TIFF file, but when I attempt to use the KML line output, it crashes with a buffer overflow.</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
If I use the pre-built 2.0.1 from COLA on that SDF, it doesn't seem to work with the Ubuntu udunits package (which is libudunits2-0, and doesn't seem to have a udunits.dat, only .xml data files).</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">If I use 2.0.1 on the example data, it doesn't seem to need udunits, and I can create beautiful KML polygons (which are very cool!). 2.0.a9 still crashes on the same data. That leads me to believe that the bug was fixed between 2.0.a9 and 2.0.1 (makes sense, it was an alpha!).</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Unfortunately, building GrADS (with all its dependencies) on Ubuntu is well beyond my skills. So is there a 2.0.1 Ubuntu/Debian package out there please? Or is there a workaround to get the pre-built 2.0.1 from COLA working with udunits on Ubuntu?</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Thanks</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Julian</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
--- gory details ---</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Grid Analysis and Display System (GrADS) Version 2.0.a9</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">...</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Config: v2.0.a9 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids geotiff shapefile</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
...</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">ga-> sdfopen <a href="http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z" style="color:rgb(17,85,204)" target="_blank">http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z</a></div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Scanning self-describing file: <a href="http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z" style="color:rgb(17,85,204)" target="_blank">http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z</a></div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">SDF file <a href="http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z" style="color:rgb(17,85,204)" target="_blank">http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z</a> is open as file 1</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">LON set to 0 360 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
LAT set to -90 90 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">LEV set to 1000 1000 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Time values set: 2012:7:4:18 2012:7:4:18 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">E set to 1 1 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
ga-> set lat 40 60</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">LAT set to 40 60 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
ga-> set lon -10 10</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">LON set to -10 10 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
ga-> set gxout contour</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">ga-> d tmp2m</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Contouring: 282 to 302 interval 2 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">ga-> set gxout kml</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
ga-> set kml test1</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">KML output file names: </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
test1.tif (TIFF image) </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">test1.kml (KML text file) </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
KML output type: image</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">ga-> d tmp2m</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Created TIFF image file test1.tif</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"> and complementary KML file test1.kml</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
ga-> set kml -ln test2</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">KML output file name: </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
test2.kml (KML text file)</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">KML output type: contour lines</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
ga-> d tmp2m</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Contouring: 282 to 302 interval 2 </div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
*** buffer overflow detected ***: grads terminated</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">======= Backtrace: =========</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
/lib/i386-linux-gnu/libc.so.6(__fortify_fail+0x45)[0xb6e9bdd5]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">/lib/i386-linux-gnu/libc.so.6(+0xfebaa)[0xb6e9abaa]</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">/lib/i386-linux-gnu/libc.so.6(+0xfe483)[0xb6e9a483]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
/lib/i386-linux-gnu/libc.so.6(__snprintf_chk+0x37)[0xb6e9a347]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">grads(gxclvert+0x54)[0x805ec74]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
grads(gakml+0x5f3)[0x809b7a3]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">grads(gaplot+0x4a5)[0x809cf05]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
grads(gadspl+0x5b8)[0x80e7558]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">grads(gacmd+0x1922)[0x80e5d02]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
grads(main+0x5ee)[0x805264e]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf3)[0xb6db54d3]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
grads[0x8052be9]</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">======= Memory map: ========</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
08048000-08117000 r-xp 00000000 08:06 395232 /usr/bin/grads</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">...</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<div>Grid Analysis and Display System (GrADS) Version 2.0.1</div><div>Copyright (c) 1988-2011 by Brian Doty and the</div><div>Institute for Global Environment and Society (IGES)</div><div>GrADS comes with ABSOLUTELY NO WARRANTY</div>
<div>See file COPYRIGHT for more information</div><div><br></div><div>Config: v2.0.1 little-endian readline printim grib2 netcdf hdf4-sds hdf5 opendap-grids,stn geotiff shapefile</div><div>Issue 'q config' command for more detailed configuration information</div>
<div>Landscape mode? ('n' for portrait): </div><div>GX Package Initialization: Size = 11 8.5 </div><div>ga-> sdfopen <a href="http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z" style="color:rgb(17,85,204)" target="_blank">http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z</a></div>
<div>Scanning self-describing file: <a href="http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z" style="color:rgb(17,85,204)" target="_blank">http://nomads.ncep.noaa.gov:9090/dods/gfs/gfs20120704/gfs_18z</a></div>
<div>udunits(3): Couldn't open units database "/usr/local/lib/grads/udunits.dat": No such file or directory</div><div>gadsdf: UDUNITS package initialization failure.</div></div>