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")drop_coords
drop_coords(
self: Patch ,
*coords: str | collections.abc.Collection[str, collections.abc.Collection[str]] ,
)-> ‘PatchType’
Update the coordinates of a patch.
Will either add new coordinates, or update existing ones.
Parameters
| Parameter | Description |
|---|---|
| *coords | One or more coordinates to drop. |