
Dear yt-user members, I am writing to you in connection with yt_astro_analysis package. I would like to use this package to visualize my ALMA data cubes to look into the volume structures from a 3-d point of view. However, I can not step forward since yt package is unhappy about the fits file header and raise error. I tried both directly with yt package and also transforming the fits file to yt object via SpectralCube package. I would appreciate if you comment on what the problem is. Here are the two efforts: loading the dataset via yt package: ds = yt.load(fits_file, suppress_astropy_warnings = True) ds.print_stats() the last line raises the error1, attached here. And loading the dataset via SpectralCube transformation: cube = SpectralCube.read(fits_file, format='fits') ytcube = cube.to_yt(spectral_factor=0.5) ds = ytcube.dataset this gives the error2, in the attachment. Thanks in advance, With regards, Roya -- Roya Hamedani Golshan PhD Candidate --------------------------------------------------------------------- I. Physikalisches Institut, Universität zu Köln, Zülpicher Strasse 77, 50937 Cologne, Germany Office: Gebäude (Building) 312, Room 1.10 Phone: +49 (0)2214703485 e-mail: rhgolshan@ph1.uni-koeln.de

Perhap a little off-topic, but I'm offering an alternative. I use a program "glnemo2" (https://ascl.net/1110.008). It has binaries for mac and linux, it has youtube videos for advanced usage (like movie making), but for a fits file it's pretty intuitive if you are used to ds9. The challenge with ALMA (or radio in general) is that some data are pencils or pizza boxes, and hard to view. glnemo2 can mess with the challenging dimension and make it look "squarish". glnemo2 was meant for point data (nbody/sph/...), but for a fits cube it assigns a particle for each voxel. Works ok, but keep that in mind. peter On 8/31/21 5:29 AM, Roya Hamedani Golshan wrote:
Dear yt-user members,
I am writing to you in connection with yt_astro_analysis package. I would like to use this package to visualize my ALMA data cubes to look into the volume structures from a 3-d point of view. However, I can not step forward since yt package is unhappy about the fits file header and raise error. I tried both directly with yt package and also transforming the fits file to yt object via SpectralCube package. I would appreciate if you comment on what the problem is. Here are the two efforts:
loading the dataset via yt package:
ds = yt.load(fits_file, suppress_astropy_warnings = True)
ds.print_stats()
the last line raises the error1, attached here.
And loading the dataset via SpectralCube transformation:
cube = SpectralCube.read(fits_file, format='fits')
ytcube = cube.to_yt(spectral_factor=0.5)
ds = ytcube.dataset
this gives the error2, in the attachment.
Thanks in advance,
With regards, Roya
_______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org https://mail.python.org/mailman3/lists/yt-users.python.org/ Member address: teuben@astro.umd.edu
participants (2)
-
Peter Teuben
-
Roya Hamedani Golshan