| 1 |
# |
| 2 |
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
| 3 |
#.COPYRIGHT (C) 1993 European Southern Observatory |
| 4 |
#.IDENT irspec_extended.hlp |
| 5 |
#.AUTHOR Cristian Levin (ESO/La Silla) |
| 6 |
#.KEYWORDS Infrared spectroscopy, Irspec |
| 7 |
#.PURPOSE This is the help file for the extended help |
| 8 |
# feature of XIrspec. |
| 9 |
# |
| 10 |
#.VERSION 1.0 Package Creation 17-MAR-1994 |
| 11 |
#------------------------------------------------------- |
| 12 |
# |
| 13 |
|
| 14 |
~HELP_CONTEXT |
| 15 |
This is the context Irspec. |
| 16 |
~HELP_HELP |
| 17 |
You can get an extended help for each button of the interface by pressing |
| 18 |
the right mouse button when the cursor is over the interface button. |
| 19 |
|
| 20 |
~HELP_TUTORIAL |
| 21 |
Not available for the moment. |
| 22 |
~HELP_VERSION |
| 23 |
This is the version 1.0 of the Graphical User Interface for the context |
| 24 |
Irspec. |
| 25 |
|
| 26 |
comments about the interface can be sent to : [email protected] (Cristian Levin) |
| 27 |
comments about the commands can be sent to: [email protected] (MIDAS support) |
| 28 |
|
| 29 |
~MAIN_BADPIX |
| 30 |
To create a table containing the position of bad pixels. |
| 31 |
|
| 32 |
The IRSPEC array has a fixed pattern of bad pixels which, which can |
| 33 |
be cleaned by by substituting the values of the bad pixels with the |
| 34 |
average of the neighboring good pixels. A default table of bad pixels |
| 35 |
(irsbadpix.tbl) is automatically created when starting the IRSPEC context. |
| 36 |
If the default table is going to be used, cleaning of frames is done |
| 37 |
implicitly when reducing the standard star or object, and BADPIX |
| 38 |
is not explicitly required. |
| 39 |
|
| 40 |
~MAIN_FLAT |
| 41 |
To create a normalized flat from an halogen frame. The flat will be |
| 42 |
used in the reduction of the standard star and the object. |
| 43 |
|
| 44 |
The normalization procedure consists of dividing the original frame, |
| 45 |
cleaned of the bad pixels, by the average value of the central 6 rows. |
| 46 |
Hence, the normalized output image contains also the detector response |
| 47 |
at low spatial frequencies. Use the explicit MIDAS commands FIT/FLAT |
| 48 |
if you need a more normalized flat. |
| 49 |
|
| 50 |
The vignetted rows are set to large values in order to make them |
| 51 |
vanishing after division by the flat. |
| 52 |
|
| 53 |
For applications up to 2.5 microns the input, flat image is usually |
| 54 |
a measurement of the halogen lamp with counts level as close as possible |
| 55 |
to those in the astronomical frames. |
| 56 |
|
| 57 |
|
| 58 |
~MAIN_FLUX |
| 59 |
First step for flux calibration of IRSPEC data. |
| 60 |
|
| 61 |
The user must provide an ASCII file with his/her favorite |
| 62 |
guesses of the star fluxes at a number of wavelengths, e.g. the |
| 63 |
values of F(lambda) at the effective wavelengths of photometric |
| 64 |
filters in case of photometric standard stars. The file must |
| 65 |
contain, in columns 1 and 2, the wavelength and corresponding |
| 66 |
flux, respectively. Columns 3 and higher may contain comments. |
| 67 |
|
| 68 |
Example |
| 69 |
1.25 1.04e-3 J=6.12, flux in 1e-11 erg cm-2 s-1 mu-1 |
| 70 |
2.20 196 K=5.73, same units |
| 71 |
1.65 4.34e-2 H=5.99, same units |
| 72 |
|
| 73 |
The command will then create a MIDAS table containing a properly |
| 74 |
sampled F(lambda) vs. lambda interpolation within the wavelength |
| 75 |
limits given in the input ascii file. |
| 76 |
|
| 77 |
~MAIN_STANDARD |
| 78 |
Open the window for standard star reduction. |
| 79 |
|
| 80 |
To create a 1-D response frame which contains the conversion from |
| 81 |
counts/sec to flux units for the measurements taken at a given central |
| 82 |
wavelength. |
| 83 |
|
| 84 |
~MAIN_OBJECT |
| 85 |
Open the window for object reduction. |
| 86 |
|
| 87 |
~MAIN_EXTRACT |
| 88 |
Open the window for spectrum extraction. |
| 89 |
|
| 90 |
~MAIN_MERGE |
| 91 |
Open the window for the merge of overlapping 1D spectra into a table. |
| 92 |
The command also allows optimizing the connection on the overlapping |
| 93 |
parts and excluding a given number of pixels at both edges of the |
| 94 |
spectrum. |
| 95 |
|
| 96 |
~BADPIX_DEFINE |
| 97 |
|
| 98 |
~BADPIX_APPLY |
| 99 |
|
| 100 |
~FLUX_APPLY |
| 101 |
|
| 102 |
Interpolation of the flux values provided in the ASCII table |
| 103 |
'Broad band flux table', to create a MIDAS table 'Output flux table'. |
| 104 |
|
| 105 |
The 'Broad band flux table' must contain, in columns 1 and 2, |
| 106 |
the wavelength and corresponding flux, respectively, of the |
| 107 |
standard star used to calibrate the spectra. |
| 108 |
|
| 109 |
The 'Output flux table' contains wavelengths (column :wl) and |
| 110 |
fluxes (column :flux) interpolated over the input values according |
| 111 |
to the Interpolation method. The star flux is sampled at wavelength |
| 112 |
intervals specified in 'Wavelength step', default = 0.01. |
| 113 |
'Fit degree' is the degree of the polynomial/spline, default = 2. |
| 114 |
|
| 115 |
For the transformation from magnitudes to fluxes you may use e.g. |
| 116 |
Wilson et al. 1972, ApJ 177, 533 |
| 117 |
Bessel 1979, PASP 91, 589 |
| 118 |
|
| 119 |
|
| 120 |
~STANDARD_REDUCE |
| 121 |
|
| 122 |
To create a 1-D response frame which contains the conversion from |
| 123 |
counts/sec to flux units for the measurements taken at a given |
| 124 |
central wavelength. 'Flux table' is a previously created MIDAS |
| 125 |
table with properly sampled flux values of the standard star. |
| 126 |
'Response frame' is the output 1-D frame containing the instrumental |
| 127 |
response (counts per second per unit flux). 'Y-positions' are the |
| 128 |
positions of the lower and upper standard star continua in the |
| 129 |
sky-subtracted frame. |
| 130 |
|
| 131 |
Wavelength calibration |
| 132 |
---------------------- |
| 133 |
The wavelength dispersion on the IRSPEC array is linear within a small |
| 134 |
fraction of the pixel size. Hence, wavelength calibration simply means |
| 135 |
to modify the x-start and x-step descriptor values of the image. |
| 136 |
|
| 137 |
Standard: A quite precise - usually within one pixel - estimate of |
| 138 |
the wavelength scale is available directly from the |
| 139 |
IRSPEC descriptors. |
| 140 |
The standard wavelength calibration works automatically. |
| 141 |
|
| 142 |
|
| 143 |
High acc: A more accurate wavelength calibration can be reached if |
| 144 |
the frame contains emission lines with known wavelengths. |
| 145 |
Up to 2.3 microns the OH lines in the sky frames are a very |
| 146 |
convenient calibrator (Oliva & Origlia 1992, A&A 254, 466). |
| 147 |
|
| 148 |
If High accuracy is selected, specify a 'Reference frame' |
| 149 |
which will contain the precise wavelength parameters. |
| 150 |
The 'High accuracy' method works interactively. |
| 151 |
|
| 152 |
|
| 153 |
Sky subtraction |
| 154 |
--------------- |
| 155 |
In most of the infrared the sky emission contains bright emission |
| 156 |
lines, OH transitions up to 2.3 microns and molecular bands (CO2, CH4) |
| 157 |
at longer wavelengths. The intensity of the OH transitions varies on |
| 158 |
short time scales, so the 'object - sky' difference frames may contain |
| 159 |
residual sky lines. It also happens that the grating moves by tiny |
| 160 |
amounts between object and sky frames, which deteriorates the sky |
| 161 |
subtraction considerably. |
| 162 |
If such occurs, the sky frame may be multiplied by a factor different |
| 163 |
from 1.0 and shifted by an amount different from 0. Factors and |
| 164 |
shifts can be entered or obtained interactively by specifying |
| 165 |
factor = 0 |
| 166 |
|
| 167 |
~OBJECT_REDUCE |
| 168 |
|
| 169 |
Wavelength calibration |
| 170 |
---------------------- |
| 171 |
The wavelength dispersion on the IRSPEC array is linear within a small |
| 172 |
fraction of the pixel size. Hence, wavelength calibration simply means |
| 173 |
to modify the x-start and x-step descriptor values of the image. |
| 174 |
|
| 175 |
Standard: A quite precise - usually within one pixel - estimate of |
| 176 |
the wavelength scale is available directly from the |
| 177 |
IRSPEC descriptors. The standard wavelength calibration works |
| 178 |
automatically. |
| 179 |
|
| 180 |
|
| 181 |
High acc: A more accurate wavelength calibration can be reached if |
| 182 |
the frame contains emission lines with known wavelengths. |
| 183 |
Up to 2.3 microns the OH lines in the sky frames are a very |
| 184 |
convenient calibrator (Oliva & Origlia 1992, A&A 254, 466). |
| 185 |
|
| 186 |
If High accuracy is selected, specify a 'Reference frame' |
| 187 |
which will contain the precise wavelength parameters. |
| 188 |
The 'High accuracy' method works interactively. |
| 189 |
|
| 190 |
Sky subtraction |
| 191 |
--------------- |
| 192 |
In most of the infrared the sky emission contains bright emission |
| 193 |
lines, OH transitions up to 2.3 microns and molecular bands (CO2, CH4) |
| 194 |
at longer wavelengths. The intensity of the OH transitions varies on |
| 195 |
short time scales, so the 'object - sky' difference frames may contain |
| 196 |
residual sky lines. It also happens that the grating moves by tiny |
| 197 |
amounts between object and sky frames, which deteriorates the sky |
| 198 |
subtraction considerably. |
| 199 |
If such occurs, the sky frame may be multiplied by a factor different |
| 200 |
from 1.0 and shifted by an amount different from 0. Factors and |
| 201 |
shifts can be entered or obtained interactively by specifying |
| 202 |
factor = 0 |
| 203 |
|
| 204 |
|
| 205 |
~OBJECT_FLUX |
| 206 |
|
| 207 |
To flux calibrate a spectrum which could either be a 2-D long-slit |
| 208 |
image or a 1-D spectrum. A 'Response frame' must have been previously |
| 209 |
created using the 'Std star...' command. |
| 210 |
|
| 211 |
~MERGE_APPLY |
| 212 |
|
| 213 |
Merge overlapping 1-D spectra (images) into a table. The spectra |
| 214 |
must be ordered in wavelength and must be overlapping. |
| 215 |
The 1-D spectra to be connected must be named with a prefix and |
| 216 |
a number, eg spec0001, spec0002, spec0003, etc. |
| 217 |
|
| 218 |
Prefix: The files prefix, i.e. "spec" in the above example |
| 219 |
|
| 220 |
Interval: Give here the first and last number of the files |
| 221 |
to be merged. |
| 222 |
|
| 223 |
Step: Increment of file-ID numbers, default = 1. |
| 224 |
|
| 225 |
ref#: In the process of forcing the connection of the overlapping |
| 226 |
regions, one of the 1-D images (the reference image) is |
| 227 |
left untouched. If ref=0 (default) the reference image is |
| 228 |
the central 1D frame of frames specified. |
| 229 |
|
| 230 |
Example |
| 231 |
------- |
| 232 |
prefix: spec |
| 233 |
interval: 4, 12 |
| 234 |
step: 3 |
| 235 |
ref#: 8 |
| 236 |
|
| 237 |
will cause the 1-D spectra, contained in files |
| 238 |
spec0004, spec0008, spec0012, to be merged, with file spec0008 |
| 239 |
taken as the reference. |
| 240 |
|
| 241 |
NOTE |
| 242 |
---- |
| 243 |
The connection between the spectra is optimized by applying a |
| 244 |
multiplicative factor to the spectra (NB the input spectra are |
| 245 |
left untouched). This implies that the command works properly only |
| 246 |
with spectra with strong and well defined continua while it may produce |
| 247 |
totally unreliable results with spectra with faint continua affected by |
| 248 |
variable offsets. |
| 249 |
|
| 250 |
|
| 251 |
~EXTRACT_SKY |
| 252 |
Asks the user for the sky windows using the cursor over the display |
| 253 |
window. The coordinates are then displayed in the input form. |
| 254 |
|
| 255 |
~EXTRACT_OBJECT |
| 256 |
Asks the user for the object limits using the cursor over the display |
| 257 |
window. The coordinates are then displayed in the input form. |
| 258 |
|
| 259 |
~EXTRACT_FIT |
| 260 |
Fit a polynomial to the data in two windows along the Y-axis. |
| 261 |
Two modes can be selected: |
| 262 |
|
| 263 |
Same spatial profile -- Here it is assumed that the normalized spatial |
| 264 |
profile is the same for all columns and only one |
| 265 |
polynomial is fitted to the mean spatial profile. |
| 266 |
|
| 267 |
Independent profile -- In this case an independent polynomial is fitted |
| 268 |
for every row of the spectrum, filtering also the |
| 269 |
cosmic rays. |
| 270 |
|
| 271 |
PARAMETERS: The following parameters must be set in the input form: |
| 272 |
|
| 273 |
a) Sky limits (pixels) -- starting and ending Y coordinates of the sky |
| 274 |
windows |
| 275 |
|
| 276 |
b) Polynomial fit degree -- degree of the fit to be used. |
| 277 |
|
| 278 |
c) Radius -- used for cosmics rays rejection. |
| 279 |
|
| 280 |
|
| 281 |
~EXTRACT_AVERAGE |
| 282 |
The standard method. The sky is taken from the sky limits values of |
| 283 |
the input window. The result is summed or averaged depending on the |
| 284 |
extraction method parameter. |
| 285 |
|
| 286 |
~EXTRACT_WEIGHT |
| 287 |
Extract spectrum from CCD frame. The rows of the spectrum are |
| 288 |
added with weights which are chosen for optimal S/N-ratio of |
| 289 |
the resulting spectrum. Cosmic ray hits are removed by |
| 290 |
analyzing the profile perpendicular to the dispersion (assumed |
| 291 |
to be along the X-axis). The method is only suited for |
| 292 |
spectra of (spatially) unresolved sources. The method is very |
| 293 |
similar to the one described by Horne (1986, PASP 98, 609). |
| 294 |
|
| 295 |
PARAMETERS: The extraction algorithm uses the following parameters: |
| 296 |
|
| 297 |
a) Object limits (pixels) -- Approximate Y coordinates of the object |
| 298 |
(starting and ending). |
| 299 |
|
| 300 |
b) Extraction iterations -- Number of iterations in the extraction |
| 301 |
process. |
| 302 |
|
| 303 |
c) Read-out-noise (e-) -- Read out noise of the CCD in electrons. |
| 304 |
|
| 305 |
d) Inverse gain factor -- Conversion factor from ADU to electrons. |
| 306 |
(e-/ADU) |
| 307 |
|
| 308 |
e) Threshold for cosmic rays -- Threshold used for the rejection of |
| 309 |
cosmic ray hits. |