[ncl-talk] nan value for cape function

Mary Haley haley at ucar.edu
Mon Jan 14 09:04:19 MST 2019


We cannot debug this problem with the information you've given us, because
I don't know exactly how you are calling the routine.

Please use our GitHub issues page to submit a bug report and provide a
small, clean program that illustrates the error:

https://github.com/NCAR/ncl/issues

Thanks,

--Mary


On Thu, Jan 10, 2019 at 9:42 PM nafiseh pegahfar <pegahfar at inio.ac.ir>
wrote:

> Hello,
> Thank you for your kindly attention.
> I checked and all units were correct as:
>
> level=925,00
> TK=300.6299140816899
> rv=0.008510922866573187
> GPH=723.139880629395
> z=0.7325572010323265
> p=100078.4522848937
>
> while the NaN values still exist. The NaN values are occurred at places
> with rv<0.01.
>
> Best Regards
> =================================
> Nafiseh Pegahfar
> Assistant Professor
> Iranian National Institute for Oceanography and Atmospheric Science
> (http://www.inio.ac.ir)
> Phone: (0098)21- 66944873-5 Ext. 224
> Fax: (0098)21- 66944869
> Email: (pegahfar at inio.ac.ir)
> (pegahfar at ut.ac.ir)
> =================================
>
> -----Original Message-----
> From: Mary Haley <haley at ucar.edu>
> To: nafiseh pegahfar <pegahfar at inio.ac.ir>
> Cc: "ncl-talk at ucar.edu" <ncl-talk at ucar.edu>
> Date: Thu, 10 Jan 2019 09:36:22 -0700
> Subject: Re: [ncl-talk] nan value for cape function
>
> Hello,
>
> 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:
>
> http://www.ncl.ucar.edu/Document/Functions/Built-in/wrf_cape_3d.shtml
>
> 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.
>
> 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.
>
> Thanks,
>
> --Mary
>
>
> On Tue, Jan 8, 2019 at 9:23 PM nafiseh pegahfar <pegahfar at inio.ac.ir>
> wrote:
>
>> 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
>>
>>
>> Best Regards
>> =================================
>> Nafiseh Pegahfar
>> Assistant Professor
>> Iranian National Institute for Oceanography and Atmospheric Science
>> ( http://www.inio.ac.ir)
>> Phone: (0098)21- 66944873-5 Ext. 224
>> Fax: (0098)21- 66944869
>> Email: ( pegahfar at inio.ac.ir)
>> ( pegahfar at ut.ac.ir)
>> =================================
>> _______________________________________________
>> ncl-talk mailing list
>> ncl-talk at ucar.edu
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190114/f9bff9a2/attachment.html>


More information about the ncl-talk mailing list