Undergrad How to use astronomical spectra?

  • Thread starter Thread starter yucheng
  • Start date Start date
  • Tags Tags
    Spectra
Click For 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
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.
 
Hi, I saw someone with an avatar on a different forum that turns out to be the sombrero galaxy. AI says, too distant to know much about, aside from billions of starts, potentially tons of planets, and a supermassive black hole in the center. I find that setup fascinating, despite knowing close to nothing about the universe. So I ask: could anyone point me in the direction of, or provide information about this galaxy? I do not trust AI beyond general information, and I like to go pretty...

Similar threads

Replies
7
Views
3K
  • · Replies 8 ·
Replies
8
Views
686
  • · Replies 18 ·
Replies
18
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
3
Views
1K
  • · Replies 6 ·
Replies
6
Views
5K