merge_coord_managers
merge_coord_managers(
coord_managers: collections.abc.Sequence[CoordManager] ,
dim: str ,
snap_tolerance: float | None[float, None] = None,
conflict: Literal[‘drop’, ‘raise’, ‘keep_first’] = raise,
dim_coord = None,
warn: bool = True,
)-> ‘dc.CoordManager’
Merge coordinate managers along a specified dimension.
Parameters
| Parameter | Description |
|---|---|
| coord_managers | A sequence of coord_managers to merge. |
| dim | The dimension along which to merge. |
| snap_tolerance |
The tolerance for snapping evenly sampled coords together. E.G, allows coord ranges that have snap_tolerances differences from their start/end to be joined together. If they don’t meet this requirement an CoordMergeError is raised. If None, no checks are performed. |
| conflict |
What to do with a non-dimensional coordinate on another dimension which the managers hold differently: “raise” (default) raises a CoordMergeError, “keep_first” keeps the first manager’s coordinate and “drop” leaves it out. A coordinate some manager lacks is dropped under “raise” and otherwise follows the same policy. The loosened policies warn, naming the coordinate; private coordinates (names starting with “_“) are dropped without being named. |
| dim_coord |
If provided, use this coordinate for dim instead ofconcatenating the members’ values (which materializes them); callers which already built the merged dimension coordinate (e.g. via concat_coords) pass it here to avoid that cost.
|
| warn |
If False, do not warn about the coordinates conflict decided.
|