glue-viz / glue

Linked Data Visualizations Across Multiple Files
http://glueviz.org
Other
738 stars 153 forks source link

glueviz doesn't recognize images with RA, Dec, Freq, Stokes as cubes #205

Closed aakepley closed 10 years ago

aakepley commented 10 years ago

CASA exports cubes as RA, Dec, Freq, and Stokes, which confuses glueviz. Exporting the cube without the stokes axis (dropstokes=True in exportfits) fixes the problem, but it would be good to have a fix on glueviz's end because CASA is the default calibration software for both ALMA and the VLA.

ChrisBeaumont commented 10 years ago

Ahh I remember this about ALMA (and I think some SMA?) files. Just to confirm, do you hit an error when loading the file, or when trying to open the image viewer with it? Can you point me to an example file to test on?

aakepley commented 10 years ago

The file loads in okay, but I'm unable to display it as an image. I don't know enough about the SMA to know if it has a similar issue.

Here's an example file: https://dl.dropboxusercontent.com/u/61033795/ic342_h57a_v2_cont_if1_final_v1.image.fits

Amanda

ChrisBeaumont commented 10 years ago

Thanks for the sample file. The pull request at #206 provides two enhancements that should make working with ALMA cubes better:

1) The image viewer can now work with cubes with more than 3 dimensions (it uses an interface similar to DS9 for selecting a 2D slice through an ND cube) 2) There is a specialized CASA image loader (which you can select from the "file type" dropdown when opening an image), that explicitly loads (PPVStokes) images as multi-attribute cubes -- one attribute for each stokes parameter. This makes it easier to intercompare histograms of the different stokes parameters.

I will give you an update when a Mac app with these features is available

ChrisBeaumont commented 10 years ago

206 is now merged, and at least addresses the original problem of opening an image viewer for 4D datasets. Feel free to open new issues if you think of other features for this kind of data

aakepley commented 10 years ago

Thanks, Chris! I tried it out with some other images I had sitting round and it worked fine.