Ignore:
Timestamp:
Nov 28, 2011, 10:04:36 AM (13 years ago)
Author:
torrento
Message:

Add pic analysis files and emptydir function for proc_specmfib

File:
1 edited

Legend:

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

    r607 r611  
     1
     2set path "/sps/baoradio/AmasNancay/AST"
    13
    24set source  $1
     
    911
    1012set fcalib 1410
    11 set f1420low 1420.2
    12 set f1420high 1420.6
    13 
    14 
     13
     14# Abell 85, 500 cycles
     15if ( ${source} == "abell85" ) then
     16  set f1420low 1420.2
     17  set f1420high 1420.6
     18  set packVal "1 10 25 50 100"
     19endif
     20
     21# Abell 1205, 600 cycles
     22if ( ${source} == "abell1205" ) then
     23  set f1420low 1420.1
     24  set f1420high 1420.6
     25  set packVal "1 10 25 50 100 120"
     26endif
     27
     28# Abell 2440, 210 cycles
     29if ( ${source} == "abell2440" ) then
     30  set f1420low 1420.4
     31  set f1420high 1420.7
     32  set packVal "1 10 25 42"
     33endif
     34
     35echo "f1420low=${f1420low}, f1420high=${f1420high}"
     36echo "Packing values="${packVal}
    1537
    1638nbins1420 = floor((${f1420high}-${f1420low})/250*8192)
    17 
    1839echo $nbins1420
    19 
    2040
    2141clearscript diffOnOff
     
    2646clearscript sigmaRaw1400a1420
    2747clearscript evolAt1410a1415OffOn
     48
    2849############################################################################
    2950defscript evolAtCalibFreq
     
    90111
    91112
    92 graphicatt "xylimits=0,500,-0.01,0.01"
     113graphicatt "xylimits=0,${ncycles},-0.02,0.02"
    93114
    94115newwin 1 2
     
    159180line2vec vecCh1All $linCh1All
    160181
    161 #packing values only valid for 500 cycles...
    162 set packVal "1 10 25 50 100"
    163182set sigmaCh0 ""
    164183set errsigCh0 ""
    165184set sigmaCh1 ""
    166185set errsigCh1 ""
    167 
    168186
    169187foreach ipack ( $packVal )
     
    236254line2vec vecCh1All $linCh1All
    237255
    238 #packing values only valid for 500 cycles...
    239 set packVal "1 10 25 50 100"
    240256set sigmaCh0 ""
    241257set errsigCh0 ""
     
    329345
    330346
    331 graphicatt "xylimits=0,500,-0.01,0.01"
     347graphicatt "xylimits=0,${ncycles},-0.01,0.01"
    332348
    333349newwin 1 2
     
    394410
    395411
    396 graphicatt "xylimits=0,500,-0.1,0.1"
     412graphicatt "xylimits=0,${ncycles},-0.1,0.1"
    397413
    398414newwin 1 2
     
    487503setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
    488504
    489 
    490 
    491505graphicatt "xylimits=1250,1500,-0.01,0.01"
    492506del snocal0 snocal1
     
    499513setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
    500514
    501 del sruncal0 sruncal1
    502 objaoper meanPerRunCalib row 0 sruncal0
    503 objaoper meanPerRunCalib row 1 sruncal1
    504 newwin 1 1
    505 plot2d sruncal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
    506 plot2d sruncal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
    507 settitle "ON-OFF Calib Run  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
    508 setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
    509 
    510 newwin 1 1
    511 del scyclecal0 scyclecal1
    512 objaoper meanPerCycleCalib row 0 scyclecal0
    513 objaoper meanPerCycleCalib row 1 scyclecal1
    514 plot2d scyclecal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
    515 plot2d scyclecal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
    516 settitle "ON-OFF Calib Cycle  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
    517 setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
     515#del sruncal0 sruncal1
     516#objaoper meanPerRunCalib row 0 sruncal0
     517#objaoper meanPerRunCalib row 1 sruncal1
     518#newwin 1 1
     519#plot2d sruncal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
     520#plot2d sruncal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
     521#settitle "ON-OFF Calib Run  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
     522#setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
     523
     524#newwin 1 1
     525#del scyclecal0 scyclecal1
     526#objaoper meanPerCycleCalib row 0 scyclecal0
     527#objaoper meanPerCycleCalib row 1 scyclecal1
     528#plot2d scyclecal0 (n/8192)*250+1250 val n>0 "blue cpts notit nsta"
     529#plot2d scyclecal1 (n/8192)*250+1250 val n>0 "red same cpts notit nsta"
     530#settitle "ON-OFF Calib Cycle  ${source} Ch 0 (blue) Ch 1 (red) ${ncycles}cycles" ' ' $defatt
     531#setaxelabels "Freq. (MHz)" "I (a.u)" $axedefatt
    518532
    519533
     
    526540#use minuscule for source label
    527541
    528 
    529 
    530 
    531 openppf onoffsurvey_${source}-${ncycles}Cycles.ppf
     542openppf ${path}/onoffsurvey_${source}-${ncycles}Cycles.ppf
    532543print onoffevol
     544
     545#openppf ${path}/rawOnOffDiff_${source}-${ncycles}Cycles.ppf
     546#ls
    533547
    534548set defatt "font=helvetica,bold,20 fixedfonsize"
     
    546560#evolAt1420SideFreq
    547561#IntAt1420
     562#sigmaRaw1420Side
     563#sigmaRaw1400a1420
     564#evolAt1400a1420OffOn
Note: See TracChangeset for help on using the changeset viewer.