Extracts arrays of values from colormapped figures.
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
import unmap as um
img = um.plt.imread('figure.png')
arr = um.unmap(img)
* Python (>= 2.7)
* Matplotlib
* Numpy
Adapted from Gao et al., Crust and Lithosphere Structure of the Northwestern U.S. with Ambient Noise Tomography.