xarray_indexing
File Purpose: indexing xarrays
Functions
|
argsort for xarray.DataArray; returns indexes along dim which would sort array along dim. |
|
return array values at locations of maximum |
|
return array values at locations of minimum |
|
return (array of) coord value(s) at array.argmax(dim=dim associated with coord). |
|
return (array of) coord value(s) at array.argmin(dim=dim associated with coord). |
|
array.isel(...) which can also interpret fractional indexes between -1 and 1, and promotes non-dim coords. |
|
func(array, *args_f, **kw_f), but axis/axes can be provided as strings! |
|
return (array of) maximum value(s) of coord, where condition is True. |
|
return (array of) minimum value(s) of coord, where condition is True. |
|
return first index of value along dim |
|
array.sel(...) but prioritize general applicability over efficiency: |
|
returns array, sorted along dim. |
|
returns dataset, sorted along var's values for dim. |
|
return (array of) var name(s) for var with maximum values in ds. |
|
return (array of) var name(s) for var with minimum values in ds. |
|
like xarray's builtin where, but return array unchanged if it has no dims matching cond. |