Jennifer,<div><br></div><div> I am having some problems with undef handling in 2.0.a6. Using COLA's Mac OS X build (intel):</div><div><br></div><div>./gradsdap</div><div>...</div><div>ga-> sdfopen <a href="http://monsoondata.org:9090/dods/model">http://monsoondata.org:9090/dods/model</a></div>
<div>ga-> d ua</div><div>Contouring: -9e+08 to 0 interval 1e+08<br></div><div><br></div><div>It does not seem to be handling UNDEFs properly. Which grads version is behind the monsoondata GDS?</div><div><br></div><div>
Arlindo</div><div><br></div><div><br><div class="gmail_quote">On Tue, Jun 2, 2009 at 11:34 AM, Jennifer Adams <span dir="ltr"><<a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div style="word-wrap:break-word">Dear All,<div><div>I have posted a new version of GrADS: 2.0.a6. The GrADS downloads web page (<a href="http://iges.org/grads/downloads.html" target="_blank"><font color="#001fdf" style="color:rgb(0, 31, 223)"><u>http://iges.org/grads/downloads.html</u></font></a>) has been updated with links to the source code and a few pre-compiled binaries. Version 2.0.a6 is mostly a bug fix release, but it does have a couple of nice new features: </div>
<div><br></div><div><b>1. The user can control the undef value in all GrADS output</b></div><div>This feature controls the undefined values printed to screen with the 'gxout stat' and the 'gxout print' output, as well as the undefined values in fwrite, sdfwrite, and geotiff files. The output undef value is controlled with the 'set undef' command. <font color="#B51612"><font size="3"><span style="font-size:13px"><b><i><font size="4"><span style="font-size:14px">This fe</span></font></i><font size="4"><span style="font-size:14px"><i>ature changes the default behavior of GrADS</i></span></font></b></span></font></font>, but <font color="#FF1F19"><span style="color:rgb(0, 0, 0)">it is in keeping with the new undef handling in GrADS 2.0. The default output undef value is -9.99e8. This release works fine with GDS 2.0. I have written a documentation page. Please READ THE DOCUMENTATION! </span></font></div>
<div> <a href="http://grads.iges.org/grads/gadoc/gradcomdsetundef.html" target="_blank">http://grads.iges.org/grads/gadoc/gradcomdsetundef.html</a></div><div><font size="3"><span style="font-size:12px"><br></span></font></div>
<div><div><b>2. The maximum number of user-defined colors has been increased from 99 to 255</b></div><div>To help you get started using 255 colors, I have written two scripts:</div></div><div> <a href="ftp://grads.iges.org/grads/scripts/rgb255.gs" target="_blank">ftp://grads.iges.org/grads/scripts/rgb255.gs</a> (defines a lot of colors and draws a demo plot)</div>
<div> <a href="ftp://grads.iges.org/grads/scripts/cbarm.gs" target="_blank">ftp://grads.iges.org/grads/scripts/cbarm.gs</a> (draws a suitable color bar)</div><div>Please feel free to copy and modify these scripts to suit your own needs. </div>
<div><br></div><div>Here is the complete list of changes in 2.0.a6:<span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"></span></div><div><font face="-webkit-monospace" size="3"><span style="font-size:12px;white-space:pre-wrap"><br>
</span></font></div><div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> Features:</span></div><div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> * Maximum number of user-defined colors increased from 99 to 255. </span></div>
<div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> * New commands "set undef" and "query undef" allow the user to </span></div><div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> control the undefined data value for all forms of GrADS output. </span></div>
<div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> This affects all the undefined values printed to screen in the </span></div><div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> 'gxout stat' and 'gxout print' output, as well as the undefined </span></div>
<div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> values in fwrite, sdfwrite, and geotiff files. </span></div><div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> The default output undef value is -9.99e8.</span></div>
<div><span style="font-family:-webkit-monospace;font-size:12px;white-space:pre-wrap"> N.B. THIS FEATURE CHANGES THE DEFAULT BEHAVIOR OF GrADS! </span></div><div><span style="font-family:Times;font-size:16px"><pre style="word-wrap:break-word;white-space:pre-wrap">
<font size="3"><span style="font-size:12px"> Bugs:
* Fixed geotiff code to write out data in correct format
* Fixed the background image option to printim
* Fixed gancgrid I/O for variables with dimensions in a funky order (i.e. not ETZYX)
* Fixed gancgrid response if request is outside of file's bounds
* Fixed 'close' command to properly reset defaults
* Fixed gribmap printing debugging and error messages in verbose mode
* Replaced library function call SDiscoordvar in gasdf.c
Misc:
* more informative error messages when request is beyond file's limits
* added chsub option to xdfopen-style descriptors
* added -n flag to gr2stn for nearest neighbor option
* changed hard-coded undefs from -9.99e33 to -9.99e8
* changed hard-coded XYBMAX from 500 to 5000 in gxshad.c
* configure and src code changes to get rid of XLIBEMU
* fixes to GUI configuration
* bug fix in gaio.c to change vars lskip and lgrib to type g2int
* changed var type to off_t and fixed? optimization issues for x86_64 builds
* changed Pixel to gaPixel
* removed pcx11e.* from src directory
* changed #include syntax for gabufr.h in grads.h
</span></font></pre><div><font face="-webkit-monospace"><span style="white-space:pre-wrap"><br></span></font></div></span></div><div><br></div><div> <span style="border-collapse:separate;border-spacing:0px 0px;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><div style="word-wrap:break-word">
<span style="border-collapse:separate;border-spacing:0px 0px;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px 0px;color:rgb(0, 0, 0);font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:auto;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><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" target="_blank">jma@cola.iges.org</a></div><div><br>
</div><br></span></span></div></span> </div><br></div></div></blockquote></div><br><br clear="all"><br>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>
</div>