Skip to content

Commit

Permalink
Stopping adding new qc varible to qc variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
kenkehoe committed Jul 29, 2024
1 parent ebf7fb1 commit a40bca7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions act/qc/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ def add_dqr_to_qc(
loc_vars = ['lat', 'lon', 'alt', 'latitude', 'longitude', 'altitude']
for key, value in dqr_results.items():
for var_name in value['variables']:

# if var_name in ['base_time', 'time_offset', 'time']:
# continue

# Do not process on location variables
if skip_location_vars and var_name in loc_vars:
continue
Expand All @@ -185,6 +189,14 @@ def add_dqr_to_qc(
if variable is not None and var_name not in variable:
continue

# Do not process quality control variables as this will create a new
# quality control variable for the quality control varible.
try:
if ds[var_name].attrs['standard_name'] == 'quality_flag':
continue
except KeyError:
pass

try:
ds.qcfilter.add_test(
var_name,
Expand Down

0 comments on commit a40bca7

Please sign in to comment.