The fatiando package has been deprecated. Please check out the new tools in the Fatiando a Terra website: www.fatiando.org

GravMag: Interactive 2D forward modeling with polygonsΒΆ

Download source code: gravmag_2d_polygon_interactive.py

"""
GravMag: Interactive 2D forward modeling with polygons
"""
import numpy
from fatiando.gravmag.interactive import Moulder

area = (0, 100000, 0, 5000)
xp = numpy.arange(0, 100000, 1000)
zp = numpy.zeros_like(xp)
app = Moulder(area, xp, zp)
app.run()