If several of your files describe the same items, you should
generally merge them into a single Glue
Examples of files that make sense to merge together include:
- 2 or more images that are pixel-aligned to each other
- Several catalogs whose rows describe the same objects
For multi-dimensional visualizations (like a scatter plot, or an RGB image), merging datasets allows you to combine attributes from two different files into a single visualization. It also guarantees that any subset defined using attributes from one file can be applied to the entries in another file.
How to merge datasets¶
Whenever you load a file whose shape matches a pre-existing dataset,
Glue will ask you if you want to merge them into a single object.
If you choose not to merge at this time, you can merge later
by highlighting the relevant datasets in the left panel, right-clicking,
To merge datasets programmatically, use the
Datasets should only be merged if each element describes the same item in each file. Consequently, all merged datasets must have the same number of elements.