Metadata-Version: 2.1
Name: cubevis
Version: 1.0.5
Summary: visualization toolkit and apps for casa
License: LGPL
Author-email: Darrell Schiebel <darrell@schiebel.us>,Pam Harris <pharris@nrao.edu>
Requires-Python: >=3.11
Project-URL: Bug Tracker, https://github.com/casangi/cubevis/issues
Project-URL: Homepage, https://github.com/casangi/cubevis?tab=readme-ov-file#cubevis---visualization-tools-for-casa-images
Project-URL: Source, https://github.com/casangi/cubevis
Description-Content-Type: text/x-rst

cubevis - visualization tools for CASA images
=============================================

This is a **beta-release** quality package. This package relies on the
`CASA <https://casadocs.readthedocs.io/en/stable/index.html>`_ data processing system
for radio telescopes as the processing backend while providing control and visualization
using `Bokeh <https://bokeh.org/>`_.

Introduction
------------

These tools are primarily based on `Bokeh <https://bokeh.org/>`_. The GUIs use Python
and CASA to provide image access while a generated JavaScript interface provides a control
front-end.

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 <https://casadocs.readthedocs.io/en/stable/index.html>`_. The primary CASA
`tasks <https://casadocs.readthedocs.io/en/stable/api/casatasks.html>`_ used to
perform the image reconstruction are
`tclean <https://casadocs.readthedocs.io/en/stable/api/tt/casatasks.imaging.tclean.html>`_ and
`deconvolve <https://casadocs.readthedocs.io/en/stable/api/tt/casatasks.imaging.deconvolve.html>`_.

Usage
^^^^^

This example provide a summary of how to use interactive clean from Python:

.. code-block:: 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 <https://casa.nrao.edu/download/devel/casavis/data/refim_twopoints_twochan-ms.tar.gz>`_,
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


