Problem
Proposed solution
In the insert_scattering_quantity function, we want to add these features: (1) check if xarray is empty or not, if not check that yarray has the same length as xarray and xtype is valid (one of XQUANTITIES), (2) set attribute so that we don't allow setting an invalid xtype.