act.qc.CleanDataset.get_attr_info#
- CleanDataset.get_attr_info(variable=None, flag=False)[source]#
Get ARM quality control definitions from the ARM standard bit_#_description, … attributes and return as dictionary. Will attempt to guess if the flag is integer or bit packed based on what attributes are set.
- Parameters:
variable (str) – Variable name to get attribute information. If set to None will get global attributes.
flag (bool) – Optional flag indicating if QC is expected to be bitpacked or integer. Flag = True indicates integer QC. Default is bitpacked or False.
- Returns:
attributes dictionary (dict or None) – A dictionary contianing the attribute information converted from ARM QC to CF QC. All keys include ‘flag_meanings’, ‘flag_masks’, ‘flag_values’, ‘flag_assessments’, ‘flag_tests’, ‘arm_attributes’. Returns None if none found.