<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Dhirendra,</p>
<p>Since I don't have access to the netcdf file that you're using,
perhaps I'm mistaken, but aren't the plev the pressure levels? I
think the dp that's used in the function prcwater_dp are the
differences between the levels (the layer thicknesses), if you're
trying to do an integration to get the precipitable water.</p>
<p>I think if you used the levels instead of their thicknesses that
would definitely give you a value that was too large.</p>
<p>Hope that helps.</p>
<p>Jim<br>
</p>
<br>
<div class="moz-cite-prefix">On 6/7/2017 12:37 AM, Dhirendra Kumar
wrote:<br>
</div>
<blockquote
cite="mid:CANSz=01Vrt2Y_y4+3-dA=_q7UX9ZS_aJYLiENq_MLHB1eybq4w@mail.gmail.com"
type="cite">
<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("<a
moz-do-not-send="true" href="http://ps_qas.nc"
target="_blank">ps_qas.nc</a>","r")</div>
<div class="gmail_default">sphum=f->qas</div>
<div class="gmail_default">lat=f->lat</div>
<div class="gmail_default">lon=f->lon</div>
<div class="gmail_default">time=f->time</div>
<div class="gmail_default">dp=f->plev*100
; conversion into
Pa</div>
<div class="gmail_default">print(dp)</div>
<div class="gmail_default">ps=f->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 = "total column
precipitable water"</div>
<div class="gmail_default">pw@units = "kg/m2"</div>
<div class="gmail_default">printVarSummary(pw)</div>
<div class="gmail_default">pw@coordinates = "lat lon"</div>
<div class="gmail_default">copy_VarCoords(ps,pw)</div>
<div class="gmail_default">out=addfile("<a
moz-do-not-send="true" href="http://pw.nc" target="_blank">pw.nc</a>","w")</div>
<div class="gmail_default">out->pw=pw</div>
<div class="gmail_default">out->lat=lat</div>
<div class="gmail_default">out->lon= lon</div>
<div class="gmail_default">out->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
moz-do-not-send="true"
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>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
ncl-talk mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>
List instructions, subscriber options, unsubscribe:
<a class="moz-txt-link-freetext" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta charset="UTF-8">
<title>Untitled Document</title>
<a style="text-decoration:none; color:#000000; font-size:11px;
font-family:Verdana;" target="_blank"
href="http://www.weatherextreme.com"><img
src="cid:part4.04111467.48909597@weatherextreme.com"></a><br>
<br>
<strong style="text-decoration:none; color:#000000;
font-size:11px; font-family:Verdana;">
James D. Means, Ph.D.</strong><br>
<span style="text-decoration:none; font-size:11px;
font-family:Verdana;">Atmospheric and Climate Scientist</span><br>
<span style="text-decoration:none; color:#000000;"><a
style="color:#000000; font-size:11px; font-family:Verdana;"
href="mailto:jim@weatherextreme.com">jim@weatherextreme.com</a>|<a
style="color:#000000; font-size:11px; font-family:Verdana;"
target"_blank"=""
href="http://www.weatherextreme.com/vcards/James%20MEANS.vcf">
vcard</a></span><br>
<span style="text-decoration:none; font-size:11px;
font-family:Verdana;">930 Tahoe Blvd., Suite 802-560<span
style="text-decoration:none;"><br>
<span style="text-decoration:none; font-size:11px;
font-family:Verdana;"> Incline Village, Nevada 89451</span><br>
<span style="text-decoration:none; font-size:11px;
font-family:Verdana; color:#000000;"> <a target="_blank"
style="color:#000000;"
href="http://www.weatherextreme.com">www.weatherextreme.com</a></span><br>
<br>
<a target="_blank" href="https://www.facebook.com/wxextreme"><img
src="cid:part9.2A20A7AF.E1497FAB@weatherextreme.com"
height="20px" width="20px"></a>
<a target="_blank" href="https://twitter.com/wxextreme"><img
src="cid:part11.86741357.385EDC07@weatherextreme.com"
height="20px" width="20px"></a>
<a target="_blank"
href="http://www.linkedin.com/company/weatherextreme"><img
src="cid:part13.BAA8FFD3.2885CEB2@weatherextreme.com"
height="20px" width="20px"></a>
</span></span></div>
</body>
</html>