Previous topic

scikits.timeseries.last_unmasked_val

Next topic

scikits.timeseries.last_unmasked_val

This Page

scikits.timeseries.first_unmasked_val

first_unmasked_val(a, axis=None)

Retrieve the first unmasked value along the given axis in a MaskedArray.

Parameters:

a : MaskedArray

Input MaskedArray (or a subclass of).

axis : int, optional

Axis along which to perform the operation. If None, applies to a flattened version of the array.

Returns:

val : {singleton of type marray.dtype}

First unmasked value in a. If all values in a are masked, returns the numpy.ma.masked constant.