;+ ; NAME: hasnans ; PURPOSE: does an array have NaNs in it? ; ; INPUTS: ; KEYWORDS: ; OUTPUTS: ; ; HISTORY: ; Began 2007-07-27 09:39:40 by Marshall Perrin ;- PRO hasnans,thing nans = total(thing ne thing) if nans gt 0 then print, "Yup, there are NaNs in there" else print,"No NaNs found" end