<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We cannot debug this problem with the information you've given us, because I don't know exactly how you are calling the routine.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Please use our GitHub issues page to submit a bug report and provide a small, clean program that illustrates the error:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="https://github.com/NCAR/ncl/issues">https://github.com/NCAR/ncl/issues</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">Thanks,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">On Thu, Jan 10, 2019 at 9:42 PM nafiseh pegahfar <<a href="mailto:pegahfar@inio.ac.ir">pegahfar@inio.ac.ir</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>
<div style="font-size:13.3333px;font-family:"Times New Roman";color:rgb(0,0,0);font-weight:400;font-style:normal;background:none 0% 0%/auto repeat scroll padding-box border-box rgba(0,0,0,0)">
Hello,</div>
<div style="font-size:13.3333px;font-family:"Times New Roman";color:rgb(0,0,0);font-weight:400;font-style:normal;background:none 0% 0%/auto repeat scroll padding-box border-box rgba(0,0,0,0)">
Thank you for your kindly attention.</div>
<div style="font-size:13.3333px;font-family:"Times New Roman";color:rgb(0,0,0);font-weight:400;font-style:normal;background:none 0% 0%/auto repeat scroll padding-box border-box rgba(0,0,0,0)">
I checked and all units were correct as: </div>
<div style="font-size:13.3333px;font-family:"Times New Roman";color:rgb(0,0,0);font-weight:400;font-style:normal;background:none 0% 0%/auto repeat scroll padding-box border-box rgba(0,0,0,0)">
<pre style="background-color:rgb(255,255,255);white-space:pre-wrap">level=925,00
TK=300.6299140816899
rv=0.008510922866573187
GPH=723.139880629395
z=0.7325572010323265
p=100078.4522848937</pre>
<div>
while the NaN values still exist. The NaN values are occurred at places
with rv<0.01.</div>
<div>
</div>
</div>
<div style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal;background:none 0% 0%/auto repeat scroll padding-box border-box rgba(0,0,0,0)">
Best Regards<br>
=================================<br>
Nafiseh Pegahfar<br>
Assistant Professor<br>
Iranian National Institute for Oceanography and Atmospheric Science<br>
(<a href="http://www.inio.ac.ir" target="_blank">http://www.inio.ac.ir</a>)<br>
Phone: (0098)21- 66944873-5 Ext. 224<br>
Fax: (0098)21- 66944869<br>
Email: (<a href="mailto:pegahfar@inio.ac.ir" target="_blank">pegahfar@inio.ac.ir</a>)<br>
(<a href="mailto:pegahfar@ut.ac.ir" target="_blank">pegahfar@ut.ac.ir</a>)<br>
=================================<br>
<br>
<blockquote style="padding-right:0px;padding-left:5px;margin-left:5px;border-left:2px solid rgb(0,0,0);margin-right:0px">
-----Original Message-----<br>
From: Mary Haley <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>><br>
To: nafiseh pegahfar <<a href="mailto:pegahfar@inio.ac.ir" target="_blank">pegahfar@inio.ac.ir</a>><br>
Cc: "<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>
Date: Thu, 10 Jan 2019 09:36:22 -0700<br>
Subject: Re: [ncl-talk] nan value for cape function<br>
<br>
<div dir="ltr">
<div dir="ltr">
<div class="gmail_default" style="font-size:small">
Hello,</div>
<div class="gmail_default" style="font-size:small">
</div>
<div class="gmail_default" style="font-size:small">
I think you need to check your input units again. You didn't
indicate exactly how you are calling wrf_cape_3d, but if you read the
documentation at:</div>
<div class="gmail_default" style="font-size:small">
</div>
<div class="gmail_default">
<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_cape_3d.shtml" target="_blank">
http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_cape_3d.shtml</a>
</div>
<div class="gmail_default">
</div>
<div class="gmail_default">
you will see that that the model pressure values need to be in units of
Pa, while the units of surface pressure must be hPa. I'm not sure
why the function was written this way, but you need to make sure you have
the correct units.</div>
<div class="gmail_default">
</div>
<div class="gmail_default">
If you continue to have problems, please respond back to ncl-talk with
this information. It would help if you could provide a short test program
that shows the values you are inputting and the incorrect values that are
coming from the function. Also, we need to know what version of NCL
you're running. </div>
<div class="gmail_default">
</div>
<div class="gmail_default">
Thanks,</div>
<div class="gmail_default">
</div>
<div class="gmail_default">
--Mary</div>
<div class="gmail_default">
</div>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">
On Tue, Jan 8, 2019 at 9:23 PM nafiseh pegahfar <<a href="mailto:pegahfar@inio.ac.ir" target="_blank">pegahfar@inio.ac.ir</a>> wrote:</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div>
<div>
<pre style="white-space:pre-wrap">To whom it may concern,
I used "wrf_cape_3d" function to calculate Cape. for this aim I
used 3D vand
2D values. unfortunately in some points (based on lat/lon) NaN value for
cape is seen. I am sure that all data have correct units. Input values for a
point is reported as below:
cape=9.969209968386869e+36
level=92500
TK=300.6299140816899
rv=0.008510922866573187
GPH=723.139880629395
z=0.7325572010323265
p=100078.4522848937
I think where rv value is less that 0.01, this nan value appears.
please help me to overcome to these nan values
</pre>
</div>
<div>
Best Regards<br>
=================================<br>
Nafiseh Pegahfar<br>
Assistant Professor<br>
Iranian National Institute for Oceanography and Atmospheric Science<br>
(<a href="http://www.inio.ac.ir" target="_blank">
http://www.inio.ac.ir</a>)<br>
Phone: (0098)21- 66944873-5 Ext. 224<br>
Fax: (0098)21- 66944869<br>
Email: (<a href="mailto:pegahfar@inio.ac.ir" target="_blank">
pegahfar@inio.ac.ir</a>)<br>
(<a href="mailto:pegahfar@ut.ac.ir" target="_blank">
pegahfar@ut.ac.ir</a>)<br>
=================================</div>
</div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>
<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">
http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote>
</div>
</blockquote>
</div>
<div style="font-family:"Times New Roman";color:rgb(0,0,0);font-size:13.3333px;font-weight:400;font-style:normal;background:none 0% 0%/auto repeat scroll padding-box border-box rgba(0,0,0,0)">
</div>
</div>
</blockquote></div>