A script to read the beam information from a fits file using CASA.
The script manages the case where the fits file contains just one beam entry, or for some cubes for example where a beam is defined per channel. In the latter, the script returns the minimum, maximum and mean beam information.
- numpy
In CASA, one must first define the name of the .fits file like:
imagename = 'your_fits_file.fits'
Then, to run the script:
execfile("beams_script.py")