grav2d-cube : Forward modeling of gravitational field of cubes under the Cartesian coordinates.

11 Nov 2018

Compile

For Mac OS users, install gcc using Homebrew by

brew install gcc

For Linux users, install gcc by

apt-get install gcc

then go the directory of the program and make the program. Then export the directory to your $PATH.

Usage

grav2d-cube -r<x-start>/<x-step>/<x-end>/<y-start>/<y-step>/<y-end>/<elevation>|<filename> -c<x-cen>/<y-cen>/<z-cen>/<dx>/<dy>/<dz>/<density>|<filename> -tgravity|gx|gy|gz -h > out-file

Options

Examples

grav2d-cube -r 0/10/1000/0/10/1000/10 -c 500/500/200/200/100/100/1.0 -t gravity > one-cube-grav.txt
grav2d-cube -r obs-position.txt -c cube-para.txt > cubes-gravity.txt