Skip to main content

Python tools for Cassini UVIS data

Project description

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.

Project details


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.1.tar.gz (35.3 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.1-py3-none-any.whl (34.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyuvis-0.9.1.tar.gz
Algorithm Hash digest
SHA256 747c24d77906d332310e57c45c30f51057ed452356e06d56c42a9eff0531ecb2
MD5 06d9e95a5923c048791833a3f863aba0
BLAKE2b-256 57e8381da2e86a9312001d6295b1789e30313e4d373b7cb575a624528117f347

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyuvis-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 875e3fdf861aa743cfed0165314d1e153787068a076b7f2baee50c11e9d261ee
MD5 f2aa000603ca1c8c8c031749d9fae3cb
BLAKE2b-256 fb6499a3086919f644b0be190a62a39f50c1d6f6b0633b7f57773a59f049ff8b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page