Re: Missing values in netcdf

From: Michael Notaro <mnotaro_at_nyahnyahspammersnyahnyah>
Date: Wed, 26 Jul 2006 15:25:56 -0500

For example, if you open a netcdf file and read variable "var"
then you can count the number of missing values by doing the
following:

a = addfile("file.nc","r")
var=a->var
var@_FillValue=999.
print(num(ismissing(var)))

Mike

On Jul 26, 2006, at 3:19 PM, 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

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Wed Jul 26 2006 - 14:25:56 MDT

This archive was generated by hypermail 2.2.0 : Fri Jul 28 2006 - 16:18:18 MDT