I How to use astronomical spectra?

  • I
  • Thread starter Thread starter yucheng
  • Start date Start date
  • Tags Tags
    Spectra
AI Thread Summary
To use astronomical spectra, downloading the VOTable and FITS files is a common approach, but they may initially appear as single-dimensional arrays. The PNG file represents the spectrum graphically, while the ASCII file contains a table of flux versus wavelength. Plotting the ASCII values will recreate the PNG graph. For FITS files, using Python's astropy.io.fits library is recommended, as it provides the same flux versus wavelength data found in the ASCII file. Successful implementation of this method has been confirmed through shared code resources.
yucheng
Messages
232
Reaction score
57
TL;DR Summary
Trying to open a FITS file to view stellar spectra....
As suggested here

http://svocats.cab.inta-csic.es/miles/index.php?action=search

I tried downloading the VOTable, and FITS file (tried opening using Aladin and GIMP). However, when I open the file, I get a single line (I suppose the 2D spectra is contained in a single dimensional array?). Did I open it correctly? Is there any online guide for this? Is there a better way to view the spectra? Would you suggest some guides to using spectroscopic databases in general? Thanks!
 
Astronomy news on Phys.org
What exactly are you looking for? The PNG file is a graph of the spectrum. The ASCII file is a text file with a table of the flux as a function of wavelength. If you plot those values you will reproduce the PNG file. The FITS file has the same flux vs wavelength data in FITS format.
 
I typically open FITS files using the python astropy.io.fits code, but it will give you the same table of flux vs wavelength that is in the ACSII file.
 
This thread is dedicated to the beauty and awesomeness of our Universe. If you feel like it, please share video clips and photos (or nice animations) of space and objects in space in this thread. Your posts, clips and photos may by all means include scientific information; that does not make it less beautiful to me (n.b. the posts must of course comply with the PF guidelines, i.e. regarding science, only mainstream science is allowed, fringe/pseudoscience is not allowed). n.b. I start this...
Asteroid, Data - 1.2% risk of an impact on December 22, 2032. The estimated diameter is 55 m and an impact would likely release an energy of 8 megatons of TNT equivalent, although these numbers have a large uncertainty - it could also be 1 or 100 megatons. Currently the object has level 3 on the Torino scale, the second-highest ever (after Apophis) and only the third object to exceed level 1. Most likely it will miss, and if it hits then most likely it'll hit an ocean and be harmless, but...
Back
Top