<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_17761"><br></div><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" id="yui_3_16_0_1_1442897203382_17728" style="display: block;"><div id="yui_3_16_0_1_1442897203382_17727" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"><div id="yui_3_16_0_1_1442897203382_17726" style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <br><br> <div class="y_msg_container" id="yui_3_16_0_1_1442897203382_17760"><div id="yiv0104684862"><div id="yui_3_16_0_1_1442897203382_17759"><div id="yui_3_16_0_1_1442897203382_17758" 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);"><div id="yiv0104684862yui_3_16_0_1_1442897203382_15412"> Dear Sir/Madam:</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15583"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15582" dir="ltr">I sent this same question again because I am not sure if I have sent to ncl-talk successfully.</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15581" dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15425" dir="ltr">I have a few data of air T, P, and RH. I used mixhum_ptrh and relhum to recalculate RH. Both the RH should be the same, however, large differences were found.</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15446" dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15551" dir="ltr">Can you please tell me what is the reason? Thanks!</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15552" dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15576" dir="ltr">Regards</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15575" dir="ltr">ED</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15635" dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15636" dir="ltr">The codes are:</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15445" dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15444" dir="ltr">;*******************************************<br id="yiv0104684862yui_3_16_0_1_1442897203382_15456">begin<br id="yiv0104684862yui_3_16_0_1_1442897203382_15457">;*******************************************<br id="yiv0104684862yui_3_16_0_1_1442897203382_15458">p = (/25132.156,27032.215,33876.102,39419.887/) ;Pa<br id="yiv0104684862yui_3_16_0_1_1442897203382_15459">t = (/229.690,228.809,225.332,231.278/) ;K<br id="yiv0104684862yui_3_16_0_1_1442897203382_15460">rh = (/2.008,1.884,62.117,103.124/) ;%</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15475" dir="ltr">q = mixhum_ptrh (todouble(p/100.), todouble(t), todouble(rh), 1)<br id="yiv0104684862yui_3_16_0_1_1442897203382_15463">rh1 = relhum (todouble(t),todouble(q),todouble(p))<br id="yiv0104684862yui_3_16_0_1_1442897203382_15464">print(rh1)<br id="yiv0104684862yui_3_16_0_1_1442897203382_15465">print(rh)<br id="yiv0104684862yui_3_16_0_1_1442897203382_15466">end</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15562" dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15563" dir="ltr">After run the codes:</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15650" dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15494" dir="ltr"> Copyright (C) 1995-2011 - All Rights Reserved<br id="yiv0104684862yui_3_16_0_1_1442897203382_15495"> University Corporation for Atmospheric Research<br id="yiv0104684862yui_3_16_0_1_1442897203382_15496"> NCAR Command Language Version 6.0.0<br id="yiv0104684862yui_3_16_0_1_1442897203382_15497"> The use of this software is governed by a License Agreement.<br id="yiv0104684862yui_3_16_0_1_1442897203382_15498"> See <a id="yiv0104684862yui_3_16_0_1_1442897203382_15499" href="http://www.ncl.ucar.edu/" target="_blank" rel="nofollow">http://www.ncl.ucar.edu/</a> for more details.</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15493" dir="ltr"><br id="yiv0104684862yui_3_16_0_1_1442897203382_15500">Variable: xxx<br id="yiv0104684862yui_3_16_0_1_1442897203382_15501">Type: double<br id="yiv0104684862yui_3_16_0_1_1442897203382_15502">Total Size: 32 bytes<br id="yiv0104684862yui_3_16_0_1_1442897203382_15503"> 4 values<br id="yiv0104684862yui_3_16_0_1_1442897203382_15504">Number of Dimensions: 1<br id="yiv0104684862yui_3_16_0_1_1442897203382_15505">Dimensions and sizes: [4]<br id="yiv0104684862yui_3_16_0_1_1442897203382_15506">Coordinates:<br id="yiv0104684862yui_3_16_0_1_1442897203382_15507">(0) 2.960429399791643<br id="yiv0104684862yui_3_16_0_1_1442897203382_15508">(1) 2.796223142965527<br id="yiv0104684862yui_3_16_0_1_1442897203382_15509">(2) 94.57799164378163<br id="yiv0104684862yui_3_16_0_1_1442897203382_15510">(3) 150.3954363205561</div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15524" dir="ltr"><br id="yiv0104684862yui_3_16_0_1_1442897203382_15512">Variable: rh<br id="yiv0104684862yui_3_16_0_1_1442897203382_15513">Type: float<br id="yiv0104684862yui_3_16_0_1_1442897203382_15514">Total Size: 16 bytes<br id="yiv0104684862yui_3_16_0_1_1442897203382_15515"> 4 values<br id="yiv0104684862yui_3_16_0_1_1442897203382_15516">Number of Dimensions: 1<br id="yiv0104684862yui_3_16_0_1_1442897203382_15517">Dimensions and sizes: [4]<br id="yiv0104684862yui_3_16_0_1_1442897203382_15518">Coordinates:<br id="yiv0104684862yui_3_16_0_1_1442897203382_15519">(0) 2.008<br id="yiv0104684862yui_3_16_0_1_1442897203382_15520">(1) 1.884<br id="yiv0104684862yui_3_16_0_1_1442897203382_15521">(2) 62.117<br id="yiv0104684862yui_3_16_0_1_1442897203382_15522">(3) 103.124<br id="yiv0104684862yui_3_16_0_1_1442897203382_15523"></div><div dir="ltr"><br></div><div id="yiv0104684862yui_3_16_0_1_1442897203382_15595" dir="ltr"><br id="yiv0104684862yui_3_16_0_1_1442897203382_15467"></div></div></div></div><br><br></div> </div> </div> </div> </div></body></html>