<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">That bug reared its ugly head shortly after the release of 2.0.2, and I decided that a one-line fix was not enough to warrant a new version and re-release. Here is the patch (from the diff output between gasdf.c in versions 2.0.2 and 2.1.a1)<div><div><br></div><div>1897a1897</div><div>> if (!strncasecmp(attr->value, "hPa", 3)) match=1;</div></div><div><br></div><div>--Jennifer</div><div><br><div><div>On Jun 18, 2014, at 4:23 PM, Arlindo da Silva wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Jennifer,<div><br></div><div> After a month long warning I changed today the defult grads version at our office from 2.0.1.oga.1 to 2.0.2.oga.1 and the transition didn't go well. Our pressure level files have the following level coordinate variable:</div>
<div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(2, 32, 179); "><span class="" style="white-space:pre">        </span>double lev(lev) ;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(2, 32, 179); "><span class="" style="white-space:pre">                </span>lev:long_name = "vertical level" ;</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(2, 32, 179); "><span class="" style="white-space:pre">                </span>lev:units = "hPa" ;</div><div><br></div><div>However, when I open this file in grads 2.0.2 I get this message:</div>
<div><br></div><div>ga-> sdfopen <span style="color:rgb(83,48,225);font-family:Monaco;font-size:14px">GEOS.fp.fcst.inst3_3d_asm_Np.20140612_12+20140616_0900.V01.nc4</span></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(83, 48, 225); ">
Scanning self-describing file: GEOS.fp.fcst.inst3_3d_asm_Np.20140612_12+20140616_0900.V01.nc4</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(83, 48, 225); ">SDF file GEOS.fp.fcst.inst3_3d_asm_Np.20140612_12+20140616_0900.V01.nc4 is open as file 1</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(83, 48, 225); ">LON set to 0 360 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(83, 48, 225); ">LAT set to -90 90 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(83, 48, 225); ">LEV set to 10 10 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(83, 48, 225); ">Time values set: 2014:6:16:9 2014:6:16:9 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(83, 48, 225); ">E set to 1 1 </div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-size: 14px; font-family: Monaco; color: rgb(213, 59, 211); ">Notice: Z coordinate pressure values have been converted from Pa to mb</div></div><div><br></div><div>And nothing works because grads mistakenly thinks that "hPa" is "Pa" and messes up the vertical coordinate system. This problen makes 2.0.2 unusable for us.</div>
<div><br></div><div>I verified that this problem has been fixed in 2.1.a2. While I could make 2.1.a2 the default, it would be a good idea to have the latest stable release as a fallback. Do you happen to have a (source code) patch for this unit conversion problem in 2.0.2?</div>
<div><br></div><div> Thanks,</div><div><br></div><div> Arlindo</div><div><br></div>-- <br><font face="'comic sans ms', sans-serif" size="6" color="#006600"><span style="font-family:Helvetica;font-size:12px"></span><span></span><span></span>Arlindo da Silva</font><br>
<font size="4"><i><a href="mailto:dasilva@alum.mit.edu" target="_blank">dasilva@alum.mit.edu</a></i></font>
</div></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 apple-content-edited="true">
<span class="Apple-style-span" style="font-size: 12px; "><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 <br><br></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></div></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>