[SciPy-user] flagging no data in timeseries
Thu Dec 20 10:37:34 CST 2007
> Since I am still very new to the package I need some hints.
> In my original data nodata values are marked with "-999".
> How can I import the data or create the time series and exclude these no
> data points from further processing?
The following solutions should be equivalent:
* use masked_where from maskedarray
>>>myvalues_ts_hourly = masked_where(myvalues_ts_hourly , -999)
* Use indexing
>>>myvalues_ts_hourly[myvalues_ts_hourly==-999] = M.masked
More information about the SciPy-user