# xarray.ufuncs.cbrt

### xarray.ufuncs.cbrt *= <xarray.ufuncs._unary_ufunc object>*

xarray specific variant of `numpy.cbrt()`. Handles xarray objects by dispatching to the appropriate function for the underlying array type.

Documentation from numpy:

Return the cube-root of an array, element-wise.

* **Parameters:**
  * **x** ([array_like](https://numpy.org/doc/stable/glossary.html#term-array_like)) – The values whose cube-roots are required.
  * **out** ([`ndarray`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray), [`None`](https://docs.python.org/3/builtins/constants.html#None), or [`tuple`](https://docs.python.org/3/builtins/stdtypes.html#tuple) of [`ndarray`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray) and [`None`](https://docs.python.org/3/builtins/constants.html#None), *optional*) – A location into which the result is stored. If provided, it must have
    a shape that the inputs broadcast to. If not provided or None,
    a freshly-allocated array is returned. A tuple (possible only as a
    keyword argument) must have length equal to the number of outputs.
  * **where** ([array_like](https://numpy.org/doc/stable/glossary.html#term-array_like), *optional*) – This condition is broadcast over the input. At locations where the
    condition is True, the out array will be set to the ufunc result.
    Elsewhere, the out array will retain its original value.
    Note that if an uninitialized out array is created via the default
    `out=None`, locations within it where the condition is False will
    remain uninitialized.
  * **\*\*kwargs** – For other keyword-only arguments, see the
    [ufunc docs](https://numpy.org/doc/stable/reference/ufuncs.html#ufuncs-kwargs).
* **Returns:**
  **y** ([`ndarray`](https://numpy.org/doc/stable/reference/generated/numpy.ndarray.html#numpy.ndarray)) – An array of the same shape as x, containing the
  cube root of each element in x.
  If out was provided, y is a reference to it.
  This is a scalar if x is a scalar.

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('be4b040d-6161-41a5-97c5-f4576f66e19a','ea1a4a9c-6750-4a22-85f3-905d6610ac47','09a06a51-34a2-4bfe-aa27-64d129ca3a51','../lite/tree/../notebooks/index.html?path=8d2d04b5_11dc_41b7_bd21_2b28938091e7.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> import numpy as np
>>> np.cbrt([1,8,27])
array([ 1.,  2.,  3.])
```

<div id="09a06a51-34a2-4bfe-aa27-64d129ca3a51" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('be4b040d-6161-41a5-97c5-f4576f66e19a','09a06a51-34a2-4bfe-aa27-64d129ca3a51')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('be4b040d-6161-41a5-97c5-f4576f66e19a','09a06a51-34a2-4bfe-aa27-64d129ca3a51')">Open In Tab</button></div><div id="ea1a4a9c-6750-4a22-85f3-905d6610ac47" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
