act.qc.QCFilter.add_missing_value_test#

QCFilter.add_missing_value_test(var_name, missing_value=None, missing_value_att_name='missing_value', test_number=None, test_assessment='Bad', test_meaning=None, flag_value=False, prepend_text=None, use_dask=False)#

Method to add indication in quality control variable where data value is set to missing value.

Parameters:
  • var_name (str) – Data variable name.

  • missing_value (int or float) – Optional missing value to use. If not provided will attempt to get it from the variable attribute or use NaN.

  • missing_value_att_name (str) – Optional attribute name to use.

  • test_meaning (str) – The optional text description to add to flag_meanings describing the test. Will add a default if not set.

  • test_assessment (str) – Optional single word describing the assessment of the test. Will set a default if not set.

  • test_number (int) – Optional test number to use. If not set will ues next available test number.

  • flag_value (boolean) – Indicates that the tests are stored as integers not bit packed values in quality control variable.

  • prepend_text (str) – Optional text to prepend to the test meaning. Example is indicate what institution added the test.

  • use_dask (boolean) – Option to use Dask for searching if data is stored in a Dask array

Returns:

test_info (tuple) – A tuple containing test information including var_name, qc variable name, test_number, test_meaning, test_assessment