/unmap

Extract data from color-mapped images

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

UNMAP

Extracts arrays of values from colormapped figures.

Usage

Interactive GUI

usage: unmap [-h] [-o OUTFILE] infile

positional arguments:
  infile                Image to process.

optional arguments:
  -h, --help            show this help message and exit
  -o, --outfile OUTFILE Write xyz values to file.

* Select ends of color bar with mouse

From Python

import unmap as um
img = um.plt.imread('figure.png')
arr = um.unmap(img)

Dependencies

* Python (>= 2.7)
* Matplotlib
* Numpy

Unmapped figure example Adapted from Gao et al., Crust and Lithosphere Structure of the Northwestern U.S. with Ambient Noise Tomography.