<html><head></head><body><div class="yahoo-style-wrap" style="font-family:bookman old style, new york, times, serif;font-size:16px;"><div dir="ltr" data-setdir="false">Dears,<br>I hope you're doing great.</div><div dir="ltr" data-setdir="false">I want to calculate "specific humidity" via "<span>mixhum_ptrh</span>". I have pressure, temperature and relative humidity arrays, but their dimensions are not the same! Actually I have temperature and relative humidity on grid points at different pressure levels. So their dimensions are like below:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span><span style="color: rgb(0, 0, 0); font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: small;">Dimensions and sizes:   [lv_ISBL0 | 15] x [lat_0 | 721] x [lon_0 | 1440]</span></span></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">However, the pressure array is the first dimension of them (<span><span style="color: rgb(0, 0, 0); font-family: "courier new", courier, monaco, monospace, sans-serif; font-size: small;">lv_ISBL0</span></span>) and is like below:</div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false"><span><font face="courier new, courier, monaco, monospace, sans-serif" size="2" style="background-color: inherit;">Dimensions and sizes:   [15]</font></span><br></div><div dir="ltr" data-setdir="false"><br></div><div dir="ltr" data-setdir="false">Actually, I want to calculate "specific humidity"<span><span style="color: rgb(0, 0, 0); font-family: "bookman old style", "new york", times, serif; font-size: 16px;"> for each grid point at each pressure level. May I ask any help to use "</span></span><span style="font-family: courier; font-size: 13.3333px; white-space: pre-wrap;">mixhum_ptrh</span><span><span style="color: rgb(0, 0, 0); font-family: "bookman old style", "new york", times, serif; font-size: 16px;">" without do loops over the grid points?</span></span></div><div dir="ltr" data-setdir="false"><span><span style="color: rgb(0, 0, 0); font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><br></span></span></div><div dir="ltr" data-setdir="false"><span><span style="color: rgb(0, 0, 0); font-family: "bookman old style", "new york", times, serif; font-size: 16px;">I hope I could explain my problem clearly and I hope to hear from you.</span></span></div><div dir="ltr" data-setdir="false"><span><span style="color: rgb(0, 0, 0); font-family: "bookman old style", "new york", times, serif; font-size: 16px;"><br></span></span></div><div dir="ltr" data-setdir="false"><span><span style="color: rgb(0, 0, 0); font-family: "bookman old style", "new york", times, serif;"><i style=""><font size="2">Sincerely</font></i></span></span></div><div dir="ltr" data-setdir="false"><span><span style="color: rgb(0, 0, 0); font-family: "bookman old style", "new york", times, serif;"><i style=""><font size="2">Ehsan</font></i></span></span></div></div></body></html>