Ignore:
Timestamp:
Oct 5, 2011, 3:13:36 PM (13 years ago)
Author:
campagne
Message:

improvment (jec)

File:
1 edited

Legend:

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

    r550 r552  
    66set ncycles $2
    77set nFreqBin $3
     8set action $4
     9
     10set defatt "font=helvetica,bold,20"
     11
     12
     13
     14if ( ${action} == "mean" ) then
     15
    816openppf meanDiffOnOffRaw_${source}-${ncycles}Cycles.ppf
    917
     
    1321objaoper mean row 0 s0
    1422objaoper mean row 1 s1
    15 graphicatt "xylimits=1250,1500,-0.01,0.01"
     23graphicatt "${defatt} xylimits=1250,1500,-0.01,0.01"
    1624newwin 1 1
    1725plot2d s0 (n/8192)*250+1250 val n>0 "cpts blue nsta notit"
    1826plot2d s1 (n/8192)*250+1250 val n>0 "same cpts red nsta notit"
    19 settitle "<(ON-OFF)[r,c]/Gain[r]>_{r,c} $source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)"
     27settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     28setaxelabels "Freq. (MHz)" "<(ON-OFF)[r,c]/Gain[r]>_{r,c}" $defatt
     29
    2030
    2131
     
    2737plot2d rs0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
    2838plot2d rs1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
    29 settitle "<(ON-OFF)[r,c]/Gain[r]>_{r,c} Rebin(${nFreqBin}) $source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)"
     39settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     40setaxelabels "Freq. (MHz)" "<(ON-OFF)[r,c]/Gain[r]>_{r,c} Rebin(${nFreqBin})" $defatt
     41
    3042
    3143##Reduced Mean
     
    3648plot2d rss0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
    3749plot2d rss1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
    38 settitle "Sigma[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin}) $source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)"
     50settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     51setaxelabels "Freq. (MHz)" "Sigma[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin})" $defatt
     52
     53else
     54
     55openppf medianDiffOnOffRaw_${source}-${ncycles}Cycles.ppf
    3956
    4057
     58##General Median
     59del s0 s1
     60objaoper median row 0 s0
     61objaoper median row 1 s1
     62graphicatt "xylimits=1250,1500,-0.01,0.01"
     63newwin 1 1
     64plot2d s0 (n/8192)*250+1250 val n>0 "cpts blue nsta notit"
     65plot2d s1 (n/8192)*250+1250 val n>0 "same cpts red nsta notit"
     66settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     67setaxelabels "Freq. (MHz)" "Median[(ON-OFF)[r,c]/Gain[r]]"  $defatt
     68
     69
     70##Reduced Mean of the median
     71newwin 1 1
     72del rs0 rs1
     73objaoper meanmedred row 0 rs0
     74objaoper meanmedred row 1 rs1
     75graphicatt "xylimits=1250,1500,-0.01,0.01"
     76plot2d rs0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
     77plot2d rs1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
     78settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     79setaxelabels "Freq. (MHz)" "Mean Median[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin})" $defatt
     80
     81
     82##Reduced Sigma of the median
     83newwin 1 1
     84del rss0 rss1
     85objaoper sigmamedred row 0 rss0
     86objaoper sigmamedred row 1 rss1
     87graphicatt "xylimits=1250,1500,0,0.01"
     88plot2d rss0 (n/${nFreqBin})*250+1250 val n>0 "marker=fcircle,5 blue nsta notit"
     89plot2d rss1 (n/${nFreqBin})*250+1250 val n>0 "same marker=fcircle,5 red nsta notit"
     90settitle "$source (${ncycles} cycles) Ch 0 (blue) Ch 1 (red)" ' ' $defatt
     91setaxelabels "Freq. (MHz)" "Sigma Median[(ON-OFF)[r,c]/Gain[r]] Rebin(${nFreqBin})" $defatt
     92 
     93
     94endif
     95
Note: See TracChangeset for help on using the changeset viewer.