Xarray¶
Description:
- Xarray makes working with labelled multi-dimensional arrays in Python simple, efficient, and fun!
Resources:
- [Tutorials] https://tutorial.xarray.dev/
- [Docs - Xarray and Dask] https://tutorial.xarray.dev/intermediate/xarray_and_dask.html
Example 1¶
Load an example dataset and pull out the air dataarray
In [ ]:
Copied!
import xarray as xr
# Create a dataset
ds = xr.tutorial.load_dataset("air_temperature")
# pull out "air" dataarray with dictionary syntax
ds["air"]
import xarray as xr
# Create a dataset
ds = xr.tutorial.load_dataset("air_temperature")
# pull out "air" dataarray with dictionary syntax
ds["air"]