-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME.txt
20 lines (14 loc) · 833 Bytes
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Contains a Hill Shading implementation for Matplotlib.
The hill_shade function can be found in the hillshade.py module. The intensity.py module contains
functions for calculating the intensity as it falls on a terrain/surface. The rest of the files is
for plotting demos.
This software is released under the MIT license. There is no installation procedure, just copy the
hillshade.py and intensity.py files into your code.
Matplotlib hill shading:
http://matplotlib.org/examples/pylab_examples/shading_example.html
Pegtop shading:
http://rnovitsky.blogspot.nl/2010/04/using-hillshade-image-as-intensity.html
TODO:
Make it work with NaNs and Masked arrays. It currently does not work with Nans since the
blending works based on RBG values where the 'is_bad' color will just be blended.
2015-05-22, Pepijn Kenter.