TRES spectra

Processing TRES Spectrograph Data
Jessica Mink, 2023-February-02 2018-October-22

Telescope Data Center
TRES ThAr Image
[TDC Home]  [TDC Search] [OIR Home]

1. Create and catalog TRES raw data archive

2. Run TRES reduction and classification IDL pipeline

2a. Reduce subset of one night's data

  1. trcd, or if you are reprocessing an earlier night, trcd yyyy.mmdd, to the modifiable raw data directory, /home/tres/traw/[yyyy]/[yyyy.mmdd], where all of the night's data has already been copied. Fix any known problems with data, removing bad files to /home/tres/traw/[yyyy]/Bad/[yyyy.mmdd].

  2. mkdir ../[yyyy.mmdd][x] using the same date and a letter signifying the processing change which is being made. x is a good default.

  3. cp -p *FLAT.fits *BIAS.fits *COMP.fits ../[yyyy.mmdd][x]
    cp -p *object.fits ../[yyyy.mmdd][x]for every object you want to reprocess.

  4. If you want to combine multiple files of the same object, delete any COMP files which are between them:
    > ls 008*.fits
    0080.COMP.fits
    0081.HIP039121.fits
    0082.HIP039121.fits
    0083.HIP039121.fits
    0084.COMP.fits            
    0085.HIP039121.fits
    0086.COMP.fits            
    
    > rm 0084.COMP.fits
    
    > ls 008*.fits
    0080.COMP.fits
    0081.HIP039121.fits
    0082.HIP039121.fits
    0083.HIP039121.fits
    0085.HIP039121.fits
    0086.COMP.fits            
    

  5. If you want to separate files of the same object, insert a copy of the nearest COMP file between them by adding a 1 to the end of the sequence number of the file before it:
    > ls 008*.fits
    0080.COMP.fits
    0081.HIP039121.fits
    0082.HIP039121.fits
    0083.HIP039121.fits
    0084.COMP.fits            
    
    > cp 0080.COMP.fits 00811.COMP.fits
    
    > cp 0084.fits 00821.comp.fits
    
    > ls 008*
    0080.COMP.fits
    0081.HIP039121.fits
    00811.COMP.fits
    0082.HIP039121.fits
    00821.COMP.fits
    0083.HIP039121.fits
    0084.COMP.fits  
    
  6. tidl to the directory containing TRES idl and csh scripts.

  7. reduce_series1 yyyy.mmddx.

  8. Replace file entries in already-processed /home/tres/tred/[yyyy-mm-dd] with file entries in /home/tres/tred/[yyyy-mm-dd][x].

3. Check TRES spectra and clean cosmic rays and hot pixels

4. Re-run TRES classification IDL pipeline