A first recipe for a night

Here I discuss how to run a night of data through fits_review. I also show how to make a table file for the results and plot various parameters from the images.



Work in:  /home/sco/HET_reds/20170903/S

To create input list:
ls -1 /home/sco/HET_work/acm_nights/20170903/acm/201*.fits > list.all
cp /home/sco/HET_work/acm_nights/20170903/*.txt . 

Survey all images and select images for fits_review (i.e. for wcs) 
  ds9_list_load list.all  
  mv List.New list.1  
  cp list.1 S 
  ds9_list_load list.1        # Optional check  

To pocess (first pass):
  fits_review list.1 N           # To get list with image properties  
  fits_review_table Y  
  xyplotter_auto fits_review hours bias 1   
  xyplotter_auto fits_review hours flux 1   
  xyplotter_auto fits_review exptime flux 1   

 fits_review list.1 Y  

NOTE: 
After the start of any fits_review you get the file:  fits_review.params_used
This can be renamed to fits_review.defaults and used to change reduction paramters 
% mv fits_review.params_used fits_review.defaults
% vi fits_review.defaults

To archive the images: 
  fits_review_archive list.1   

To studty stats:
  cd Archive_WCS 
  ls -1 *.fits >list.1  
  fits_review_summary list.1 20170903  

We see a tbale lke: 
 RArms   DECrms  Nstars   AZ      Q      pscal      CROTA2     TZ         Image Name
  1.048   1.114     61   29.52   52.83  0.27101    216.529    90.637   20170906T064343.6_acm_sci.fits  
  0.662   0.623     53   29.52   52.83  0.27081    216.497    90.669   20170906T072326.3_acm_sci.fits  
  0.494   0.399     59   22.58   42.63  0.27042    226.777    90.593   20170906T074533.8_acm_sci.fits  
  0.695   1.090     26  347.18  334.25  0.27032    295.085    90.667   20170906T091636.0_acm_sci.fits  

I have a table file:  20170906.table

I can make plots: 
  xyplotter_auto 20170906 AZ TZ 1  
  xyplotter_auto 20170906 AZ pscal 2  


On 20171108 I took a lot of bias and dark images. I had a dark dome, the FCU head deployed, and the acm mirror was out. I combined images using the folowing steps:

 

To process 60sec darks 

    ls -1 /home/sco/HET_work/acm_nights/20171108/acm/20*fits > list.all
    fits_review list.all N
    fits_review_table N
    xyplotter_auto fits_review imgnum exptime 1
    cut_by_line
    cut_by_line list.all 832 878 list.dark60

    acm_stack list.dark60 9
    mv Big_Stack.fits dark60_raw.fits
    ds9_open 900 900
    ds9_view dark60_raw.fits zscale n 1


In ./bias I used the same methods to stack 225 bias image to get Mbias1.fits 
To make a bias subtracted dark for 60 sec:

    clip_imarith.sh dark60_raw.fits - ../bias/Mbias1.fits dark60.fits






Back