Intranet - ANU - WiFeS IRAF DATA R P · 2012. 6. 21. · dodar dosubsky doslitsky overscan or...
Transcript of Intranet - ANU - WiFeS IRAF DATA R P · 2012. 6. 21. · dodar dosubsky doslitsky overscan or...
WiFeS workshop, RSAA 28 April 2010
WiFeS IRAF DATA
REDUCTION PACKAGE
Friday, 30 April 2010
Turn raw files into calibrated 3D images
λ
yx
Friday, 30 April 2010
( http://rsaa.anu.edu.au/observing/ssowiki/index.php/WiFeS_data_reduction )
Link to scripts here:RSAA home page ! WiFeS in menu ! ‘Data Reduction’ at bottom of wiki page
WiFeS package
Gemini package (NIFS)
IRAF/NOAO spectroscopy tasks
Requires IRAF (version 2.14)
+ external packages: Gemini, TABLES & STSDAS
An external IRAF package based on Gemini for NIFS
Friday, 30 April 2010
Reformat files
Process calibration data
The package is set up for this general process:
wftable
Create image lists
wfcal
wftable
wfreduceApply calibrations &
construct data cubes
file lists
calibration solutions
Set I/O directorieswifes
Smooth-spectrum standard
Flux standard
Science data
Friday, 30 April 2010
Raw files - simple FITS format
Multi-extension FITS files
Convert to multi-extension FITS
T2m3wr_20090405_124930[0][0]
T2m3wr_20090405_124930[1][4138,4096]image data + header
primary header unit⤺⤺
T2m3wr.20090405.134344.123[0][4138,4096]
image data + header⤺
wftable: Convert images to MEF & create file lists
Create image lists for grating+dichroic
wftable
wftable
Images assigned to text list files by the IMAGETYP header keyword value
IMAGETYP FileARC list_arc
FLAT list_gflat
SKYFLAT list_sflat
WIRE list_wire
ZERO list_zero
OBJECT list_obj
wfcal
wfreduce
}list files
Friday, 30 April 2010
wfcal: Create calibration solutions
Friday, 30 April 2010
Prepare images
wavelength solution
spatialsolution
master flat field frame
median bias
File listsCalibration files
Combine bias frames
Normalise flat field Identify & fit arc lines Find slice centres
Fit & correct slit profile
Measure image shift
wfreduce
dorefflat
dowfprepare
dozero
doarc dowiredogflat
dosflat
wfcal: Steps for processing calibration files
reference frame
Friday, 30 April 2010
wfreduce: Reduce observations
Friday, 30 April 2010
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Combine shuffled slices
dosubshuffled
data cube
Friday, 30 April 2010
Expand binned data
Overscan bias subtraction
Bias frame surface fitting
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Combine shuffled slices
dosubshuffled
data cube
Subtract median bias frame (from wfcal)
Friday, 30 April 2010
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Median-combine multiple frames
Combine shuffled slices
dosubshuffled
data cube
Friday, 30 April 2010
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Combine shuffled slices
dosubshuffled
data cube
Subtract a separate blank sky frame
Subtract a sub-aperture average sky spectrum
Subtract `long-slit’ spectrum in each slice
Friday, 30 April 2010
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Combine shuffled slices
dosubshuffled Shift and combine nod- or subnod-and-shuffled data
data cube
Friday, 30 April 2010
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Combine shuffled slices
dosubshuffled
Extract 25 slices
Apply flat field
data cube
Friday, 30 April 2010
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Combine shuffled slices
dosubshuffled
Transform image scales
Stack slices into 3D image
data cube
Friday, 30 April 2010
`Prepare’
wfreduce: Apply wfcal results & construct cubes
Bias subtractionCombine frames
Sky subtraction
Rescale & form data cube
DAR correction
`Reduce’
dowfprepare
docombine
doreduce
dofitcoorddotransform
dodar
dosubskydoslitsky
overscan or fitbias
doskyframe
dozero
Combine shuffled slices
dosubshuffled
data cube
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
Extract telluric star spectrum
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
λx
y
(dotelcorrect)
dotelextract
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
Extract telluric star spectrum
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)
dotelextract
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)
Na D
Hα
Ca II
Remove stellar absorption
dofixtel
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)
Remove stellar absorption
dofixtel
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)
Remove stellar absorption
Na D
Hα
Ca II
dofixtel
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)
Normalise telluric spectrum
Extract and normalise example object spectrum
dotelcorrect
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
Correct telluric features
wfreduce: Further steps for standard star data
(dotelcorrect)dotelcorrect
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)Extract flux spectrum
dofluxextract
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)Calculate flux
scale
dofluxcal
Friday, 30 April 2010
Process smooth-spectrum standard
star (red)
Process flux standard star
Process science frames & apply standard star
calibrations
telluric spectrum
flux calibration
dotelextract
dofixtel
dofluxextract
(dotelcorrect)
dofluxcal
wfreduce: Further steps for standard star data
(dotelcorrect)Calculate flux
scale
dofluxcal
Friday, 30 April 2010
wfreduce: a few last tasks...
doscience
dobincube
dosimcube
output datacube T2m3wr_20090405_124930_R3000_RT560_res_t.fits
..._res_bin.fits
..._res_tds9.fits
..._sci.fits
..._res_c.fits
Form projected image andintegrated spectrum
Re-bin cube spatial axes
Save simple FITS cube file
Friday, 30 April 2010