Skip to content

Variables with multiple QC variables of varying dimensions #952

@AdamTheisen

Description

@AdamTheisen

Describe the bug
The ARM data product, houmergedsmpsapsmlM1.c1, has 3 ancillary QC variables for one of the variables, merged_dN_dlogDp. Two of these QC variables are only indexed by time and not merged_diameter_mobility so are not the same size as the variable.

To Reproduce

files = glob.glob('/Users/atheisen/Code/development-space/data/houmergedsmpsapsmlM1.c1/*')
ds = act.io.read_arm_netcdf(files, cleanup_qc=True)


title = 'Merged Number Size Distribution'
cbar_title = 'dN/dlogD$_p$ (1/cm$^{3}$)'
display = act.plotting.TimeSeriesDisplay(ds, subplot_shape=(2,))
display.plot('merged_dN_dlogDp', cvd_friendly=True,
             norm=colors.LogNorm(vmin=100., vmax=10000.), set_title=title, cbar_label=cbar_title,
             ylabel='Pariticle Diameter (nm)', subplot_index=(0,))
display.axes[0].set_yscale('log')
display.qc_flag_block_plot('merged_dN_dlogDp', subplot_index=(1,))
plt.show()

Expected behavior
We should figure out how we can expand the qcfilter mask to also include these other ancillary QC variables

Additional context
A fix will be put in to at least use the QC variable with same size as the variable while we sort this out.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions