@@ -731,6 +731,7 class PlotCOHData(PlotRTIData): | |||
|
731 | 731 | self.nrows = self.dataOut.nPairs |
|
732 | 732 | self.width = 10 |
|
733 | 733 | self.height = 2.2*self.nrows if self.nrows<6 else 12 |
|
734 | self.ind_plt_ch = False #just for coherence and phase | |
|
734 | 735 | if self.nrows==1: |
|
735 | 736 | self.height += 1 |
|
736 | 737 | self.ylabel = 'Range [Km]' |
@@ -15,36 +15,11 if __name__ == '__main__': | |||
|
15 | 15 | controllerObj.setup(id='191', name='test01', description=desc) |
|
16 | 16 | |
|
17 | 17 | proc1 = controllerObj.addProcUnit(name='PlotterReceiver') |
|
18 | # proc1.addParameter(name='realtime', value='0', format='bool') | |
|
19 | #proc1.addParameter(name='plottypes', value='rti,coh,phase,snr,dop', format='str') | |
|
20 | #proc1.addParameter(name='plottypes', value='rti,coh,phase,snr', format='str') | |
|
21 | ||
|
22 | #proc1.addParameter(name='plottypes', value='snr,dop', format='str') | |
|
23 | 18 | proc1.addParameter(name='plottypes', value='rti,dop,snr,phase,coh', format='str') |
|
24 | #proc1.addParameter(name='plottypes', value='phase,coh', format='str') | |
|
25 | ||
|
26 | #proc1.addParameter(name='throttle', value='10', format='int') | |
|
27 | ||
|
28 | 19 | proc1.addParameter(name='interactive', value='0', format='bool') # ? PREGUNTAR |
|
29 | 20 | # proc1.addParameter(name='server', value='tcp://10.10.10.82:7000', format='str') |
|
30 | 21 | ## TODO Agregar direccion de server de publicacion a graficos como variable |
|
31 | 22 | |
|
32 | """ | |
|
33 | op1 = proc1.addOperation(name='PlotRTIData', optype='other') | |
|
34 | op1.addParameter(name='wintitle', value='HF System', format='str') | |
|
35 | op1.addParameter(name='save', value='/home/ci-81/Pictures', format='str') | |
|
36 | op1.addParameter(name='show', value='0', format='bool') | |
|
37 | op1.addParameter(name='zmin', value='-110', format='float') | |
|
38 | op1.addParameter(name='zmax', value='-50', format='float') | |
|
39 | op1.addParameter(name='colormap', value='jet', format='str') | |
|
40 | ||
|
41 | ||
|
42 | # proc2 = controllerObj.addProcUnit(name='ReceiverData') | |
|
43 | # proc2.addParameter(name='server', value='juanca', format='str') | |
|
44 | # proc2.addParameter(name='plottypes', value='snr,dop', format='str') | |
|
45 | # | |
|
46 | """ | |
|
47 | ||
|
48 | 23 | op2 = proc1.addOperation(name='PlotCOHData', optype='other') |
|
49 | 24 | op2.addParameter(name='wintitle', value='HF System Coh', format='str') |
|
50 | 25 | op2.addParameter(name='zmin', value='0.001', format='float') |
@@ -71,12 +46,11 if __name__ == '__main__': | |||
|
71 | 46 | op5.addParameter(name='zmax', value='140', format='float') |
|
72 | 47 | op5.addParameter(name='colormap', value='RdBu_r', format='str') |
|
73 | 48 | op5.addParameter(name='ind_plt_ch',value='1',format = 'bool') |
|
74 | ||
|
75 | # op4 = proc1.addOperation(name='PlotSNRData1', optype='other') | |
|
76 | # op4.addParameter(name='wintitle', value='HF System SNR1', format='str') | |
|
77 | # op4.addParameter(name='save', value='/home/ci-81/Pictures', format='str') | |
|
78 | # op4.addParameter(name='show', value='0', format='bool') | |
|
79 | ||
|
49 | ''' | |
|
50 | *** WARNING *** | |
|
51 | tanto Phase como Coherencia usan los 2 canales de data, por ende la variable ind_plt_ch siempre | |
|
52 | deberia ser 0, para que no trate de separarlas, << esta hardcodeado >> | |
|
53 | ''' | |
|
80 | 54 | op6 = proc1.addOperation(name='PlotPHASEData', optype='other') |
|
81 | 55 | op6.addParameter(name='wintitle', value='HF System', format='str') |
|
82 | 56 | op6.addParameter(name='colormap', value='RdBu_r', format='str') |
@@ -1,1 +1,1 | |||
|
1 |
<Project description="HF_EXAMPLE" id="191" name="test01"><ReadUnit datatype="SpectraReader" id="1911" inputId="0" name="SpectraReader"><Operation id="19111" name="run" priority="1" type="self"><Parameter format="str" id="191111" name="datatype" value="SpectraReader" /><Parameter format="str" id="191112" name="path" value="/media/ci-81/Huancayo/DATA/hfradar_2016/pdata/sp1_f1" /><Parameter format="date" id="191113" name="startDate" value="2016/04/23" /><Parameter format="date" id="191114" name="endDate" value="2016/04/23" /><Parameter format="time" id="191115" name="startTime" value="00:00:00" /><Parameter format="time" id="191116" name="endTime" value="23:59:59" /><Parameter format="int" id="191118" name="cursor" value=" |
|
|
1 | <Project description="HF_EXAMPLE" id="191" name="test01"><ReadUnit datatype="SpectraReader" id="1911" inputId="0" name="SpectraReader"><Operation id="19111" name="run" priority="1" type="self"><Parameter format="str" id="191111" name="datatype" value="SpectraReader" /><Parameter format="str" id="191112" name="path" value="/media/ci-81/Huancayo/DATA/hfradar_2016/pdata/sp1_f1" /><Parameter format="date" id="191113" name="startDate" value="2016/04/23" /><Parameter format="date" id="191114" name="endDate" value="2016/04/23" /><Parameter format="time" id="191115" name="startTime" value="00:00:00" /><Parameter format="time" id="191116" name="endTime" value="23:59:59" /><Parameter format="int" id="191118" name="cursor" value="5" /><Parameter format="int" id="191119" name="skip" value="16" /><Parameter format="int" id="191120" name="delay" value="10" /><Parameter format="int" id="191121" name="walk" value="1" /><Parameter format="int" id="191122" name="online" value="0" /></Operation></ReadUnit><ProcUnit datatype="ParametersProc" id="1913" inputId="1911" name="ParametersProc"><Operation id="19131" name="run" priority="1" type="self" /><Operation id="19132" name="SpectralMoments" priority="2" type="other" /><Operation id="19133" name="PublishData" priority="3" type="other"><Parameter format="int" id="191331" name="zeromq" value="1" /></Operation></ProcUnit><ProcUnit datatype="Spectra" id="1912" inputId="1911" name="SpectraProc"><Operation id="19121" name="run" priority="1" type="self" /><Operation id="19122" name="removeInterference" priority="2" type="self" /></ProcUnit></Project> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now