Skip to main content

Perform interpolation on surfaces to generate topographic-style maps.

Project description

topography :earth_americas:

Python 3.8 Build Status

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 form exp(-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


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)

Uploaded Source

Built Distribution

topography-0.0.2-py3-none-any.whl (6.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page