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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyuvis-0.9.2.tar.gz (36.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyuvis-0.9.2-py3-none-any.whl (34.2 kB view details)

Uploaded Python 3

File details

Details for the file pyuvis-0.9.2.tar.gz.

File metadata

  • Download URL: pyuvis-0.9.2.tar.gz
  • Upload date:
  • Size: 36.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for pyuvis-0.9.2.tar.gz
Algorithm Hash digest
SHA256 8a83d09122cc3e642d8e142ee43de6a7839d543500b9c97d7c9314f140e8ad08
MD5 17107493cf35268c3dd00d6b68dcc050
BLAKE2b-256 f7870657b0e835640f5bca6226955605c5e7ab853a5a89880d9647419e5aebd5

See more details on using hashes here.

File details

Details for the file pyuvis-0.9.2-py3-none-any.whl.

File metadata

  • Download URL: pyuvis-0.9.2-py3-none-any.whl
  • Upload date:
  • Size: 34.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for pyuvis-0.9.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9e0bf797a575b12feb9cd6a51d8d47f3b897b05fb08c750f5369b1e2959469db
MD5 e97da78ff9dae55e7af4417a3a2229d6
BLAKE2b-256 030ce61ea665a7f1f62cf990873144c067d2a1bd217791438a6761777994d38b

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9.2 This release

2 files

0.9.1

2 files

0.9.0

2 files

0.7.4

2 files

0.7.3

2 files

0.7.2

2 files

0.7.1

2 files

0.7.0

2 files

0.6.4

2 files

0.6.3

2 files

0.6.2

2 files

0.6.1

2 files

0.5.0

2 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