Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migration of unmigrated content due to installation of a new plugin

...

When

...

extraction

...

completes,

...

the

...

data

...

are

...

stored

...

in

...

two

...

separate

...

ways.

...

  One

...

method

...

used

...

"object

...

structures"

...

similar

...

to

...

the

...

echelle

...

pipeline;

...

these

...

contain

...

extra

...

metadata

...

associated

...

with

...

each

...

observation.

...

However

...

since

...

many

...

observers

...

are

...

familiar

...

with

...

the

...

spextool

...

pipeline

...

used

...

at

...

the

...

IRTF,

...

we

...

also

...

save

...

the

...

output

...

in

...

SpeX

...

format,

...

in

...

the

...

file

...

"Object/Spec_xxxx.fits"

...

for

...

each

...

exposure.

...

  These

...

files

...

are

...

2048

...

x

...

3

...

element

...

matrices,

...

with

...

the

...

three

...

rows

...

representing

...

wavelength,

...

flux,

...

and

...

error.

...

  By

...

saving

...

in

...

this

...

format,

...

we

...

can

...

use

...

the

...

Spextool

...

package

...

routines

...

to

...

combine

...

spectra

...

and

...

perform

...

telluric

...

correction.

...

To

...

start

...

this

...

process,

...

we

...

first

...

combine

...

all

...

exposures

...

of

...

a

...

single

...

object.

...

  At

...

the

...

IDL

...

prompt,

...

type:

Code Block



{code}
IDL> fire_xcombspec
{code}

This

...

will

...

launch

...

the

...

xcombspec

...

GUI,

...

as

...

shown

...

below. 

Image Added

1. First, enter in your data path (which should be the "Object" directory in your reductions folder).  Then specify the root filename (i.e.

...

"Spec_"

...

is

...

the

...

default

...

setting)

...

and

...

the

...

file

...

numbers

...

(range

...

or

...

comma

...

delimited,

...

e.g.

...

"140-144,147").

...

 Click on "Load

...

Spectra"

...

to

...

read

...

in

...

the

...

spectra,

...

which

...

will

...

appear

...

in

...

the

...

window

...

to

...

the

...

right.

...

2.

...

Next,

...

apply

...

any

...

scaling

...

and

...

pixel

...

corrections

...

to

...

the

...

spectra

...

before

...

combining.

...

 The options are:

  • Scale: Selecting this and Order '00'

...

  • will

...

  • bring

...

  • up

...

  • a

...

  • new

...

  • window

...

  • (below)

...

  • allowing

...

  • you

...

  • to

...

  • relatively

...

  • scale

...

  • the

...

  • spectra

...

  • either

...

  • to

...

  • a

...

  • median

...

  • value

...

  • between

...

  • the

...

  • data

...

  • or

...

  • scaling

...

  • to

...

  • a

...

  • selected

...

  • spectrum

...

  • (e.g.,

...

  • the

...

  • highest

...

  • S/N

...

  • spectrum).

...

  •  The routine sets the scaling in the region indicated by the blue dashed lines; you can change these by pressing "s" and then clicking on the left and right sides of the region you want to use.  You can also change the horizontal and vertical ranges of the plot to zoom in on particular regions.  Select one of the scaling options to set the scaling, then click "Accept" when you are satisfied with the scaling. 

Image Added

  • Remove: Selecting this option and Order '00' will bring up a new window (below) allowing you to choose a spectrum to reject (e.g, in case of bad S/N). Simply uncheck the spectrum you want removed.  Alternately you can modify your input list of files to reject that spectrum. Click on "Accept" when done. 

Image Added

  • Correct Shape: This option automatically determines a wavelength-dependent scaling factor to each spectrum to correct to a common shape.  This was originally designed to handle slit loss errors for bright standard stars.  It is strongly recommended that you use this option sparingly and only for bright sources.
  • Mask Pixels: Selecting this option and Order '00' will bring up a new window (below) allowing you to select a region and spectrum to mask out.  You can zoom in on a given region by changing the plot ranges at bottom or typing "z" and clicking on the lower left and upper right corners of the area you want to zoom in on ("w" bring you back to the full plot range).  To choose a region to be masked, type "s" and click on the left and right ends of the range you want to mask. This will reject that region from all spectra; to bring back the "good" spectra, uncheck the boxes on the left side of the window.  Repeat for all bad pixel regions; you can click on "Clear mask" to start over. When satisfied, click "Accept".

Image Added

3. Next, choose the statistic to use for combining the spectra.  There are several options available; the default (Robust Weighted Mean) tends to provide the best results for more than 4 spectra of reasonable S/N.

4. Finally, enter a base output file name (e.g., "CombSpec_140-143" - no need to add the ".fits" at the end) and click on "Write File".  A fire_xvspec viewer window will pop up to display the spectrum (below). You will need to remember that filename for the final telluric correction step.

Image Added