[yt-users] Visualising spectral cube data in yt

Francisco Ocaña González albireo3000 at gmail.com
Wed Feb 20 02:09:05 PST 2013


Dear Eli,

I found a post about 3D data in YT ,
http://astrobiased.com/3d-data-vis-in-yt.html , very interesting. I am
working with spectral cubes from PMAS Spectrograph (at 3.5m CAHA
telescope). Thus, I tried to use it. I am newbie with python, but I was
able to install everything :-)

However I get an error message when loading the data into yt's data
structure (script http://paste.yt-project.org/show/3182/ ):

ERROR: ValueError: total size of new array must be unchanged
[yt.frontends.stream.data_structures]
astropy: [ERROR    ] 2013-02-20 10:46:53,395 ValueError: total size of new
array must be unchanged
Traceback (most recent call last):
  File "3d_viewer.py", line 9, in <module>
    pf = load_uniform_grid(data, cube.shape, 9e16)
  File
"/home/fog/YT/yt-x86_64/src/yt-hg/yt/frontends/stream/data_structures.py",
line 490, in load_uniform_grid
    grid_dimensions = domain_dimensions.reshape(nprocs,3).astype("int32")
ValueError: total size of new array must be unchanged


I have uploaded the cube to: http://bolidox.fis.ucm.es/~alex/YT_cube/ .
FITS seems to be quite ok according to the FITS validator. And the 'cube'
object is well loaded, I guess.

Have you had this problem? Cheers,

Paco Ocaña
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130220/01de5fcd/attachment.htm>


More information about the yt-users mailing list