# xarray.DataArray.identical

#### DataArray.identical(other)[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/dataarray.py#L4938-L4994)

Like equals, but also checks the array name, attributes,
attributes on all coordinates, and indexes.

* **Parameters:**
  **other** ([`DataArray`](xarray.DataArray.html.md#xarray.DataArray)) – DataArray to compare to.
* **Returns:**
  **equal** ([`bool`](https://docs.python.org/3/builtins/functions.html#bool)) – True if the two DataArrays are identical.

#### SEE ALSO
[`DataArray.broadcast_equals`](xarray.DataArray.broadcast_equals.html.md#xarray.DataArray.broadcast_equals), [`DataArray.equals`](xarray.DataArray.equals.html.md#xarray.DataArray.equals)

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('274df03b-1077-4072-802d-a1e79f453b28','1688a409-42f2-4957-b490-37dc57f1d56d','dd3fbe16-ef8a-4c77-a2e6-869a55d419ec','../lite/tree/../notebooks/index.html?path=e24877df_d1f1_4f63_8009_fd9a4ab47eb9.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> a = xr.DataArray([1, 2, 3], dims="X", attrs=dict(units="m"), name="Width")
>>> b = xr.DataArray([1, 2, 3], dims="X", attrs=dict(units="m"), name="Width")
>>> c = xr.DataArray([1, 2, 3], dims="X", attrs=dict(units="ft"), name="Width")
>>> a
<xarray.DataArray 'Width' (X: 3)> Size: 24B
array([1, 2, 3])
Dimensions without coordinates: X
Attributes:
    units:    m
>>> b
<xarray.DataArray 'Width' (X: 3)> Size: 24B
array([1, 2, 3])
Dimensions without coordinates: X
Attributes:
    units:    m
>>> c
<xarray.DataArray 'Width' (X: 3)> Size: 24B
array([1, 2, 3])
Dimensions without coordinates: X
Attributes:
    units:    ft
```

```pycon
>>> a.equals(b)
True
>>> a.identical(b)
True
```

```pycon
>>> a.equals(c)
True
>>> a.identical(c)
False
```

<div id="dd3fbe16-ef8a-4c77-a2e6-869a55d419ec" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('274df03b-1077-4072-802d-a1e79f453b28','dd3fbe16-ef8a-4c77-a2e6-869a55d419ec')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('274df03b-1077-4072-802d-a1e79f453b28','dd3fbe16-ef8a-4c77-a2e6-869a55d419ec')">Open In Tab</button></div><div id="1688a409-42f2-4957-b490-37dc57f1d56d" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
