What is the Difference Between 1D Spectra and 2D Spectra?

  • Context: Graduate 
  • Thread starter Thread starter randa177
  • Start date Start date
  • Tags Tags
    1d 2d Spectra
Click For Summary

Discussion Overview

The discussion revolves around the differences between 1D and 2D spectra, particularly in the context of astronomical data obtained from spectrographs. Participants explore definitions, processing methods, and software tools related to these spectra.

Discussion Character

  • Technical explanation
  • Meta-discussion

Main Points Raised

  • One participant inquires about the definitions of 1D and 2D spectra, indicating a lack of clear information in available documents.
  • Another participant explains that 2D spectra are generated on a CCD after exposure, where the object being observed typically spans multiple pixels. They describe the process of converting a 2D spectrum into a 1D spectrum by summing pixel counts.
  • Several participants share links to documents for further reading, although access issues arise with one of the links, prompting alternative suggestions.
  • There is a discussion about the software needed to read PostScript files, with participants suggesting programs like Ghostview and Ghostscript, and discussing file compression formats.
  • One participant mentions the complexity of processing Echelle spectra, which can show multiple orders of the same spectrum, and also refers to multi-object spectrographs that capture spectra from various objects simultaneously.
  • Questions arise regarding the installation and usage of Ghostview on Unix systems, with participants providing commands and troubleshooting tips.

Areas of Agreement / Disagreement

Participants generally agree on the basic definitions and processes related to 1D and 2D spectra, but there are unresolved questions regarding software usage and installation on Unix systems. The discussion includes multiple perspectives on the complexity of different types of 2D spectra.

Contextual Notes

Some participants express uncertainty about accessing specific file types and the software required to view them. There are also mentions of varying experiences with different software packages, indicating a lack of consensus on the best tools for processing spectra.

Who May Find This Useful

This discussion may be useful for individuals interested in astronomical data analysis, particularly those working with spectrographs and seeking to understand the differences between 1D and 2D spectra.

randa177
Messages
90
Reaction score
1
Hi,
I am wondering what is the difference between 1D spectra and 2D spectra? I see many documents talking about one of these 2, but I couldn't find any clear definition...
 
Astronomy news on Phys.org
2-d spectra are what you have on the CCD after taking an exposure with the spectrograph. The object that you are taking a spectrum of, say a star, typically extends over several pixels wide on the ccd chip. To get a 1-d spectrum, you sum up all the counts in the pixels in the 2-d profile in each row or column depending on how the chip is oriented, and subtract off any unwanted backgrounds at the same time. The end result is a 1-dimensional vector of total counts vs pixel number. For a quick and dirty 1-d spectrum, you can just plot across one of the rows/columns in the spectrum (again depending on the orientation of the ccd).

The gory details can be found in the link below. . .


http://iraf.noao.edu/iraf/ftp/iraf/docs/spect.ps.Z
 
AstroRoyale said:
2-d spectra are what you have on the CCD after taking an exposure with the spectrograph. The object that you are taking a spectrum of, say a star, typically extends over several pixels wide on the ccd chip. To get a 1-d spectrum, you sum up all the counts in the pixels in the 2-d profile in each row or column depending on how the chip is oriented, and subtract off any unwanted backgrounds at the same time. The end result is a 1-dimensional vector of total counts vs pixel number. For a quick and dirty 1-d spectrum, you can just plot across one of the rows/columns in the spectrum (again depending on the orientation of the ccd).

The gory details can be found in the link below. . .


http://iraf.noao.edu/iraf/ftp/iraf/docs/spect.ps.Z

Thank you, that was helpful, however, unfortunately I wasn't able to open the document with the details, that you mentioned,,, :-(
 
AstroRoyale said:
Why were you not able to open the file, works for me at least. Try this one instead perhaps. . .

http://iraf.net/irafdocs/spect.pdf

Yea, Thanks, i was able to open that one, I think my computer doesn't read the .ps.Z files, do you know how can I fix that?
 
randa177 said:
I think my computer doesn't read the .ps.Z files, do you know how can I fix that?
To read .ps (postscript) you need a free program called ghostview and ghostscript, they are available for just about all platforms.
The .Z is a compressed file (rather like .Zip but more common on unix) I think newer versions of ghostview can read them automatically - otherwise something like 7zip will uncompress them.

There are other types of 2d spectra, an Echelle puts multiple orders of the same spectra in different parts of the image, so the same line can appear many times - they are a little more complex to process. There are also multi-object spectrographs that produce spectra of many different objects in the same field at the same time
 
mgb_phys said:
To read .ps (postscript) you need a free program called ghostview and ghostscript, they are available for just about all platforms.
The .Z is a compressed file (rather like .Zip but more common on unix) I think newer versions of ghostview can read them automatically - otherwise something like 7zip will uncompress them.

There are other types of 2d spectra, an Echelle puts multiple orders of the same spectra in different parts of the image, so the same line can appear many times - they are a little more complex to process. There are also multi-object spectrographs that produce spectra of many different objects in the same field at the same time

thanks a lot. my question this time may sound really stupid, but I am new to unix, and I don't know who to run ghostview on Unix, is there a command to do it?
Thanks
 
If you installed from a package then it should have been put on one of the application menus, or double clicking on the .ps file should start it.
Otherwise 'gv' from the command line.
 
mgb_phys said:
If you installed from a package then it should have been put on one of the application menus, or double clicking on the .ps file should start it.
Otherwise 'gv' from the command line.

is it just typing the 2 letters gv in the command line? I did that but it didn't work :(
 
  • #10
Do you have ghostview installed?
You can either install it from here (http://pages.cs.wisc.edu/~ghost/)
Or use the package manager in your Linux distribution.

You might also have evince installed - it's a combined pdf/ps viewer, again there should be a link on one of the menus or you can start it with "evince"

On unix you can also do "man -k postscript" to search for all the manual pages that mention postscript
 

Similar threads

Replies
8
Views
5K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 30 ·
2
Replies
30
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 3 ·
Replies
3
Views
5K
  • · Replies 0 ·
Replies
0
Views
2K