<div dir="ltr"><br><div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><br><div><div 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>  Dear Sir/Madam:</div><div><br></div><div dir="ltr"><br></div><div dir="ltr">I have a few data of air T, P, and RH. I used mixhum_ptrh and relhum to recalculate RH again. Both the RH should be the same, however, large differences were found.</div><div dir="ltr"><br></div><div dir="ltr">Can you please tell me what is the reason? Thanks!</div><div dir="ltr"><br></div><div dir="ltr">Regards</div><div dir="ltr">ED</div><div dir="ltr"><br></div><div dir="ltr">The codes are:</div><div dir="ltr"><br></div><div dir="ltr">;*******************************************<br>begin<br>;*******************************************<br>p = (/25132.156,27032.215,33876.102,39419.887/)  ;Pa<br>t = (/229.690,228.809,225.332,231.278/)         ;K<br>rh = (/2.008,1.884,62.117,103.124/)              ;%</div><div dir="ltr">q = mixhum_ptrh (todouble(p/100.), todouble(t), todouble(rh), 1)<br>rh1 = relhum (todouble(t),todouble(q),todouble(p))<br>print(rh1)<br>print(rh)<br>end</div><div dir="ltr"><br></div><div dir="ltr">After run the codes:</div><div dir="ltr"><br></div><div dir="ltr"> Copyright (C) 1995-2011 - All Rights Reserved<br> University Corporation for Atmospheric Research<br> NCAR Command Language Version 6.0.0<br> The use of this software is governed by a License Agreement.<br> See <a href="http://www.ncl.ucar.edu/" target="_blank">http://www.ncl.ucar.edu/</a> for more details.</div><div dir="ltr"><br>Variable: rh1<br>Type: double<br>Total Size: 32 bytes<br>            4 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [4]<br>Coordinates:<br>(0)     2.960429399791643<br>(1)     2.796223142965527<br>(2)     94.57799164378163<br>(3)     150.3954363205561</div><div dir="ltr"><br>Variable: rh<br>Type: float<br>Total Size: 16 bytes<br>            4 values<br>Number of Dimensions: 1<br>Dimensions and sizes:   [4]<br>Coordinates:<br>(0)     2.008<br>(1)     1.884<br>(2)     62.117<br>(3)     103.124<br></div><div dir="ltr"><br></div><div dir="ltr"><br></div></div></div></div><br></div>
<br></div><br></div>