RenameCoords

class of dascore.proc.coords
inherits from: PatchProcessor, DascoreBaseModel, pydantic.main.BaseModel
source

RenameCoords(
    *args ,
    **kwargs ,
)-> None

Rename coordinate of Patch.

Parameters

Parameter Description
**kwargs The mapping from old names to new names

Examples

import dascore as dc
pa = dc.get_example_patch()

# rename dim "distance" to "fragrance"
pa2 = pa.rename_coords(distance='fragrance')
assert 'fragrance' in pa2.dims

Methods

Name Description
check Refuse a patch which does not carry what the operation needs.
get_metadata Return the coordinates under their new names; there is no kernel.
model_copy Copy the model, dropping cached values the update invalidates.
new Create new instance with some attributed updated.
rename_coords Rename coordinate of Patch.
reconcile Return metadata or a patch holding the final data; default as is.
run Run the operation: check, get_metadata, kernel, reconcile, record.