argopy.xarray.ArgoAccessor.filter_qc#
- ArgoAccessor.filter_qc(QC_list=[1, 2], QC_fields='all', drop=True, mode='all', mask=False)[source]#
Filter measurements according to QC values
Filter the dataset to keep points where
alloranyof the QC fields has a value in the list of integer QC flags.This method can return the filtered dataset or the filter mask.
Warning
This method does not consider PROFILE QC variable(s).
- Parameters:
QC_list (list of int) β List of QC flag values (integers) to keep
QC_fields ('all' or list(str)) β List of QC fields to consider to apply the filter. By default, we use all available QC fields
drop (bool) β Drop values not matching the QC filter, default is True
mode (str) β Must be
all(default) orany. Boolean operator on QC values: should we keep points matchingallQC fields or βanyβ one of them.mask (bool) β
Falseby default. Determine if we should return the QC mask or the filtered dataset.
- Return type: