This version is no longer supported
Please use the latest version of pyvims (
>1.0
) in the main branch.
Python package to manipulate the Cassini VIMS data.
Add conda-forge channel:
$ conda config --add channels conda-forge
Install pyvims
package:
$ conda install -c seignovert pyvims
This module use OpenCV
, GDAL
and Basemap
libraries. Depending on your operating system you need to install them first. In python you should be able to do:
>>> import cv2
>>> import osgeo
>>> from mpl_toolkits.basemap import Basemap
Then you can install pyvims
$ pip install pyvims
A docker image is available on the docker hub.
docker run --rm -it \
-p 8888:8888 \
-v $VIMS_DATA:/home/nbuser/data \
-v $CASSINI_KERNELS:/home/nbuser/kernels \
seignovert/pyvims
Download test files (ISIS3 cubes of 1487096932_1
):
$ wget https://vims.univ-nantes.fr/cube/C1487096932_1_vis.cub
$ wget https://vims.univ-nantes.fr/cube/C1487096932_1_ir.cub
$ wget https://vims.univ-nantes.fr/cube/N1487096932_1_vis.cub
$ wget https://vims.univ-nantes.fr/cube/N1487096932_1_ir.cub
To use, simply do:
>>> from pyvims import VIMS
>>> cub = VIMS('1487096932_1')
>>> cub
VIMS cube: 1487096932_1 [ISIS3]
>>> cub.time
'2005-02-14T18:05:00.976500'
>>> cub.target
u'TITAN'
>>> cub.NS, cub.NL
(42, 42)
For more details, take a look to the static Jupyter NoteBook where more examples of usage are provided. You can also try this live demo on Binder.
This project is not supported or endorsed by either JPL, NAIF or NASA. The code is provided "as is", use at your own risk.