drop_coords

function of dascore.proc.coords source

drop_coords(
    self: Patch ,
    *coords: str | collections.abc.Collection[str, collections.abc.Collection[str]] ,
)-> ‘PatchType’

Update the coordiantes of a patch.

Will either add new coordinates, or update existing ones.

Parameters

Parameter Description
*coords One or more coordinates to drop.

Examples

import numpy as np
import dascore as dc
pa = dc.get_example_patch("random_patch_with_lat_lon")
# Drop non-dimensional coordinate latitude
pa_no_lat = pa.drop_coords("latitude")