Skip to content

Commit e31d1a6

Browse files
777arcMarc Lichtman
andauthored
fixed broken links to xarray-spatial.readthedocs.io (microsoft#298)
Co-authored-by: Marc Lichtman <[email protected]>
1 parent e821cb0 commit e31d1a6

10 files changed

+53
-53
lines changed

datasets/nasadem/nasadem-example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@
167167
"cell_type": "markdown",
168168
"metadata": {},
169169
"source": [
170-
"Now we can generate a shaded relief using [xarray-spatial](https://xarray-spatial.org/user_guide/surface.html)."
170+
"Now we can generate a shaded relief using [xarray-spatial](https://xarray-spatial.readthedocs.io/en/latest/user_guide/surface.html)."
171171
]
172172
},
173173
{

quickstarts/storage.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"\n",
1212
"### Compute NDVI\n",
1313
"\n",
14-
"We need something to write. To simulate a workload, let's load in a single [NAIP image](https://planetarycomputer.microsoft.com/dataset/naip#Example-Notebook) from the Planetary Computer's data catalog using [rioxarray](https://corteva.github.io/rioxarray/html/rioxarray.html) and compute the NDVI using [xrspatial](https://xarray-spatial.org/reference/_autosummary/xrspatial.multispectral.ndvi.html)."
14+
"We need something to write. To simulate a workload, let's load in a single [NAIP image](https://planetarycomputer.microsoft.com/dataset/naip#Example-Notebook) from the Planetary Computer's data catalog using [rioxarray](https://corteva.github.io/rioxarray/html/rioxarray.html) and compute the NDVI using [xrspatial](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.multispectral.ndvi.html)."
1515
]
1616
},
1717
{

tutorials/coregistration.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"- Reprojecting and resampling [Sentinel-2 Level-2A](https://planetarycomputer.microsoft.com/dataset/sentinel-2-l2a) and [Landsat Collection 2 Level-2\n",
1616
"](https://planetarycomputer.microsoft.com/dataset/landsat-c2-l2) data to use a common resolution and coordinate system\n",
1717
"- Croping to the region of interest and aligning Sentinel and Landsat data into a single dataset\n",
18-
"- Calculating and comparing NDVIs with [xarray-spatial](https://xarray-spatial.org/index.html)"
18+
"- Calculating and comparing NDVIs with [xarray-spatial](https://xarray-spatial.readthedocs.io/en/latest/index.html)"
1919
]
2020
},
2121
{
@@ -306,7 +306,7 @@
306306
"id": "226cfa5d",
307307
"metadata": {},
308308
"source": [
309-
"To display a preview of the two data sets, use the [xrspatial.multispectral.true_color](https://xarray-spatial.org/reference/_autosummary/xrspatial.multispectral.true_color.html) function with `sentinel_data` and `landsat_data`."
309+
"To display a preview of the two data sets, use the [xrspatial.multispectral.true_color](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.multispectral.true_color.html) function with `sentinel_data` and `landsat_data`."
310310
]
311311
},
312312
{
@@ -958,7 +958,7 @@
958958
"source": [
959959
"### Wrap-up: compare NDVI\n",
960960
"\n",
961-
"Now let's compute NDVI on the coregistered dataset using [xrspatial.multispectral.ndvi](https://xarray-spatial.org/reference/_autosummary/xrspatial.multispectral.ndvi.html). We'll use the near-infrared band from Sentinel and the red band from Landsat. Because the original datasets both contain Red and near-infrared bands, we can compare the NDVI computed on the co-registered datasets to the NDVIs computed on the original datasets.\n",
961+
"Now let's compute NDVI on the coregistered dataset using [xrspatial.multispectral.ndvi](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.multispectral.ndvi.html). We'll use the near-infrared band from Sentinel and the red band from Landsat. Because the original datasets both contain Red and near-infrared bands, we can compare the NDVI computed on the co-registered datasets to the NDVIs computed on the original datasets.\n",
962962
"\n",
963963
"First, compute the NVDIs for `sentinel_ndvi` and `landsat_ndvi`."
964964
]

tutorials/local-tools.ipynb

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"id": "ea55ffed",
2727
"metadata": {},
2828
"source": [
29-
"In this notebook, we'll demonstrate how to use the [Xarray-spatial](http://xarray-spatial.org/) local tools functions supported by [Numpy](https://numpy.org/). The spatial functions available are:\n",
29+
"In this notebook, we'll demonstrate how to use the [Xarray-spatial](http://xarray-spatial.readthedocs.io/en/latest/index.html) local tools functions supported by [Numpy](https://numpy.org/). The spatial functions available are:\n",
3030
"- [Cell Statistics](#Cell-Statistics)\n",
3131
"- [Combine](#Combine)\n",
3232
"- [Lesser Frequency](#Lesser-Frequency)\n",
@@ -143,7 +143,7 @@
143143
"id": "01ab159c",
144144
"metadata": {},
145145
"source": [
146-
"[`xrspatial.local.cell_stats`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.cell_stats.html) calculates statistics from a raster dataset on a cell-by-cell basis."
146+
"[`xrspatial.local.cell_stats`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.cell_stats.html) calculates statistics from a raster dataset on a cell-by-cell basis."
147147
]
148148
},
149149
{
@@ -211,7 +211,7 @@
211211
"id": "87c34a83",
212212
"metadata": {},
213213
"source": [
214-
"[`xrspatial.local.combine`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.combine.html) combines multiple arrays from a raster dataset, assigning a unique output value to each unique combination of raster values."
214+
"[`xrspatial.local.combine`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.combine.html) combines multiple arrays from a raster dataset, assigning a unique output value to each unique combination of raster values."
215215
]
216216
},
217217
{
@@ -261,7 +261,7 @@
261261
"id": "4f6da50e",
262262
"metadata": {},
263263
"source": [
264-
"[`xrspatial.local.lesser_frequency`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.lesser_frequency.html) calculates, given a raster dataset, the number of times the data variables values are lower than the values of a given reference data variable on a cell-by-cell basis."
264+
"[`xrspatial.local.lesser_frequency`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.lesser_frequency.html) calculates, given a raster dataset, the number of times the data variables values are lower than the values of a given reference data variable on a cell-by-cell basis."
265265
]
266266
},
267267
{
@@ -313,7 +313,7 @@
313313
"id": "intelligent-philadelphia",
314314
"metadata": {},
315315
"source": [
316-
"[`xrspatial.local.equal_frequency`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.equal_frequency.html) calculates, given a raster dataset, the number of times the data variables values are equal than the values of a given reference data variable on a cell-by-cell basis."
316+
"[`xrspatial.local.equal_frequency`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.equal_frequency.html) calculates, given a raster dataset, the number of times the data variables values are equal than the values of a given reference data variable on a cell-by-cell basis."
317317
]
318318
},
319319
{
@@ -365,7 +365,7 @@
365365
"id": "vocational-inside",
366366
"metadata": {},
367367
"source": [
368-
"[`xrspatial.local.greater_frequency`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.greater_frequency.html) calculates, given a raster dataset, the number of times the data variables values are greater than the values of a given reference data variable on a cell-by-cell basis."
368+
"[`xrspatial.local.greater_frequency`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.greater_frequency.html) calculates, given a raster dataset, the number of times the data variables values are greater than the values of a given reference data variable on a cell-by-cell basis."
369369
]
370370
},
371371
{
@@ -417,7 +417,7 @@
417417
"id": "8d7235ec",
418418
"metadata": {},
419419
"source": [
420-
"[`xrspatial.local.lowest_position`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.lowest_position.html) calculates the data variable index of the lowest value on a cell-by-cell basis."
420+
"[`xrspatial.local.lowest_position`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.lowest_position.html) calculates the data variable index of the lowest value on a cell-by-cell basis."
421421
]
422422
},
423423
{
@@ -468,7 +468,7 @@
468468
"id": "a17c6e93",
469469
"metadata": {},
470470
"source": [
471-
"[`xrspatial.local.highest_position`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.highest_position.html) calculates the data variable index of the highest value on a cell-by-cell basis."
471+
"[`xrspatial.local.highest_position`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.highest_position.html) calculates the data variable index of the highest value on a cell-by-cell basis."
472472
]
473473
},
474474
{
@@ -519,7 +519,7 @@
519519
"id": "e5408cea",
520520
"metadata": {},
521521
"source": [
522-
"[`xrspatial.local.popularity`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.popularity.html) calculates the number of occurrences of each value of a raster dataset, on a cell-by-cell basis. The output value is assigned based on the reference data variable nth most popular."
522+
"[`xrspatial.local.popularity`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.popularity.html) calculates the number of occurrences of each value of a raster dataset, on a cell-by-cell basis. The output value is assigned based on the reference data variable nth most popular."
523523
]
524524
},
525525
{
@@ -572,7 +572,7 @@
572572
"id": "385dac65",
573573
"metadata": {},
574574
"source": [
575-
"[`xrspatial.local.rank`](https://xarray-spatial.org/reference/_autosummary/xrspatial.local.rank.html) calculates the rank of each value of a raster dataset, on a cell-by-cell basis. The output value is assigned based on the rank of the reference data variable rank."
575+
"[`xrspatial.local.rank`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.local.rank.html) calculates the rank of each value of a raster dataset, on a cell-by-cell basis. The output value is assigned based on the rank of the reference data variable rank."
576576
]
577577
},
578578
{

tutorials/ndvi_hotspots.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"- Calculate focal statistics of the values within a specified focal neighborhood for each pixel in an input data array\n",
1616
"- Identify hot and cold spots in a image, neighborhoods that are significantly different from the rest of the image\n",
1717
"\n",
18-
"The focus of this notebook is to analyse information for each pixel based on its focal neighborhood kernel. The [xrspatial.focal](https://xarray-spatial.org/user_guide/focal.html) module from `xarray-spatial` provides a set of analysis tools performing neighborhood operations that will be used through this tutorial."
18+
"The focus of this notebook is to analyse information for each pixel based on its focal neighborhood kernel. The [xrspatial.focal](https://xarray-spatial.readthedocs.io/en/latest/user_guide/focal.html) module from `xarray-spatial` provides a set of analysis tools performing neighborhood operations that will be used through this tutorial."
1919
]
2020
},
2121
{
@@ -740,7 +740,7 @@
740740
"source": [
741741
"### True color\n",
742742
"\n",
743-
"Let's see how the data actually looks by visualizing them with `true_color` function from [xrspatial.multispectral](https://xarray-spatial.org/reference/multispectral.html). To hide the label for x and y axes from sub-plots, we can update `rcParams` for `matplotlib.pyplot` as below:"
743+
"Let's see how the data actually looks by visualizing them with `true_color` function from [xrspatial.multispectral](https://xarray-spatial.readthedocs.io/en/latest/reference/multispectral.html). To hide the label for x and y axes from sub-plots, we can update `rcParams` for `matplotlib.pyplot` as below:"
744744
]
745745
},
746746
{
@@ -831,7 +831,7 @@
831831
"source": [
832832
"### NDVI\n",
833833
"\n",
834-
"NDVI can be calculated with [xarray-spatial](https://xarray-spatial.org/reference/_autosummary/xrspatial.multispectral.ndvi.html). We'll compute the NDVI for each year's image."
834+
"NDVI can be calculated with [xarray-spatial](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.multispectral.ndvi.html). We'll compute the NDVI for each year's image."
835835
]
836836
},
837837
{
@@ -868,7 +868,7 @@
868868
"source": [
869869
"### Smoothing Images with Focal Mean\n",
870870
"\n",
871-
"[`focal.mean`](https://xarray-spatial.org/reference/_autosummary/xrspatial.focal.mean.html) can be used to smooth or reduce noises in an image by a mean reduction to each 3x3 window in an image."
871+
"[`focal.mean`](https://xarray-spatial.readthedocs.io/en/latest/reference/_autosummary/xrspatial.focal.mean.html) can be used to smooth or reduce noises in an image by a mean reduction to each 3x3 window in an image."
872872
]
873873
},
874874
{
@@ -905,7 +905,7 @@
905905
"source": [
906906
"### Focal statistics\n",
907907
"\n",
908-
"In this step, we calculate [focal statistics](https://xarray-spatial.org/user_guide/focal.html#) using a circular kernel for the NDVI data arrays computed above. By default, seven statistics are computed:\n",
908+
"In this step, we calculate [focal statistics](https://xarray-spatial.readthedocs.io/en/latest/user_guide/focal.html#) using a circular kernel for the NDVI data arrays computed above. By default, seven statistics are computed:\n",
909909
"\n",
910910
"1. Mean\n",
911911
"2. Max\n",
@@ -1234,7 +1234,7 @@
12341234
"\n",
12351235
"### Next steps\n",
12361236
"\n",
1237-
"To find out more about xarray-spatial focal statistics and other toolsets provided by the library, please visit: https://xarray-spatial.org/index.html"
1237+
"To find out more about xarray-spatial focal statistics and other toolsets provided by the library, please visit: https://xarray-spatial.readthedocs.io/en/latest/index.html"
12381238
]
12391239
}
12401240
],

0 commit comments

Comments
 (0)