# xarray.core.accessor_str.StringAccessor.upper

#### StringAccessor.upper()[[source]](https://github.com/pydata/xarray/blob/main/xarray/core/accessor_str.py#L779-L800)

Convert strings in the array to uppercase.

* **Returns:**
  **uppered** (`same type as values`)

### Examples

<div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesShowIframe('279bad9c-7f8c-4f30-a621-b48d9897e4b2','f0ab7ee5-e531-4009-9a4b-4d2ba95fc339','4cca73cd-2cfb-4bb7-9f05-f21691e58853','../lite/tree/../notebooks/index.html?path=99f0637f_9750_4a8d_b3a3_4aa251fa81f2.ipynb','None')">Try it in your browser!</button></div>
```pycon
>>> da = xr.DataArray(["temperature", "HuMiDiTy"], dims="x")
>>> da
<xarray.DataArray (x: 2)> Size: 88B
array(['temperature', 'HuMiDiTy'], dtype='<U11')
Dimensions without coordinates: x
>>> uppered = da.str.upper()
>>> uppered
<xarray.DataArray (x: 2)> Size: 88B
array(['TEMPERATURE', 'HUMIDITY'], dtype='<U11')
Dimensions without coordinates: x
```

<div id="4cca73cd-2cfb-4bb7-9f05-f21691e58853" class="try_examples_outer_iframe  hidden"><div class="try_examples_button_container"><button class="try_examples_button" onclick="window.tryExamplesHideIframe('279bad9c-7f8c-4f30-a621-b48d9897e4b2','4cca73cd-2cfb-4bb7-9f05-f21691e58853')">Go Back</button><button class="try_examples_button" onclick="window.openInNewTab('279bad9c-7f8c-4f30-a621-b48d9897e4b2','4cca73cd-2cfb-4bb7-9f05-f21691e58853')">Open In Tab</button></div><div id="f0ab7ee5-e531-4009-9a4b-4d2ba95fc339" class="jupyterlite_sphinx_iframe_container"></div></div><script>document.addEventListener("DOMContentLoaded", function() {window.loadTryExamplesConfig("../try_examples.json");});</script>
