<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif">I am trying to calculate total precipitable water from 6 hourly data containing specific humidity (kg/kg) at different pressure levels (hPa). I am able to write the output successfully but I think the  values are overestimated 10 times of the usual value.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I checked my code but could not figure out the mistake.</div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">I will appreciate if people here can help me finding the error. The NCL version for me is 6.4. The code written is following: </div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif"><div class="gmail_default">begin</div><div class="gmail_default">f=addfile(&quot;<a href="http://ps_qas.nc" target="_blank">ps_qas.nc</a>&quot;,&quot;r&quot;)</div><div class="gmail_default">sphum=f-&gt;qas</div><div class="gmail_default">lat=f-&gt;lat</div><div class="gmail_default">lon=f-&gt;lon</div><div class="gmail_default">time=f-&gt;time</div><div class="gmail_default">dp=f-&gt;plev*100                                                            ; conversion into Pa</div><div class="gmail_default">print(dp)</div><div class="gmail_default">ps=f-&gt;ps(time|:,lat|:,lon|:)</div><div class="gmail_default">re_sphum=sphum(time|:,lat|:,<wbr>lon|:,plev|:)</div><div class="gmail_default">pw = prcwater_dp (re_sphum, dp)</div><div class="gmail_default">pw@long_name = &quot;total column precipitable water&quot;</div><div class="gmail_default">pw@units     = &quot;kg/m2&quot;</div><div class="gmail_default">printVarSummary(pw)</div><div class="gmail_default">pw@coordinates = &quot;lat lon&quot;</div><div class="gmail_default">copy_VarCoords(ps,pw)</div><div class="gmail_default">out=addfile(&quot;<a href="http://pw.nc" target="_blank">pw.nc</a>&quot;,&quot;w&quot;)</div><div class="gmail_default">out-&gt;pw=pw</div><div class="gmail_default">out-&gt;lat=lat</div><div class="gmail_default">out-&gt;lon= lon</div><div class="gmail_default">out-&gt;time= time</div><div class="gmail_default">end</div><div><br></div></div><div class="gmail_default" style="font-family:georgia,serif"><br></div><div class="gmail_default" style="font-family:georgia,serif">Thanks in anticipation</div><div class="gmail_default" style="font-family:georgia,serif">Dhirendra</div><div><br></div>-- <br><div class="m_7402600346836507780gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr">==============================<wbr>==========</div><div dir="ltr">Dhirendra Kumar<div>PhD Student<br></div><div>School of Environmental Sciences, JNU<br></div><div>New Delhi (India)</div><div>Contact: <font face="comic sans ms, sans-serif">+91 9910778043</font></div><div>Alternate email: <a href="mailto:dhirendra.cub@outlook.com" target="_blank">dhirendra.cub@outlook.com</a></div><div>==============================<wbr>===========</div></div></div></div></div></div></div></div></div></div></div>
</div>