[ncl-talk] dewtemp_trh function returns NaN values

Jon Meyer jonathan.meyer at aggiemail.usu.edu
Fri Sep 5 10:58:04 MDT 2014


Hello NCL developers,

I wanted to bring a minor detail to your attention regarding the
dewtemp_trh function. I've been using this function to compute dewpoint
temperatures from WRF met_em files and have been seeing NaN values returned.

Tracing this issue, I found that when RH values fall below 0%, the NaN
values are returned. When I use the 'where' function to constrain all
values to above 0%, the NaN values are not returned. Values above 100% do
not return NaN values.

I know from pervious email exchanges that functions are not supposed to
return NaN values so I wanted to point this out.

Since most met_em files have some values outside of the appropriate range
due to interpolation biases, I figured either a warning message or a
statement on the function's page would help others who are using this
function avoid the NaNs, which seem to choke any plotting interface.

Have a good day,
Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20140905/722334ec/attachment.html 


More information about the ncl-talk mailing list