pyremap.descriptor.get_corners_1d
- pyremap.descriptor.get_corners_1d(ds, var_name)[source]
Get the coordinates of grid-cell corners along a 1D coordinate, using the CF
boundsof the coordinate if they are available and usable, and interpolating and extrapolating from cell centers if not.- Parameters:
ds (xarray.Dataset) – A dataset containing the coordinate variable
var_namevar_name (str) – The name of the 1D coordinate variable
- Returns:
corner (numpy.ndarray) – A 1D array of corner coordinates with one more element than
ds[var_name]