Python tools for Cassini UVIS data

Cassini, UVIS, Data, Tools, planetary-science, python
pip install pyuvis==0.7.4


Build Status


Python tools for Cassini UVIS data

See how the example notebook looks like:


  • pandas
  • xarray (for NetCDF files)


git clone
cd pyuvis

Then if you want to keep coding in it (engineering install):

pip install -e .

to make any changes immediately available to your Python environment. Or:

pip install .

if you want a more stable install that only changes behaviour when you execute another install.

QUBE reader

Basic usage:

from pyuvis import QUBE
import matplotlib.pyplot as plt

fname = path_to_UVIS_file
qube = QUBE(fname)
print qube.shape # shortcut to
# often the line range in the data is reduced and the previews are
# averages over the first axis (often) not always.

The fname can either be to the .LBL or .DAT file, as long as both are next to each other in the same folder.

SAV reader

basic usage:

from pyuvis.readers import read_idlsav_file

data = read_idlsav_file(fname)

The reader determines which is the biggest structure inside the SAV file and return only that. Print-out for that search is provided. Returned data file is a pandas.Dataframe.

HSP reader

from import HSP

# default time delta is 1 ms, one can give other values here if known:
hsp = HSP(fname[, freq='1ms'])

# time has a real time object now, parsed from timestr
print(hsp.timestr, hsp.start_time)

# hsp.series is a pandas TimeSeries with correctly indexed times

# resample and plot in one go:

FUV reader

Currently just opening via xarray and attribute ds carries the xarray dataset. And data provides the xarray DataArray called window_0, which seems to carry all the data.