cubevis is a visualization toolkit for radio astronomy image and visibility data, built on Bokeh for the front-end and CASA for the processing backend. Python and CASA drive image/data access while a generated JavaScript interface provides an interactive control front-end, usable from JupyterLab, Google Colab, or plain Python scripts.
cubevis currently provides two applications:
Interactive Clean (iclean) - released. Visually observe and control CASA’s image reconstruction (tclean/deconvolve). See Interactive Clean below.
Visibility Plotter (visplot) - in development. Interactive visibility-domain plotting supporting both legacy CASA Measurement Sets (MSv2) and the newer AstroVIPER Measurement Set v4 format, via xarray-ms. visplot has no stable end-user API yet; it is not ready for general use.
This is a beta-release quality package.
Installation
cubevis uses optional extras so that installing it doesn’t pull in more than a given application needs. The extras you want depend on which application you’re using:
# Interactive Clean (released)
pip install cubevis[iclean]
# Visibility Plotter (in development - no stable API yet)
pip install cubevis[visplot]
# add Jupyter/anywidget support for either, if working in a notebook
pip install cubevis[iclean,notebook]
iclean depends on CASA6’s casatasks. visplot depends on xarray-ms / arcae for both its MSv2 and MSv4 backends, so it does not require casatasks even when working with legacy Measurement Sets.
iclean and visplot are convenience aliases for the underlying casa6 and xarray extras, respectively; those backend-named extras are also available directly for anyone assembling a custom environment. Installing casa6 and xarray together in the same plain pip environment is not currently supported, since the two backends can require mutually incompatible native library versions (notably libprotobuf) that pip has no mechanism to reconcile - use a pixi or conda environment for combined installs.
Interactive Clean
Interactive clean is the primary application provided by this package. It allows for visualizally observing and controlling the image reconstruction performed by CASA. The primary CASA tasks used to perform the image reconstruction are tclean and deconvolve.
Usage
This example provide a summary of how to use interactive clean from Python:
from cubevis import iclean
iclean( vis='refim_twopoints_twochan.ms', imagename='test',
imsize=100, cell='8.0arcsec',
phasecenter="J2000 19:59:28.500 +40.44.01.50",
outlierfile='test_outlier.txt',
niter=50, cycleniter=10, deconvolver='hogbom',
specmode='mfs', spw='0:0' )
For this sample, the test measurement set is available, while the outlierfile would look something like:
imagename=try_multifield_1 imsize=[80,80] cell=[8.0arcsec,8.0arcsec] phasecenter=J2000 19:58:41.095 +40.56.01.043
Visibility Plotter
visplot is under active development and does not yet have a stable end-user API - it isn’t ready for general use, and this README will be updated with usage instructions once one is available.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file cubevis-1.0.76.tar.gz.
File metadata
- Download URL: cubevis-1.0.76.tar.gz
- Upload date:
- Size: 9.6 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3a4a430ce811b4dab3f359c8197c1c03e6e8df0de05338ed28ac0fdde78af068
|
|
| MD5 |
353ace56a1ba0fb208dc816e7f402896
|
|
| BLAKE2b-256 |
862c5dab3efdd13736a9c58d7ac2dd2cf1ab6c315c5a3ae4f8bd3763d925dc0c
|
Provenance
The following attestation bundles were made for cubevis-1.0.76.tar.gz:
Publisher:
publish.yml on casangi/cubevis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cubevis-1.0.76.tar.gz -
Subject digest:
3a4a430ce811b4dab3f359c8197c1c03e6e8df0de05338ed28ac0fdde78af068 - Sigstore transparency entry: 2439829539
- Sigstore integration time:
-
Permalink:
casangi/cubevis@02c44593cad410422bc4212619925fcb895eea19 -
Branch / Tag:
refs/tags/v1.0.76 - Owner: https://github.com/casangi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@02c44593cad410422bc4212619925fcb895eea19 -
Trigger Event:
create
-
Statement type:
File details
Details for the file cubevis-1.0.76-py3-none-any.whl.
File metadata
- Download URL: cubevis-1.0.76-py3-none-any.whl
- Upload date:
- Size: 1.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3df4ae024135c721ddbcc140309c3a659168cc38c7427085bfcba30a086ecf3
|
|
| MD5 |
39ffc795e6247c7be6fd12cf67023aea
|
|
| BLAKE2b-256 |
1cccf98291cbf22529fd7057fe5f557a9847053109941d565dca3f7f4289a119
|
Provenance
The following attestation bundles were made for cubevis-1.0.76-py3-none-any.whl:
Publisher:
publish.yml on casangi/cubevis
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
cubevis-1.0.76-py3-none-any.whl -
Subject digest:
f3df4ae024135c721ddbcc140309c3a659168cc38c7427085bfcba30a086ecf3 - Sigstore transparency entry: 2439830009
- Sigstore integration time:
-
Permalink:
casangi/cubevis@02c44593cad410422bc4212619925fcb895eea19 -
Branch / Tag:
refs/tags/v1.0.76 - Owner: https://github.com/casangi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@02c44593cad410422bc4212619925fcb895eea19 -
Trigger Event:
create
-
Statement type: