This repository was archived by the owner on Apr 20, 2026. It is now read-only.
Commit 3cae52c
committed
Remove dependency on scipy, numexpr
There were some hidden dependencies on scipy.ndimage and numexpr which
were not recorded in the documentation. This update removes those
dependencies, and replaces the calculation of the slope and aspect with
only numpy functions, based on numpy version 1.6 (which is the standard
packaged with ArcGIS 10.2).
Because of the way that the scipy.ndimage functions calculated the slope
(giving a slightly smoothed result), it was necessary to update the test
data sets. We chose this route to avoid the requirement of essentially
duplicating the scipy.ndimage.convolve2d code, using only Numpy.
Modifications were also made to the way the slope is calculated for cells
adjacent to nodata values. The updated approach gives a better
representation of the slope in these areas that is of a similar scale to
the neighbouring values.1 parent 6c10a79 commit 3cae52c
140 files changed
Lines changed: 225 additions & 886 deletions
File tree
- docs
- examples
- input/info
- output
- info
- tests
- test_data
- input/info
- output
- info
- reference
- expect_a_c
- expect_a_r
- expect_a
- expect_s_c
- expect_s_r
- expect_s
- expect_v_c
- info
- utilities
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
35 | 38 | | |
36 | 39 | | |
37 | 40 | | |
38 | | - | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
Binary file not shown.
0 commit comments