function of dascore.core.attrs source

    patch1: Patch ,
    patch2: Patch ,
    attrs_to_ignore = (‘history’,),
)-> ‘tuple[CoordManager, PatchAttrs]’

Merge the coordinates and attributes of patches or raise if incompatible.

The rules for compatibility are: - All attrs must be equal other than history. - Patches must share the same dimensions, in the same order - All dimensional coordinates must be strictly equal - If patches share a non-dimensional coordinate they must be equal. Any coordinates or attributes contained by a single patch will be included in the output.


Parameter Description
patch1 The first patch
patch2 The second patch
attr_ignore A sequence of attributes to not consider in equality. Only these attributes from the first patch are kept in outputs.