Skip to main content

pyuvis

DOI

Python tools for working with Cassini UVIS data.

pyuvis provides readers, calibration utilities, and PDS-archive helpers for the Cassini UVIS (Ultraviolet Imaging Spectrograph) instrument. Data discovery and download are delegated to planetarypy; pyuvis focuses on opening the resulting files and turning them into useful arrays (numpy/xarray/pandas) you can analyse.

Install

pip install pyuvis

The package will pull in planetarypy (>= 0.21) as a dependency. On first use, planetarypy will ask you for a local data directory where it will cache PDS products it downloads on your behalf.

For development:

git clone https://github.com/Cassini-UVIS/pyuvis
cd pyuvis
pip install -e ".[dev,docs]"

Usage

from pyuvis import UVPDS

uv = UVPDS("FUV2005_172_03_35")  # downloads via planetarypy if not cached

uv.data            # numpy array of raw counts
uv.xarray          # xarray.DataArray with (spectral, spatial, samples) coords
uv.plot()          # quick hvplot

uv.calibrated      # calibrated data, if a calibration matrix is present

For browsing the PDS catalog of UVIS products by date / observation type / target:

from pyuvis.pds import CatalogFilter

cat = CatalogFilter("2002-198")    # accepts "yyyy-jjj" or "yyyy-mm-dd"
cat.doydate                         # -> "2002-198"
cat.ustare_stars                    # USTARE-type observations on STAR targets
cat.get_ustare_stars_date("FUV")    # filter to FUV stars on the given date

For more examples (HSP sensitivity tables, IDL .sav round-trips, Greg and Steffl calibrations, FUV/EUV statistics) see the rendered tutorials in the docs site below.

Documentation

Full documentation, tutorials, and API reference: https://cassini-uvis.github.io/pyuvis/

Citation

If you use pyuvis in your research, please cite via the metadata in CITATION.cff or the Zenodo DOI badge above.

Issues and contributing

Report issues at https://github.com/Cassini-UVIS/pyuvis/issues. Pull requests welcome — please run pytest and render the docs locally (make docs) before opening one.

License

Apache 2.0 — see LICENSE.

Release files for pyuvis 0.9.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyuvis 0.9.2
File Size Uploaded
pyuvis-0.9.2.tar.gz 36.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyuvis 0.9.2
File Interpreter ABI Platform
pyuvis-0.9.2-py3-none-any.whl Python 3 none any Details

Total release size: 70.2 kB

Release files / pyuvis-0.9.2.tar.gz

Download URL pyuvis-0.9.2.tar.gz
Size 36.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8a83d09122cc3e642d8e142ee43de6a7839d543500b9c97d7c9314f140e8ad08
BLAKE2b-256 checksum
How to use checksums
f7870657b0e835640f5bca6226955605c5e7ab853a5a89880d9647419e5aebd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release files / pyuvis-0.9.2-py3-none-any.whl

Download URL pyuvis-0.9.2-py3-none-any.whl
Size 34.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e0bf797a575b12feb9cd6a51d8d47f3b897b05fb08c750f5369b1e2959469db
BLAKE2b-256 checksum
How to use checksums
030ce61ea665a7f1f62cf990873144c067d2a1bd217791438a6761777994d38b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.2

Release history Release notifications | RSS feed

This release

0.9.2 This release

2 release files

0.9.1

2 release files

0.9.0

2 release files

0.7.4

2 release files

0.7.3

2 release files

0.7.2

2 release files

0.7.1

2 release files

0.7.0

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.5.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page