|
26 | 26 | "\n", |
27 | 27 | "The following topics will be covered in this tutorial:\n", |
28 | 28 | "\n", |
29 | | - "1. Create a <xref:xarray#generated/xarray.DataArray>, one of the core object types in Xarray\n", |
| 29 | + "1. Create a [DataArray](xref:xarray#xarray.DataArray), one of the core object types in Xarray\n", |
30 | 30 | "1. Understand how to use named coordinates and metadata in a `DataArray`\n", |
31 | 31 | "1. Combine individual `DataArrays` into a `Dataset`, the other core object type in Xarray\n", |
32 | 32 | "1. Subset, slice, and interpolate the data using named coordinates\n", |
|
297 | 297 | "source": [ |
298 | 298 | "### The `Dataset`: a container for `DataArray`s with shared coordinates\n", |
299 | 299 | "\n", |
300 | | - "Along with the `DataArray`, the other main object type in Xarray is the `Dataset`. `Datasets` are containers similar to Python dictionaries; each `Dataset` can hold one or more `DataArrays`. In addition, the `DataArrays` contained in a `Dataset` can share coordinates, although this behavior is optional. (For more information, see the [official documentation page](http://xarray.pydata.org/en/stable/user-guide/data-structures.html#dataset).)\n", |
| 300 | + "Along with the `DataArray`, the other main object type in Xarray is the `Dataset`. `Datasets` are containers similar to Python dictionaries; each `Dataset` can hold one or more `DataArrays`. In addition, the `DataArrays` contained in a `Dataset` can share coordinates, although this behavior is optional. (For more information, see the [official documentation page](xref:xarray#xarray.Dataset).)\n", |
301 | 301 | "\n", |
302 | 302 | "`Dataset` objects are most often created by loading data from a data file. We will cover this functionality in a later example; in this example, we will create a `Dataset` from two `DataArrays`. We will use our existing temperature `DataArray` for one of these `DataArrays`; the other one is created in the next example.\n", |
303 | 303 | "\n", |
|
500 | 500 | "\n", |
501 | 501 | "In this example, we are trying to extract a timeseries for Boulder, CO, which is located at 40°N latitude and 105°W longitude. Our `DataArray` does not contain a longitude data value of -105, so in order to retrieve this timeseries, we must interpolate between data points.\n", |
502 | 502 | "\n", |
503 | | - "The `.interp()` method allows us to retrieve data from any latitude and longitude by means of interpolation. This method uses coordinate-value selection, similarly to `.sel()`. (For more information on the `.interp()` method, see the official documentation [here](http://xarray.pydata.org/en/stable/interpolation.html).)" |
| 503 | + "The `.interp()` method allows us to retrieve data from any latitude and longitude by means of interpolation. This method uses coordinate-value selection, similarly to `.sel()`. (For more information on the `.interp()` method, see the official documentation [here](xref:xarray#interp).)" |
504 | 504 | ] |
505 | 505 | }, |
506 | 506 | { |
|
901 | 901 | "\n", |
902 | 902 | "This tutorial contains content adapted from the material in [Unidata's Python Training](https://unidata.github.io/python-training/workshop/XArray/xarray-and-cf/).\n", |
903 | 903 | "\n", |
904 | | - "Most basic questions and issues with Xarray can be resolved with help from the material in the [Xarray documentation](http://xarray.pydata.org/en/stable/). Some of the most popular sections of this documentation are listed below:\n", |
905 | | - "- [Why Xarray](http://xarray.pydata.org/en/stable/getting-started-guide/why-xarray.html)\n", |
906 | | - "- [Quick overview](http://xarray.pydata.org/en/stable/getting-started-guide/quick-overview.html#)\n", |
907 | | - "- [Example gallery](http://xarray.pydata.org/en/stable/gallery.html)\n", |
| 904 | + "Most basic questions and issues with Xarray can be resolved with help from the material in the [Xarray documentation](xref:xarray). Some of the most popular sections of this documentation are listed below:\n", |
| 905 | + "- [Why Xarray](xref:xarray#getting-started-guide/why-xarray)\n", |
| 906 | + "- [Quick overview](xref:xarray#getting-started-guide/quick-overview)\n", |
| 907 | + "- [Example gallery](xref:xarray#gallery)\n", |
908 | 908 | "\n", |
909 | | - "Another resource you may find useful is this [Xarray Tutorial collection](https://xarray-contrib.github.io/xarray-tutorial/), created from content hosted on GitHub.\n", |
910 | | - "\n" |
| 909 | + "Another resource you may find useful is this [Xarray Tutorial collection](https://xarray-contrib.github.io/xarray-tutorial/), created from content hosted on GitHub." |
911 | 910 | ] |
912 | 911 | } |
913 | 912 | ], |
|
0 commit comments