Comment on Checks for Missing Data Values

From: Lunde, Bruce N CIV NAVOCEANO, NP1 <bruce.lunde_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 26 2011 - 09:20:57 MDT

Hello,

Just a comment about how some of the NCL functions
handle missing values.

I work with data where the "missing_value" is usually
set, but the "_FillValue" may not be.

Some of the NCL functions check only for the existence
of "_FillValue", such as the stat_dispersion() function
(in file contributed.ncl).

Maybe these routines could be improved by using the
function getFillValue(), in logic such as this:

OLD LOGIC:
if( isatt(foo,"_FillValue") )then

NEW LOGIC:
if( getFillValue(foo) .ne. "No_FillValue" )then

Bruce
_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 26 09:22:25 2011

This archive was generated by hypermail 2.1.8 : Mon Aug 29 2011 - 21:44:22 MDT