import numpy as np
import dascore as dc
= dc.get_example_patch("random_patch_with_lat_lon")
pa # Drop non-dimensional coordinate latitude
= pa.drop_coords("latitude") pa_no_lat
drop_coords
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. |