act.qc.CleanDataset#

class act.qc.CleanDataset(ds)[source]#

Class for cleaning up QC variables to standard cf-compliance

clean_arm_qc([override_cf_flag, ...])

Method to clean up Xarray dataset QC variables.

clean_arm_state_variables(variables[, ...])

Function to clean up state variables to use more CF style.

clean_cf_qc([variables, sep])

Method to convert the CF standard for QC attributes to match internal format expected in the Dataset.

clean_seri_qc()

Method to apply SERI QC to the quality control variables.

clean_swats_qc([fix_data_units])

Method to apply SWATS global attribute quality control definition to the quality control variables.

cleanup([cleanup_arm_qc, ...])

Wrapper method to automatically call all the standard methods for dataset cleanup.

correct_valid_minmax(qc_variable)

Function to correct the name and location of quality control limit variables that use valid_min and valid_max incorrectly.

fix_incorrect_variable_bit_description_attributes()

Method to correct incorrectly defined quality control variable attributes.

get_attr_info([variable, flag])

Get ARM quality control definitions from the ARM standard bit_#_description, .

handle_missing_values([default_missing_value])

Correctly handle missing_value and _FillValue in the dataset.

link_variables()

Add some attributes to link and explain data to QC data relationship.

normalize_assessment([variables, ...])

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

matched_qc_variables

Find variables that are QC variables and return list of names.