Similar to #146, also ColocatedData should undergo some redefinition (but not as much as StationData. Suggestion is to turn ColocatedData.data attr. from a xarray.DataArray into a xarray.Dataset with individual DataArrays being assigned to it for model and obs separately (this would get rid of data_source dimension).
Right now I think it should still be single variable (encoded in filename).
Names of the "variables" of the Dataset could then be the obs / model IDs and would allow easy access of the individual subsets and would also make it easier to add other model or observation records. And it would also allow easier separation of global metadata (set in Dataset, e.g. pyaerocom colocation settings) and model / obs metadata (set in individual DataArray instances for both "variables").
Similar to #146, also
ColocatedData
should undergo some redefinition (but not as much asStationData
. Suggestion is to turnColocatedData.data
attr. from axarray.DataArray
into axarray.Dataset
with individualDataArrays
being assigned to it for model and obs separately (this would get rid ofdata_source
dimension).Right now I think it should still be single variable (encoded in filename).
Names of the "variables" of the
Dataset
could then be the obs / model IDs and would allow easy access of the individual subsets and would also make it easier to add other model or observation records. And it would also allow easier separation of global metadata (set inDataset
, e.g. pyaerocom colocation settings) and model / obs metadata (set in individualDataArray
instances for both "variables").