Skip to main content

Planetary image parser supporting

Project description

https://travis-ci.org/planetarypy/planetaryimage.svg?branch=master https://img.shields.io/pypi/v/planetaryimage.svg

NOTE This is Alpha quality software that is being actively developed, use at your own risk.

Planetary image parser

Features

  • Reads in PDS Images as NumPy arrays.

    • Supports GZIP and BZ2 compressed PDS Images.

    • Supports writing out PDS3 images.

  • Reads in Isis Cube Files as NumPy arrays.

Check out a few simple examples of opening and viewing PDS and Isis CubeFiles in an IPython notebook.

Quickstart

The example below will walk you through setting up a Python virtual environment and installing the necessary software as well as a few handy extras. It then downloads a sample Pancam PDS image, opens and displays that image in your web browser in an IPython Notebook. The example assumes you have Python, virtualenv, and pip installed on your system. If you don’t, don’t know what this means or aren’t thrilled by the opportunity to learn what this means, this software may be a little too immature for you to use at this point.

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 in an IPython Notebook (a browser window should pop up after entering the following command):

$ 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.image, cmap='gray')

See Usage for full documentation on how to use planetaryiamge.

History

0.5.0 (2016-04-13)

  • Added ability to generate PDS3Image objects from NumPy arrays.

0.4.1 (2016-03-26)

  • Fixes to saving PDS3 images files after modification of the data.

0.4.0 (2016-03-05)

  • Added basic support for saving PDS3 images.

0.3.0 (2015-09-29)

  • Added support for opening PDS images that are gzip or bz2 compressed.

0.2.0 (2015-06-17)

  • Improved support for float type PDS3 image types. Many types still not supported.

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

planetaryimage-0.5.0.tar.gz (89.8 kB view details)

Uploaded Source

Built Distribution

planetaryimage-0.5.0-py2.py3-none-any.whl (13.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file planetaryimage-0.5.0.tar.gz.

File metadata

File hashes

Hashes for planetaryimage-0.5.0.tar.gz
Algorithm Hash digest
SHA256 6b6af0d83147fe3fc4550ea753557010f01dd1bf905e060f7b942b3f16b38def
MD5 bec83672809801cea54a8e85209755de
BLAKE2b-256 b238eeb0cd2d1f5fa225ed700d7de2d67111cf449f2a32f0a26740186413fc15

See more details on using hashes here.

File details

Details for the file planetaryimage-0.5.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for planetaryimage-0.5.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 e222f42e53bb37b4e4b5a01718c32cde71aebfb47949ba621714a5af13c2364e
MD5 092e0ef2bb13ab760a8122a411b28595
BLAKE2b-256 41b81706e311a345591870f566d734d79d83d483c411a7425b65f53d8d6c6590

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page