<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Victor --&nbsp;<div>Every file that is opened by GrADS must have undef value assigned to it. This is the 'input undef value' and GrADS uses it for a test at the moment the I/O is done for that file -- if the data value is sufficiently close to the input undef value, then it is flagged as 'missing'. Missing data are ignored for all internal operations. When it comes time to export a data file, anything that is flagged as missing is assigned the 'output undef value' which is controlled with the 'set undef' command. The input and output undef values need not be the same; the output undef value is entirely unaffected by the input undef value, and its default value is -9.99e8.&nbsp;</div><div><br></div><div>When you open a file with 'sdfopen', GrADS will look for an attribute named &nbsp;"missing_value" or "_FillValue" and if it succeeds, it will use that attribute's value as the input undef value. If it fails to find any attributes that provide an undef value, it will use a default which is -9.99e33. If a netcdf file does not have a "missing_value" or "_FillValue" attribute, it probably doesn't have any missing data, and so the value GrADS picks is irrelevant. The output undef value is still -9.99e8 in this case. It may seem odd to have different values for default input and output undef values, but it helps to clarify to the user that these two values are wholly unconnected.</div><div><br></div><div>--Jennifer</div><div>&nbsp;</div><div><br></div><div><br><div><div>On May 8, 2014, at 2:36 PM, Victor Salgado wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div>I've been using grads for opening netcdf files and I was a bit confused with its behavior in dealing with the undefined value.<br><br>If I understood correctly back in 2009 with version 2.0.a6 the default output undefined value was changed from -9.99e33 to -9.99e8. But this doesn't seem to have affected sdfopen, the default undefined value there is still -9.99e33.<br>
<br>Is this intentional? It kind of seems like an inconsistency to me.<br><br><br></div><div>Thanks,<br></div><div><br></div>--Victor Salgado<br></div>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 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; -webkit-text-decorations-in-effect: none; text-indent: 0px; -webkit-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams<br>Center for Ocean-Land-Atmosphere Studies (COLA)<br>111 Research Hall, Mail Stop 2B3<br>George Mason University<br>4400 University Drive<br>Fairfax, VA 22030&nbsp;<br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>