Tasks

Make Average

Procedure for making average fluxcal files for PPTA calibration


1. Log into newton

2. >cd /DATA/NEWTON_2/WRK1/HYDRA/

3. Set up links to observed Hydra cals.

   First edit make_links to pick up desired files, then
    >cd ..
    >HYDRA/make_links

4. Clean up cal files

    >cd HYDRA
    >clean_cals
   To watch progress of cleanCalFiles stage:
    >tail -f cleanCal.log 

5. Make .fluxcal files, compute Cal and Ssys flux densities and plot fluxcal spectra.

    >make_fluxcals

6. List and sort .fluxcal files to form fluxcals.10cm etc.

    >sort_fluxcals
   Columns 4 & 5 and 6 & 7 are the cal equivalent flux densities in Jy and 
   their uncertainties for each channel (AA and BB respectively).
   Columns 8 & 9 and 10 & 11 are the system equivalent flux densities in Jy and 
   their uncertainties for each channel (AA and BB respectively). The conventional 
   Ssys is col 8 + col 10. 
   The time sequence of cal flux densities can be plotted using gnuplot, e.g.:
    >plot "fluxcals.10cm" using 2:4:5 w err,"fluxcals.10cm" using 2:6:7 w err

7. Investigate outliers in the Cal flux densities using spectra if necessary.

   Delete the line from fluxcals.xxcm if not fixable. 

10.Copy fluxcal lists to $PPTA/fluxcal/10cm etc.

    >copy_lists

11. Copy fluxcals to PPTA/fluxcal/xxcm directories

    >cd $PPTA/fluxcal/
    >copy_fluxcals

12. Set up calavg lists and form avfluxcals, e.g.,

    >cd 10cm
    >ls -1 t12*.fluxcal > pdfb4_10cm_8.lis
   and edit the list to form 3 or 4-month averages.

13. Edit do_calavg appropriatly and run to form the avfluxcals.

    >do_calagv

14. Check with pacv, e.g.,

    >pacv -D /null -o *.avfluxcal |grep -v pacv > avfluxcals.dat
    and plot with gnuplot.

15. Repeat 12 - 15 for 20cm and 50cm.

RNM 19 May, 2013