Perform interpolation on surfaces to generate topographic-style maps.
Project description
topography :earth_americas:
Contains different approaches to modeling terrain and maps in python
Requirements
numpy
matplotlib
Usage
Install
pip install topography
Implementation
# read in data from csv file in form X, Y, Z
data = Map.readFromCsv("filename.csv")
M = Map(data)
# show plot and ouputs interpolated values to file
M.idw(filename="map_output_idw", showWhenDone=True)
Features
Inverse Distance Weighting
A given point P(x, y)
is determined by the values of its neighbors, inversely to the distance of each neighbor.
This ensures a P
is more dependent on nearer points.
- Weighting function
W(x, y)
of the formexp(-d(x, y))
Nearest Neighbor (in progress)
P(x, y)
is determined only by the value of its nearest neighbor.
Spline (in progress)
A 2D-spline is fit to known points, where unknown points P(x, y)
can be determined.
credit to arcGIS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
topography-0.0.2.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for topography-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb89f14a449bc47a76864511791035647adcb9b7d7805a7a900d5607271cd56c |
|
MD5 | e022fb92903689aad3ddb3cc6f44eea5 |
|
BLAKE2b-256 | 9ca43635f838633979a9f980718e83e0e1cfb5f3352435d1c466d392783b0713 |