Skip to content
Snippets Groups Projects
Commit aad3b6c1 authored by William Roberts's avatar William Roberts
Browse files

Remove standard name from _checks

parent 3539e8ed
No related branches found
No related tags found
No related merge requests found
......@@ -77,13 +77,14 @@ def save_quality(frame, qc_path, checklist):
if '_flag' in check.name:
variable.flag_values = np.array((0, 1)).astype(np.uint8)
variable.flag_meanings = "valid_data invalid_data"
variable.standard_name = "quality_flag"
variable.description = 'a binary weighting factor either zero or one describing the ' \
'quality of the underlying data as valid or invalid respectively'
elif '_check' in check.name:
variable.description = 'a real-valued weighting factor between zero and ' \
'one describing the quality of the underlying data'
if "aggregate_qc" in check.name:
variable.description = 'a real-valued weighting factor between zero and one describing the quality of '\
'the underlying data as completely valid or completely invalid respectively'
if "aggregate_qc_flag" == check.name:
variable.standard_name = "aggregate_quality_flag"
else:
variable.standard_name = "quality_flag"
check.depends.sort()
variable.depends = ' '.join(check.depends)
variable.affects_calibration = str(check.affects_calibration)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment