xarray_coords
File Purpose: tools related to xarray coords
Functions
|
return copy of array with coord named array.name, equal to array values. |
|
demote '{cname}_index' dims to coords by promoting '{cname}' coords to dim instead. |
|
differentiate array along coord, treating array like it is an xarray.DataArray. |
|
returns dict of {dim name: [coord name for all coords with this dim]}. |
|
return copy of array with coords filled for indicated dims. |
|
returns number equal to the diff along array.coords[coord], after checking that it is constant. |
|
return copy of array with coord_index coords telling np.arange() for each coord. |
|
returns whether array is sorted; array must be 1D. |
|
return copy of array with coords replaced by log coords (& renamed to log_coord) |
|
return copy of array with coords modded (via np.mod) by |
|
returns dict of {coord name: coord.values} for all non-dimension coords (not in array.dims). |
|
promote to dims all '{cname}_index' coords for which '{cname}' is associated with a 1D dim. |
|
return copy of array with coords multiplied by scale. |
|
return copy of array with coords shifted by shift. |
|
return copy of array with coords replaced by str coords (& renamed to str_coord) |