act.qc.CleanDataset.normalize_assessment#

CleanDataset.normalize_assessment(variables=None, exclude_variables=None, qc_lookup={'Bad': 'Incorrect', 'Indeterminate': 'Suspect'})[source]#

Method to clean up assessment terms used to be consistent between embedded QC and DQRs.

Parameters:
  • variables (str or list of str) – Optional data variable names to check and normalize. If set to None will check all variables.

  • exclude_variables (str or list of str) – Optional data variable names to exclude from processing.

  • qc_lookup (dict) – Optional dictionary used to convert between terms.

Examples

ds = act.io.arm.read_arm_netcdf(files)
ds.clean.normalize_assessment(variables='temp_mean')
ds = act.io.arm.read_arm_netcdf(files, cleanup_qc=True)
ds.clean.normalize_assessment(qc_lookup={'Bad': 'Incorrect', 'Indeterminate': 'Suspect'})