On Tue, Jun 2, 2009 at 12:07 PM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="">Hi, Piotr --<div>Please see <a href="http://iges.org/grads/gadoc/supplibs.html" target="_blank">http://iges.org/grads/gadoc/supplibs.html</a> for links to the source code for all the libraries you need to enable these features. Alternatively, Arlindo's opengrads site on <a href="http://sourceforge.net" target="_blank">sourceforge.net</a> has supplib binaries and instructions for building GrADS from source. </div>
</div></blockquote><div><br>It turns out that if you would like to use the opengrads supplibs-2.1.0 available from <br><br> <a href="http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=241681&release_id=661716">http://sourceforge.net/project/showfiles.php?group_id=161773&package_id=241681&release_id=661716</a><br>
<br>to build grads-2.0.a6 from sources you need a little configure magic. First, untar the supplibs binary and make a symlink such that supplibs/ is parallel to the grads sources:<br><br> supplibs -> ../supplibs-2.1.0/x86_64..... (or whatever other architecture you have)<br>
grads-2.0.a6/<br><br>Here is how I built it on x86_64:<br><br>% cd grads-2.0.a6<br>% export CPPFLAGS -I../../supplibs/include/netcdf<br>% ./configure --without-gui<br><br>This will give you:<br><br><div style="margin-left: 40px; font-family: courier new,monospace;">
+=========================================================================+<br> GrADS 2.0.a6 : Built Tue Jun 2 15:21:38 EDT 2009 for x86_64-unknown-linux-gnu<br> +=========================================================================+<br>
<br> +----------------------------------+<br> | |<br> | Configuration Summary |<br> | |<br> | + readline enabled |<br> | + printim enabled |<br>
| + netcdf enabled |<br> | + hdf4 enabled |<br> | + grib2 enabled |<br> | + geotiff enabled |<br> | - GUI disabled |<br> | |<br>
| Build Summary |<br> | |<br> | + grads enabled |<br> | + gradsdap enabled |<br> | (both grid & stn interfaces) |<br> | |<br>
| + Dynamic linking enabled |<br> | |<br> +----------------------------------+<br></div><br>Then to build gradsdap you need to help it along:<br><br>% cd src/<br>% make gradsdap LIBS="-lnetcdf -lnc-dap -ldapclient -ldap -lhdf5_hl -lhdf5 -lcurl -lxml2 -lz -lpthread"<br>
% make utils<br><br>This will create "gradsdap" linked against NetCDF-4 so it will be have support for all formats, including grib2, opendap, netcdf-3/4, hdf-4, just like the most recent opengrads builds:<br><br>
ga-> q config<br><br>Config: v2.0.a6 little-endian readline printim grib2 netcdf hdf4-sds opendap-grids,stn geotiff<br>Issue 'q config' command for more information.<br>GX Package Initialization: Size = 11 8.5 <br>
Running in Batch mode<br>ga-> q config<br><br><div style="margin-left: 40px;"><span style="font-family: courier new,monospace;">Config: v2.0.a6 little-endian readline printim grib2 netcdf hdf4-sds opendap-grids,stn geotiff</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Grid Analysis and Display System (GrADS) Version 2.0.a6</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Copyright (c) 1988-2008 by Brian Doty and the</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">Institute for Global Environment and Society (IGES) </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">This program is distributed WITHOUT ANY WARRANTY </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">See file COPYRIGHT for more information. </span><br style="font-family: courier new,monospace;"><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">Built Tue Jun 2 15:19:02 EDT 2009 for x86_64-unknown-linux-gnu</span><br style="font-family: courier new,monospace;">
<br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">This version of GrADS has been configured with the following options:</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> o Built on a LITTLE ENDIAN machine</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> o Command line editing ENABLED </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <a href="http://tiswww.case.edu/php/chet/readline/rltop.html">http://tiswww.case.edu/php/chet/readline/rltop.html</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> o printim command for image output ENABLED </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="http://www.zlib.net">http://www.zlib.net</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <a href="http://www.libpng.org/pub/png/libpng.html">http://www.libpng.org/pub/png/libpng.html</a> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="http://www.libgd.org/Main_Page">http://www.libgd.org/Main_Page</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> o GRIB2 interface ENABLED </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="http://www.ijg.org">http://www.ijg.org</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <a href="http://www.ece.uvic.ca/~mdadams/jasper">http://www.ece.uvic.ca/~mdadams/jasper</a> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2">http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> g2clib-1.0.5 </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> o NetCDF interface ENABLED </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <a href="http://www.opendap.org">http://www.opendap.org</a> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libnc-dap 4.0.1-beta3-snapshot2009021712 of Feb 21 2009 15:24:12 $ </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> o NCSA HDF interface ENABLED </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="http://hdf.ncsa.uiuc.edu">http://hdf.ncsa.uiuc.edu</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> HDF4.2r3 </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> o Athena Widget GUI DISABLED</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> o OPeNDAP gridded data interface ENABLED</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="http://www.opendap.org">http://www.opendap.org</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> libdap 3.7.10 </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> o OPeNDAP station data interface ENABLED</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <a href="http://iges.org/grads/gadoc/supplibs.html">http://iges.org/grads/gadoc/supplibs.html</a> </span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> libgadap 2.0.oga.1 </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> o GeoTIFF and KML output ENABLED</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"> <a href="http://www.libtiff.org">http://www.libtiff.org</a> </span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;"> <a href="http://geotiff.osgeo.org">http://geotiff.osgeo.org</a> </span><br></div><br>Don't bother building "grads" because NetCDF-4 has OPeNDAP integrated in (you would get the same executable after fixing the Makefile); just make a symlink, grads -> gradsdap. Keep in mind that this build will *not* have the opengrads extensions enabled. It will be about a week untill I have a chance to patch it.<br>
<br>Caveat: it has been reported that this opendap library has a problem reading some non-gds opendap datasets when the coordinate variables (like time) are int (only on 64 bit Linux AFAIK).<br><br> Arlindo<br></div>
</div><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>