## valid

valid( QDataSet ds ) → QDataSet

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 ) )

### Parameters

ds - a rank N dataset that might have FILL_VALUE, VALID_MIN or VALID_MAX set.

### Returns:

a rank N dataset with the same geometry, with zeros where the data is invalid and >0 where the data is valid.
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## variance

variance( Object o ) → QDataSet

### Parameters

o - an Object

### Returns:

org.das2.qds.QDataSet
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## variance

variance( QDataSet ds ) → QDataSet

variance function is the square of the stddev.

### Parameters

ds - rank 1 dataset.

### Returns:

Rank 0 QDataSet containing the variance. The result is currently dimensionless, but this will change.

### See Also:

stddev
[search for examples] [view on GitHub] [view on old javadoc] [view source]