[data, flags] = flagdata(data, lim, options )
This function parses the input data and flags them as bad according to specified limits. A limit is specified by a vector with the following values:
Data must lie outside intervall specified by minimal and maximal values.
Data must lie inside intervall specified by minimal and maximal values.
This function returns a list of flags for each data being tested. These have the following meaning:
Corresponding data was less than minimal value,and limit mode was inside.
Corresponding data was more than maximal value,and limit mode was inside.
Corresponding data passed the limit test.
Corresponding data was inside intervall,but limit mode was set to outside.
Corresponding data was already set to NaN on input.
Array (MxN) of M variables,with N different values that should be flagged.
Array (Mx3) specifying the limits for the M variables.
The rest of the arguments is a list of options. See below for implemented options.
Implemented options are:
Non-NaN values in the specified vector correspond to column numbers in data containing heading values. These are converted within 0 and 360 before applying the limit tests.
Array (MxN),with all data not passing the limit test set to NaN.
as described above.
Pierre Jaccard, Geophysical Institute, University of Bergen, 1999