Skip to main content

Planetary image parser

Project description

https://img.shields.io/travis/planetarypy/planetaryimage.svg https://img.shields.io/pypi/v/planetaryimage.svg

Planetary image parser

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.

Files for planetaryimage, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size planetaryimage-0.1.0-py2.py3-none-any.whl (9.5 kB) File type Wheel Python version 2.7 Upload date Hashes View
Filename, size planetaryimage-0.1.0.tar.gz (70.9 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page