act.qc.CleanDataset.clean_arm_qc#

CleanDataset.clean_arm_qc(override_cf_flag=True, clean_units_string=True, correct_valid_min_max=True, remove_unset_global_tests=True, **kwargs)[source]#

Method to clean up Xarray dataset QC variables.

Parameters:
  • override_cf_flag (bool) – Option to overwrite CF flag_masks, flag_meanings, flag_values if exists.

  • clean_units_string (bool) – Option to clean up units string from ‘unitless’ to udunits compliant ‘1’.

  • correct_valid_min_max (bool) – Option to correct use of valid_min and valid_max with QC variables by moving from data variable to QC varible, renaming to fail_min, fail_max and fail_detla if the valid_min, valid_max or valid_delta is listed in bit discription attribute. If not listed as used with QC will assume is being used correctly.

  • remove_unset_global_tests (bool) – Option to look for globaly defined tests that are not set at the variable level and remove from quality control variable.