returns a dataset with zero where the data is invalid, and positive non-zero where the data is valid. (This just returns the weights plane of the dataset.)
r= where( valid( ds ) )
variance function is the square of the stddev.
variance function is the square of the stddev.