Make OSIRIS Rectification Matrices

Make OSIRIS Rectification Matrices

Create median combined frames from recmat scans

  1. Open an xterm as osrseng on napili
    - Run osirisSetupUser yymmdd if you want to set your directories to the date you took the scans. e.g. osirisSetupUser 250609

  2. Start OSIRIS DRP from Data Reduction → OSIRIS DRP

  3. Create Median Combined Scans
    - Use /home/osrseng/scripts/makeXml -median drf_template fits_file to create a DRF file
    e.g. /home/osrseng/scripts/makeXml -median /home/osrseng/syeh/RECMAT/template_median.xml /s/sdata1100/osrseng/250609/SPEC/raw/s250609_c002001.fits
    The xml product, e.g. Hn3_050_med.xml will be stored under /home/osrseng/osiris/drf_queue

    cd /home/osrseng/osiris/drf_queue, execute makeRecmat Hn3_050_med.xml

  4. Use the median combined files to make recmats
    - /home/osrseng/scripts/makeXml -recmat drf_template_file fits_file will format a call to drf_edit
    - e.g. /home/osrseng/scripts/makeXml -recmat /home/osrseng/syeh/RECMAT/template_recmat.xml /s/sdata1100/osrseng/250609/SPEC/ORP/s250609_c002001.fits
    - cd /home/osrseng/osiris/drf_queue, execute makeRecmat Hn3_050.xml

  5. Recmats are stored at /s/sdata1100/osrseng/250609/SPEC/FRP/
    - In this case it is s250609_c002___infl_Hn3_050.fits

  6. Make a copy of the recmat to /osiris-calib/SPEC/rectification
    e.g. cp -p s250609_c002___infl_Hn3_050.fits /osiris-calib/SPEC/rectification

  7. gzip the new recmats in /osiris-calib/SPEC/rectification
    e.g. gzip s250609_c002___infl_Hn3_050.fits