Skip to content

urvashirau/Interactive-Imaging-with-CASA6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Interactive Imaging with CASA6

Experiments using dash/plotly with casa6 to implement interactive mask drawing

(1) Example_no_Casa6 : An example of a dash application that allows interactive mask drawing and iteration control. This uses a fake image reconstruction class that operates with noise and a few bright spots.

(2) Casa6_PySynthesisImager : An example using the casa6 PySynthesisImager class. Mask drawing is enabled but summary plots are more coarse-grained than above and iteration control is limited.

(3) Casa6_synthesis_tools : An example using the synthesisXXXX tools. This includes mask drawing (box and lasso) as well as iteration control similar to the example in (1).

DATA : Within NRAO, copy over : /home/casa/data/trunk/regression/unittest/clean/refimager/refim_point.ms as point.ms in your local directory.

To run

Install python3 and casa6

export PPY=`which python3`
virtualenv -p $PPY --setuptools ./local_python3
./local_python3/bin/pip install --upgrade pip
./local_python3/bin/pip install numpy matplotlib ipython dash scikit-image
./local_python3/bin/pip install --extra-index-url https://casa-pip.nrao.edu/repository/pypi-group/simple casatools
./local_python3/bin/pip install --extra-index-url https://casa-pip.nrao.edu/repository/pypi-group/simple casatasks

Run the app

./local_python3/bin/python Casa6_Interactive_Imager_Tools_App.py

Point a browser tab to http://127.0.0.1:8050

Example

An example Screenshot from the Casa6_synthesis_tools version is shown below. A single point source (the above MS) is imaged with user-controlled values of 'cycleniter' before each major cycle and an interactively-drawn mask. Mask-drawing allows box-select as well as lasso-select for arbitrary shapes

Demo

Note : After running the app, if the server is stopped from the command line but the browser window is still open, you may run into this known dash bug : plotly/dash#920 . The solution for now is to close the browser tab.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages