source: BAORadio/AmasNancay/trunk/etude_gain.pic @ 607

Last change on this file since 607 was 597, checked in by torrento, 13 years ago

Increase expected number of files per cycle

File size: 1.6 KB
Line 
1set user "AST"
2set toppath "/sps/baoradio/AmasNancay/${user}"
3set source "Abell1205"
4set srclower "abell1205"
5set date   "20110924"
6set saveplot "1"
7
8####################################################
9# Gains
10####################################################
11newwin 1 1
12graphicatt "xylimits=1250,1500,0,0.008"
13
14openfits ${toppath}/${source}/${date}${srclower}/gain_${date}_${srclower}.fits
15del g0 g1
16objaoper gain_${date}_${srclower} row 0 g0
17objaoper gain_${date}_${srclower} row 1 g1
18plot2d g1 (n/8192)*250+1250 val n>0 "red cpts nsta notit"
19plot2d g0 (n/8192)*250+1250 val n>0 "same blue cpts nsta notit"
20settitle "Gain $source ${date} Ch 0 (blue) Ch 1 (red)"
21setaxelabels "Freq. (MHz)" "I (a.u)"
22if ( $saveplot == "1" ) then
23  echo "saving plot"
24#  w2eps ${toppath}/${source}/eps/gain/gain_${date}_${srclower}.eps
25endif
26
27####################################################
28# Control of the gains
29####################################################
30newwin 1 1
31graphicatt "xylimits=0,25,0,0.006"
32del gainmoni gainmoni0 gainmoni1
33
34openppf ${toppath}/${source}/${date}${srclower}/gain_monitor_${date}_${srclower}.ppf
35#attention les "monitor" ont ete utilise a une epoque ou il n'y avait pas de
36#reordering...
37ls
38#plot2d monitor n val n>0 "black cpts nsta notit"
39plot2d gainmoni n val n>0 "black cpts nsta notit"
40plot2d gainmoni0 n val n>0 "same blue cpts nsta notit"
41plot2d gainmoni1 n val n>0 "same red cpts nsta notit"
42settitle "Gain monitor $source ${date} Ch 0 (blue) Ch 1 (red)"
43if ( $saveplot == "1" ) then
44  w2eps ${toppath}/${source}/eps/gain/gain_monitor_${date}_${srclower}.eps
45endif
46
47del g0 g1 gainmoni gainmoni0 gainmoni1
48del gain_${date}_${srclower}
49ls
Note: See TracBrowser for help on using the repository browser.