Skip to content

CFHT Documentation

pfouque58 edited this page Mar 25, 2020 · 6 revisions

Here is an example of how I reduce a SPIRou run using the DRS v0.6.037 at CFHT, taking as an example the recent March 2020 run. I use the calibDB and telluDB from the mini data set:

  1. source /data/spirou/dev/venv/bin/activate to define the right environment
  2. Create a sub-directory 20AQ06 in /data/spirou3
  3. Create the right structure of sub-directories in it: raw, reduced, tmp, datadir, plot and in datadir: calibDB, telluDB, msg, runs
  4. Copy raw data from the CFHT structure to /data/spirou3/20AQ06/raw: subdirectories have names like 2020-03-10 while at CFHT we use 20AQ06-Mar10: cp /data/sessions/spirou/20AQ06-Mar10/2*{a,c,d,f,o}.fits /data/spirou3/20AQ06/2020-03-10/ and same for all the nights of the run
  5. Modify the user_config.ini in /data/spirou/dev/config/spirou/ to point to the right 20AQ06 directories
  6. apero_reset.py SPIROU will clean the directories
  7. define a 20AQ06_limited_run.ini in /data/spirou3/20AQ06/datadir/runs
  8. copy the mini_data_0.6.037 calibDB and telluDB directory contents to /data/spirou3/20AQ06/datadir/calibDB and telluDB
  9. apero_validate.py SPIROU
  10. apero_processing.py SPIROU 20AQ06_limited_run.ini --test=True to see the commands you will run
  11. screen
  12. apero_processing without the test option

Here is an example of limited_run.ini script for this run: https://pastebin.com/U1L6Q4M8