Changeset 630 for BAORadio


Ignore:
Timestamp:
Jan 13, 2012, 11:46:16 AM (12 years ago)
Author:
torrento
Message:

Added calibration coefficient spectrum

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BAORadio/AmasNancay/trunk/dabchrom_plot.pic

    r611 r630  
    4848
    4949## Mean(delta(first,second DAB)) per channel
    50 c++exec TVector<r_4> meandab0d(dab01.NElts()); KeepObj(meandab0d); \
    51         TVector<r_4> meandab1d(dab01.NElts()); KeepObj(meandab1d); \
    52         meandab0d=dab01d+dab02d; meandab0d/=2.; \
    53         meandab1d=dab11d+dab12d; meandab1d/=2.;
     50c++exec TVector<r_4> meandab0d(dab01d,false); KeepObj(meandab0d); \
     51        TVector<r_4> meandab1d(dab11d,false); KeepObj(meandab1d); \
     52        meandab0d+=dab02d; meandab0d/=2.; \
     53        meandab1d+=dab12d; meandab1d/=2.;
     54
     55## Rebin BAO and calibrated data in 0.5Hz/bin to perform division
     56exptovec vf nt_dabjy dabfreq
     57exptovec vjy nt_dabjy dabjy
     58c++exec TVector<r_4> dumm0(vf), dumm1(vjy);\
     59        TVector<r_4> vcalfreq=dumm0.SubVector(Range(320,854)).TransposeSelf();\
     60        KeepObj(vcalfreq);\
     61        TVector<r_4> vcaljy=dumm1.SubVector(Range(320,854)).TransposeSelf();\
     62        KeepObj(vcaljy);
     63
     64del invec0 invec1 invec2 invec3 val0 val1
     65cp meandab0d invec0
     66cp meandab1d invec1
     67cp vcaljy invec2
     68cp vcalfreq invec3
     69ls
     70
     71c++compile interpol
     72c++link interpol.so dointerpol
     73call dointerpol
     74
     75c++exec TVector<r_8> calcoeff0f1400a1420=calcoeff0.SubVector(Range(300,340)); \
     76        KeepObj(calcoeff0f1400a1420);\
     77        TVector<r_8> calcoeff1f1400a1420=calcoeff1.SubVector(Range(300,340)); \
     78        KeepObj(calcoeff1f1400a1420);
     79projh1d h0 calcoeff0f1400a1420 val
     80projh1d h1 calcoeff1f1400a1420 val
    5481
    5582## Save Mean(delta(first,second DAB)) per channel into a ppf file
     
    140167addtext 1440 3 "Ch0*18 (A.U.)" "bigfont"
    141168addtext 1440 2 "Ch1*23 (A.U.)" "bigfont"
     169
     170graphicatt ""
     171newwin 1 1
     172plot2d meandab0d (n/8192)*250+1250 val n>0 "blue cpts nstat notit"
     173plot2d meandab1d (n/8192)*250+1250 val n>0 "same red cpts nstat notit"
     174settitle "Raw MeanDAB Ch0(blue) Ch1(red)"
     175
     176## Rebinned DAB spectra
     177graphicatt ""
     178newwin 1 1
     179plot2d val0 (n/500)*250+1250 val 1 "cpts blue notit nstat"
     180plot2d val1 (n/500)*250+1250 val 1 "cpts same red notit nstat"
     181settitle "BAO DAB spectra Ch0 (blue) Ch1(red)"
     182setaxelabels "Freq. (MHz)" "I (a.u.)" "bigboldfont"
     183
     184newwin 1 1
     185plot2d val2 (n/500)*250+1250 val 1 "cpts blue notit nstat"
     186settitle "Calibrated DAB spectra"
     187setaxelabels "Freq. (MHz)" "I (Jy)" "bigboldfont"
     188
     189## Calibration coefficients Jy/a.u. in the whole bandwidth
     190newwin 1 1
     191plot2d calcoeff1 (n/500)*250+1250 val 1 "cpts red notit nstat"
     192plot2d calcoeff0 (n/500)*250+1250 val 1 "cpts same blue notit nstat"
     193settitle "Calibration coefficients spectrum Ch0(blue) Ch1(red)"
     194setaxelabels "Freq. (MHz)" "Coeff Jy/a.u."  "bigboldfont"
     195
     196## Calibration coefficients Jy/a.u. in [1400,1420]MHz
     197newwin 1 1
     198disp h0 "notit"
     199settitle "CalCoeff (Jy/a.u.) Ch0"
     200newwin 1 1
     201disp h1 "notit"
     202settitle "CalCoeff (Jy/a.u.) Ch1"
Note: See TracChangeset for help on using the changeset viewer.