Skip to content

astrofrog/cube-viewer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is an experimental package to show isocontours of FITS spectral cubes using VTK and Qt. This can be used either as a standalone tool, or as a glue data viewer.

Dependencies

The following dependencies are required:

You can easily create a conda environment with these dependencies using:

conda create -n vtk-viewer-test python=2.7 --yes
source activate vtk-viewer-test
conda install pyqt vtk numpy astropy pip --yes
pip install spectral_cube palettable

Anaconda or Miniconda are highly recommended since VTK and PyQt4 are tricky dependencies to install.

Using as a standalone tool

To run:

cube-viewer filename [levels] [--stretch-spectral=value]

e.g.

cube-viewer ../L1448_13CO.fits 1 2 3 4 5 --stretch-spectral=2.

screenshot

Using as a Glue plugin

To use this as a glue plugin, simply install this package, and glue should recognize it at startup. However, note that this will not work with the Glue Mac app, but will work with glue when installed as a normal Python package. Note that you can install glue with conda:

conda install glueviz

At the moment, this plugin only supports viewing of the main data in a cube, and does not show subsets.

When you drag a 3-d dataset onto the main canvas, one of the viewers available will then be 'VTK Isosurfaces'.

About

Experiments with 3-d spectral cube viewing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages