Planetary image parser
Project description
Planetary image parser
Free software: BSD license
Documentation: https://planetaryimage.readthedocs.org.
Features
Reads in PDS Images as NumPy arrays.
Reads in Isis Cube Files as NumPy arrays.
Quickstart
Create and activate a virtual environment:
virtualenv venv source venv/bin/activate
Upgrade pip, then pip install the package and IPython notebook and matplotlib to help display the image:
pip install -U pip pip install planetaryimage matplotlib ipython[notebook]
This quick example will show how to open and display a Pancam PDS image using this module. First, grab a sample image:
wget http://pds-imaging.jpl.nasa.gov/data/mer/opportunity/mer1po_0xxx/data/sol2840/edr/1p380322615effbr43p2443l1m1.img
Now run python:
$ ipython notebook
Create a new notebook in your web browser and then paste the following code into a cell and execute it by pressing Shift+ENTER. This will load and display the image:
%matplotlib inline import matplotlib.pyplot as plt from planetaryimage import PDS3Image image = PDS3Image.open('1p380322615effbr43p2443l1m1.img') plt.imshow(image.data, cmap='gray')
History
0.1.0 (2015-06-03)
First release on PyPI. Basic PDS and Isis Cube File parsing works.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for planetaryimage-0.1.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db5983d495370c0ea8eac5fc78835ce1abde61066ebc20b0cc9d9bb83e472274 |
|
MD5 | c9032781b01d1cd627b2ab1233cab2d8 |
|
BLAKE2b-256 | 42996ca7145e022d5c8496144b415585b81fbda037813672a2ab906aad620afd |