<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div id="yui_3_16_0_1_1442897203382_6092" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"> Dear Sir/Madam:</div><div id="yui_3_16_0_1_1442897203382_6091" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"><br></div><div id="yui_3_16_0_1_1442897203382_6084" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">I have air T, pressure, and relative humidity(RH). I recalculate RH after using mixhum_ptrh and relhum. I found quite large differences in RH.</div><div id="yui_3_16_0_1_1442897203382_6110" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br></div><div id="yui_3_16_0_1_1442897203382_6118" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">The codes are:</div><div id="yui_3_16_0_1_1442897203382_6151" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">;*******************************************<br id="yui_3_16_0_1_1442897203382_6139">begin<br id="yui_3_16_0_1_1442897203382_6140">;*******************************************<br id="yui_3_16_0_1_1442897203382_6141">p = (/25132.156,27032.215,33876.102,39419.887/) ;Pa<br id="yui_3_16_0_1_1442897203382_6142">t = (/229.690,228.809,225.332,231.278/) ;K<br id="yui_3_16_0_1_1442897203382_6143">rh = (/2.008,1.884,62.117,103.124/) ;%<br id="yui_3_16_0_1_1442897203382_6144">q = mixhum_ptrh (p/100., t, rh, 1)<br id="yui_3_16_0_1_1442897203382_6146">xxx = relhum (t,q,p)<br id="yui_3_16_0_1_1442897203382_6147">print(xxx)<br id="yui_3_16_0_1_1442897203382_6148">print(rh)<br id="yui_3_16_0_1_1442897203382_6149">end</div><div id="yui_3_16_0_1_1442897203382_6264" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br></div><div id="yui_3_16_0_1_1442897203382_6310" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">The results are:</div><div id="yui_3_16_0_1_1442897203382_6185" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"> NCAR Command Language Version 6.0.0<br id="yui_3_16_0_1_1442897203382_6186"> The use of this software is governed by a License Agreement.<br id="yui_3_16_0_1_1442897203382_6187"> See <a id="yui_3_16_0_1_1442897203382_6188" href="http://www.ncl.ucar.edu/">http://www.ncl.ucar.edu/</a> for more details.</div><div id="yui_3_16_0_1_1442897203382_6184" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br id="yui_3_16_0_1_1442897203382_6189">Variable: xxx<br id="yui_3_16_0_1_1442897203382_6190">Type: float<br id="yui_3_16_0_1_1442897203382_6191">Total Size: 16 bytes<br id="yui_3_16_0_1_1442897203382_6192"> 4 values<br id="yui_3_16_0_1_1442897203382_6193">Number of Dimensions: 1<br id="yui_3_16_0_1_1442897203382_6194">Dimensions and sizes: [4]<br id="yui_3_16_0_1_1442897203382_6195">Coordinates:<br id="yui_3_16_0_1_1442897203382_6196">(0) 2.960429<br id="yui_3_16_0_1_1442897203382_6197">(1) 2.796223<br id="yui_3_16_0_1_1442897203382_6198">(2) 94.578<br id="yui_3_16_0_1_1442897203382_6199">(3) 150.3954</div><div id="yui_3_16_0_1_1442897203382_6200" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br id="yui_3_16_0_1_1442897203382_6201">Variable: rh<br id="yui_3_16_0_1_1442897203382_6202">Type: float<br id="yui_3_16_0_1_1442897203382_6203">Total Size: 16 bytes<br id="yui_3_16_0_1_1442897203382_6204"> 4 values<br id="yui_3_16_0_1_1442897203382_6205">Number of Dimensions: 1<br id="yui_3_16_0_1_1442897203382_6206">Dimensions and sizes: [4]<br id="yui_3_16_0_1_1442897203382_6207">Coordinates:<br id="yui_3_16_0_1_1442897203382_6208">(0) 2.008<br id="yui_3_16_0_1_1442897203382_6209">(1) 1.884<br id="yui_3_16_0_1_1442897203382_6210">(2) 62.117<br id="yui_3_16_0_1_1442897203382_6211">(3) 103.124<br id="yui_3_16_0_1_1442897203382_6212"><br id="yui_3_16_0_1_1442897203382_6150"></div><div id="yui_3_16_0_1_1442897203382_6109" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">You can see the big differences in (2) and (3). Can you please tell me what is wrong? Thanks!</div><div id="yui_3_16_0_1_1442897203382_6248" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr"><br></div><div id="yui_3_16_0_1_1442897203382_6247" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">Regards</div><div id="yui_3_16_0_1_1442897203382_6246" style="color: rgb(0, 0, 0); font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" dir="ltr">Ed</div></div></body></html>