Skip to content
Extract data from color-mapped images
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
unmap.py
unmapped_example.png

README.md

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.

You can’t perform that action at this time.