Hi Nilesh,
The following will work to count up the number of missing values (set =
_FillValue) for one variable from one .nc file:
a = addfile("test.nc","r")
arr = a->varname
print(dimsizes(ind(ismissing(ndtooned(arr)))))
Note that even if there are no missing values in the variable, the above
print line will come back with an array of size 1 = -999
Good luck,
Adam
araligin_at_onid.orst.edu wrote:
> Hello,
>
> Is there any command that can count the number of missing values in the
> netcdf files, or we need to to convert netcdf to ascii and count it.
> Any help and suggections would be appreciated.
>
> Cheers!!!
> Nilesh
> _______________________________________________
> ncl-talk mailing list
> ncl-talk_at_ucar.edu
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
-- -------------------------------------------------------------- Adam Phillips asphilli_at_ucar.edu National Center for Atmospheric Research tel: (303) 497-1726 ESSL/CGD/CAS fax: (303) 497-1333 P.O. Box 3000 Boulder, CO 80307-3000 http://www.cgd.ucar.edu/cas/asphilli _______________________________________________ ncl-talk mailing list ncl-talk_at_ucar.edu http://mailman.ucar.edu/mailman/listinfo/ncl-talkReceived on Wed Jul 26 2006 - 14:27:50 MDT
This archive was generated by hypermail 2.2.0 : Fri Jul 28 2006 - 16:18:18 MDT