Missing values not recognized

From: Anthony C. Didlake, Jr. <didlake_at_nyahnyahspammersnyahnyah>
Date: Thu, 19 Jul 2007 09:14:19 -0700

Hello,

I'm having a problem with missing values in my NCL script. I'm reading
in a NetCDF file and grabbing variables with them that have their
missing value set to -999. However, when I apply NCL functions to these
variables, it does not recognize the number -999 as missing, but rather
as a data entry value. For instance, when I use the min function, it
always returns -999 (even though all the values are not missing.) I also
used the num and ismissing functions to count the number of missing
values, and it always returns 0 (even though some values are missing.)
Below is my script. Are there any reasons that this could happen?

Thanks,
Anthony

load "/usr/local/ncarg/lib/ncarg/nclex/gsun/gsn_code.ncl"

begin

filename = "200508282031.nc"
nc_file = addfile(filename,"r")

w = nc_file->WVAR(0,:,:,:)

min_w = min(w)
x = num(ismissing(w(0,0,:)))

print(min_w)
print(x)
print(w_at_missing_value)

end

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Jul 19 2007 - 10:14:19 MDT

This archive was generated by hypermail 2.2.0 : Thu Jul 19 2007 - 10:40:48 MDT