Skip to content

Commit a989a54

Browse files
authored
User guide fixes (#665)
* DOC: Fix avalanche risk link * DOC: Typo * FIX: Path in Zonal user guide - Fix coordinates to be of the same range as terrain - Clearer visualization * Scale coordinates, strengthen line in visulizaion
1 parent c6ca95a commit a989a54

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

examples/user_guide/1_Surface.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@
157157
"In geography, *slope* is the amount of change in elevation for an area in a terrain relative to its surroundings.\n",
158158
"\n",
159159
"Xarray-spatial's slope function returns the slope at each cell in degrees.\n",
160-
"Because Xarray-spatial is integrated with Xarray and Numpy, we can apply standard Numpy filters. For example, we can highlight only slopes in the [avalanche risk](http://wenatcheeoutdoors.org/2016/04/07/avalanche-abcs-for-snowshoers/) range of 25 - 50 degrees. (Note the use of risky.data since these are DataArrays).\n",
160+
"Because Xarray-spatial is integrated with Xarray and Numpy, we can apply standard Numpy filters. For example, we can highlight only slopes in the [avalanche risk](https://www.gravityprotection.co.uk/blog/slope-steepness-avalanche-risk.html) range of 25 - 50 degrees. (Note the use of risky.data since these are DataArrays).\n",
161161
"Stacking the resulting raster with the hillshaded and plain terrain ones from above gives an image with areas of avalanche risk neatly highlighted."
162162
]
163163
},

examples/user_guide/2_Proximity.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"# Xarray-spatial\n",
88
"### User Guide: Proximity (Distance) tools\n",
99
"-----\n",
10-
"The Proximity tools let you perform analyses using one of three distance metrics: Euclidean (straight-line), Manhattan (with path obstacles, i.e., taxicab distance), and Great Cricle (distance on the surface of a sphere).\n",
10+
"The Proximity tools let you perform analyses using one of three distance metrics: Euclidean (straight-line), Manhattan (with path obstacles, i.e., taxicab distance), and Great Circle (distance on the surface of a sphere).\n",
1111
"\n",
1212
"[Proximity Distance](#Proximity-Distance): Calculates the distance to the nearest of a set of target - or source - points for each point in the input raster.\n",
1313
"\n",

examples/user_guide/3_Zonal.ipynb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
"H = 600\n",
6565
"\n",
6666
"template_terrain = xr.DataArray(np.zeros((H, W)))\n",
67-
"x_range=(-20e6, 20e6)\n",
68-
"y_range=(-20e6, 20e6)\n",
67+
"x_range=(-20, 20)\n",
68+
"y_range=(-20, 20)\n",
6969
"\n",
7070
"terrain = generate_terrain(template_terrain, x_range=x_range, y_range=y_range)\n",
7171
"\n",
@@ -138,7 +138,7 @@
138138
"cvs = ds.Canvas(plot_width=W, plot_height=H, x_range=x_range, y_range=y_range)\n",
139139
"\n",
140140
"zones_agg = cvs.line(zone_df, 'x', 'y', ds.sum('trail_segement_id'))\n",
141-
"zones_shaded = dynspread(shade(zones_agg, cmap=Set1), max_px=5)\n",
141+
"zones_shaded = dynspread(shade(zones_agg, cmap=Set1), max_px=5, threshold=1)\n",
142142
"\n",
143143
"stack(illuminated_shaded, terrain_shaded, zones_shaded)"
144144
]
@@ -195,7 +195,7 @@
195195
],
196196
"metadata": {
197197
"kernelspec": {
198-
"display_name": "Python 3",
198+
"display_name": "Python 3 (ipykernel)",
199199
"language": "python",
200200
"name": "python3"
201201
},
@@ -209,7 +209,7 @@
209209
"name": "python",
210210
"nbconvert_exporter": "python",
211211
"pygments_lexer": "ipython3",
212-
"version": "3.8.5"
212+
"version": "3.9.10"
213213
}
214214
},
215215
"nbformat": 4,

0 commit comments

Comments
 (0)