Planetary image parser supporting
NOTE This is Alpha quality software that is being actively developed, use at your own risk.
Planetary image parser
- Free software: BSD license
- Documentation: https://planetaryimage.readthedocs.org.
- 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.
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:
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.
- Added ability to generate PDS3Image objects from NumPy arrays.
- Fixes to saving PDS3 images files after modification of the data.
- Added basic support for saving PDS3 images.
- Added support for opening PDS images that are gzip or bz2 compressed.
- Improved support for float type PDS3 image types. Many types still not supported.
- First release on PyPI. Basic PDS and Isis Cube File parsing works.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size planetaryimage-0.5.0-py2.py3-none-any.whl (13.5 kB)||File type Wheel||Python version 2.7||Upload date||Hashes View|
|Filename, size planetaryimage-0.5.0.tar.gz (89.8 kB)||File type Source||Python version None||Upload date||Hashes View|
Hashes for planetaryimage-0.5.0-py2.py3-none-any.whl