@@ -105,4 +105,5 ENV/ | |||
|
105 | 105 | |
|
106 | 106 | .vscode |
|
107 | 107 | |
|
108 | schainpy/scripts/ No newline at end of file | |
|
108 | schainpy/scripts/ | |
|
109 | schaingui/node_modules/ No newline at end of file |
@@ -1,11 +1,6 | |||
|
1 | 1 | |
|
2 | 2 | import os, sys |
|
3 | 3 | |
|
4 | path = os.path.split(os.getcwd())[0] | |
|
5 | path = os.path.split(path)[0] | |
|
6 | ||
|
7 | sys.path.insert(0, path) | |
|
8 | ||
|
9 | 4 | from schainpy.controller import Project |
|
10 | 5 | |
|
11 | 6 | controllerObj = Project() |
@@ -18,7 +13,7 controllerObj.setup(id = '002', name='script02', description="JASMET Meteor Dete | |||
|
18 | 13 | # path = '/mnt/jars/2016_08/NOCHE' |
|
19 | 14 | # path = '/media/joscanoa/DATA_JASMET/JASMET/2016_08/DIA' |
|
20 | 15 | # path = '/media/joscanoa/DATA_JASMET/JASMET/2016_08/NOCHE' |
|
21 |
path = '/media/ |
|
|
16 | path = '/media/nanosat/NewVolumen/JASMET/2016_08/DIA' | |
|
22 | 17 | |
|
23 | 18 | #Path para los graficos |
|
24 | 19 | pathfig = os.path.join(os.environ['HOME'],'Pictures/JASMET30/201608/graphics') |
@@ -84,14 +79,7 opObj12.addParameter(name='blocksPerFile', value='1000', format='int') | |||
|
84 | 79 | opObj12.addParameter(name='metadataList',value='type,heightList,paramInterval,timeZone',format='list') |
|
85 | 80 | opObj12.addParameter(name='dataList',value='data_param,utctime',format='list') |
|
86 | 81 | opObj12.addParameter(name='mode',value='2',format='int') |
|
87 | ||
|
88 | #-------------------------------------------------------------------------------------------------- | |
|
89 | 82 | |
|
90 | print "Escribiendo el archivo XML" | |
|
91 | controllerObj.writeXml("JASMET02.xml") | |
|
92 | print "Leyendo el archivo XML" | |
|
93 | controllerObj.readXml("JASMET02.xml") | |
|
83 | #-------------------------------------------------------------------------------------------------- | |
|
94 | 84 | |
|
95 |
controllerObj. |
|
|
96 | controllerObj.connectObjects() | |
|
97 | controllerObj.run() No newline at end of file | |
|
85 | controllerObj.start() |
@@ -14,17 +14,17 controllerObj.setup(id = '004', name='script04', description="JASMET Phase Calib | |||
|
14 | 14 | #Verificar estas variables |
|
15 | 15 | |
|
16 | 16 | #Path donde estan los archivos HDF5 de meteoros |
|
17 | path = os.path.join(os.environ['HOME'],'Pictures/JASMET30/201608/meteor') | |
|
17 | path = os.path.join(os.environ['HOME'],'Pictures/JASMET30_mp/201608/meteor') | |
|
18 | 18 | |
|
19 | 19 | #Path para los graficos |
|
20 | pathfig = os.path.join(os.environ['HOME'],'Pictures/JASMET30/201608/graphics') | |
|
20 | pathfig = os.path.join(os.environ['HOME'],'Pictures/JASMET30_mp/201608/graphics') | |
|
21 | 21 | |
|
22 | 22 | #Path donde se almacenaran las fases calculadas |
|
23 | pathfile = os.path.join(os.environ['HOME'],'Pictures/JASMET30/201608/phase') | |
|
23 | pathfile = os.path.join(os.environ['HOME'],'Pictures/JASMET30_mp/201608/phase') | |
|
24 | 24 | |
|
25 | 25 | #Fechas para busqueda de archivos |
|
26 |
startDate = '2016/08/2 |
|
|
27 |
endDate = '2016/0 |
|
|
26 | startDate = '2016/08/29' | |
|
27 | endDate = '2016/09/11' | |
|
28 | 28 | #Horas para busqueda de archivos |
|
29 | 29 | startTime = '00:00:00' |
|
30 | 30 | endTime = '23:59:59' |
@@ -32,8 +32,8 endTime = '23:59:59' | |||
|
32 | 32 | #------------------------------------------------------------------------------------------------ |
|
33 | 33 | readUnitConfObj = controllerObj.addReadUnit(datatype='ParamReader', |
|
34 | 34 | path=path, |
|
35 |
startDate= |
|
|
36 |
endDate= |
|
|
35 | startDate=startDate, | |
|
36 | endDate=endDate, | |
|
37 | 37 | startTime=startTime, |
|
38 | 38 | endTime=endTime, |
|
39 | 39 | walk=1) |
@@ -65,13 +65,4 opObj33.addParameter(name='metadataList',value='type,outputInterval,timeZone',fo | |||
|
65 | 65 | opObj33.addParameter(name='dataList',value='data_output,utctime',format='list') |
|
66 | 66 | # # opObj25.addParameter(name='mode',value='1,0,0',format='intlist') |
|
67 | 67 | |
|
68 | #-------------------------------------------------------------------------------------------------- | |
|
69 | ||
|
70 | print "Escribiendo el archivo XML" | |
|
71 | controllerObj.writeXml("JASMET04.xml") | |
|
72 | print "Leyendo el archivo XML" | |
|
73 | controllerObj.readXml("JASMET04.xml") | |
|
74 | ||
|
75 | controllerObj.createObjects() | |
|
76 | controllerObj.connectObjects() | |
|
77 | controllerObj.run() No newline at end of file | |
|
68 | controllerObj.start() No newline at end of file |
@@ -14,23 +14,24 controllerObj.setup(id = '005', name='script05', description="JASMET Wind Estima | |||
|
14 | 14 | #Verificar estas variables |
|
15 | 15 | |
|
16 | 16 | #Path donde estan los archivos HDF5 de meteoros |
|
17 | path = os.path.join(os.environ['HOME'],'Pictures/JASMET30/201608/meteor') | |
|
17 | path = os.path.join(os.environ['HOME'],'Pictures/JASMET30_mp/201608/meteor') | |
|
18 | 18 | |
|
19 | 19 | #Path para los graficos |
|
20 | pathfig = os.path.join(os.environ['HOME'],'Pictures/JASMET30/201608/graphics') | |
|
20 | pathfig = os.path.join(os.environ['HOME'],'Pictures/JASMET30_mp/201608/graphics') | |
|
21 | 21 | |
|
22 | 22 | #Path donde se almacenaran las estimaciones de vientos |
|
23 | pathfile = os.path.join(os.environ['HOME'],'Pictures/JASMET30/201608/phase') | |
|
23 | pathfile = os.path.join(os.environ['HOME'],'Pictures/JASMET30_mp/201608/phase') | |
|
24 | 24 | |
|
25 | 25 | #Fechas para busqueda de archivos |
|
26 |
startDate = '2016/08/2 |
|
|
27 |
endDate = '2016/0 |
|
|
26 | startDate = '2016/08/29' | |
|
27 | endDate = '2016/09/11' | |
|
28 | 28 | #Horas para busqueda de archivos |
|
29 | 29 | startTime = '00:00:00' |
|
30 | 30 | endTime = '23:59:59' |
|
31 | 31 | |
|
32 | 32 | #Offsets optimos obtenidos con OptimumOffset.py |
|
33 | phaseOffsets = '-2.84, -1.77, 11.94, 9.71' | |
|
33 | phaseOffsets = '-2.84, -1.77, 11.94, 9.71' | |
|
34 | phaseOffsets = '-5.86, -0.93, -7.29, 23.35' | |
|
34 | 35 | #------------------------------------------------------------------------------------------------ |
|
35 | 36 | readUnitConfObj = controllerObj.addReadUnit(datatype='ParamReader', |
|
36 | 37 | path=path, |
@@ -81,11 +82,4 opObj33.addParameter(name='metadataList',value='type,outputInterval,timeZone',fo | |||
|
81 | 82 | opObj33.addParameter(name='dataList',value='data_output,utctime',format='list') |
|
82 | 83 | #-------------------------------------------------------------------------------------------------- |
|
83 | 84 | |
|
84 | print "Escribiendo el archivo XML" | |
|
85 | controllerObj.writeXml("JASMET05.xml") | |
|
86 | print "Leyendo el archivo XML" | |
|
87 | controllerObj.readXml("JASMET05.xml") | |
|
88 | ||
|
89 | controllerObj.createObjects() | |
|
90 | controllerObj.connectObjects() | |
|
91 | controllerObj.run() No newline at end of file | |
|
85 | controllerObj.start() No newline at end of file |
@@ -11,20 +11,20 def fiber(cursor, skip, q, dt): | |||
|
11 | 11 | controllerObj.setup(id='191', name='test01', description=desc) |
|
12 | 12 | |
|
13 | 13 | readUnitConfObj = controllerObj.addReadUnit(datatype='SpectraReader', |
|
14 |
|
|
|
15 |
|
|
|
16 |
|
|
|
17 |
|
|
|
18 |
|
|
|
19 |
|
|
|
20 |
|
|
|
21 |
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
|
25 |
|
|
|
26 |
|
|
|
27 |
|
|
|
14 | path='/home/nanosat/data/sp1_f0', | |
|
15 | startDate=dt, | |
|
16 | endDate=dt, | |
|
17 | startTime="00:00:00", | |
|
18 | endTime="23:59:59", | |
|
19 | online=0, | |
|
20 | #set=1426485881, | |
|
21 | walk=1, | |
|
22 | queue=q, | |
|
23 | cursor=cursor, | |
|
24 | skip=skip, | |
|
25 | verbose=1 | |
|
26 | #timezone=-5*3600 | |
|
27 | ) | |
|
28 | 28 | |
|
29 | 29 | # #opObj11 = readUnitConfObj.addOperation(name='printNumberOfBlock') |
|
30 | 30 | # |
@@ -93,7 +93,7 def filterOffsets(offsets0, stdvLimit): | |||
|
93 | 93 | |
|
94 | 94 | #---------------------- Setup --------------------------- |
|
95 | 95 | |
|
96 |
path = '/home/ |
|
|
96 | path = '/home/nanosat/Pictures/JASMET30_mp/201608/phase' | |
|
97 | 97 | stdvLimit = 0.5 |
|
98 | 98 | |
|
99 | 99 | #---------------------- Script --------------------------- |
@@ -1,1 +1,1 | |||
|
1 | <Project description="test" id="191" name="john"><ReadUnit datatype="VoltageReader" id="1911" inputId="0" name="VoltageReader"><Operation id="19111" name="run" priority="1" type="self"><Parameter format="str" id="191111" name="server" value="tcp://10.10.10.121:5555" /></Operation></ReadUnit><ProcUnit datatype="VoltageProc" id="1912" inputId="1911" name="VoltageProc"><Operation id="19121" name="run" priority="1" type="self" /></ProcUnit></Project> No newline at end of file | |
|
1 | <Project description="JASMET Wind Estimation" id="005" name="script05"><ReadUnit datatype="ParamReader" id="51" inputId="0" name="ParamReader"><Operation id="511" name="run" priority="1" type="self"><Parameter format="str" id="5111" name="datatype" value="ParamReader" /><Parameter format="str" id="5112" name="path" value="/home/nanosat/Pictures/JASMET30_mp/201608/meteor" /><Parameter format="date" id="5113" name="startDate" value="2016/08/29" /><Parameter format="date" id="5114" name="endDate" value="2016/09/11" /><Parameter format="time" id="5115" name="startTime" value="00:00:00" /><Parameter format="time" id="5116" name="endTime" value="23:59:59" /><Parameter format="int" id="5118" name="walk" value="1" /></Operation></ReadUnit><ProcUnit datatype="ParametersProc" id="52" inputId="51" name="ParametersProc"><Operation id="521" name="run" priority="1" type="self" /><Operation id="522" name="CorrectSMPhases" priority="2" type="other"><Parameter format="floatlist" id="5221" name="phaseOffsets" value="-5.86, -0.93, -7.29, 23.35" /></Operation><Operation id="523" name="SkyMapPlot" priority="3" type="other"><Parameter format="int" id="5231" name="id" value="1" /><Parameter format="str" id="5232" name="wintitle" value="Sky Map" /><Parameter format="bool" id="5233" name="save" value="1" /><Parameter format="str" id="5234" name="figpath" value="/home/nanosat/Pictures/JASMET30_mp/201608/graphics" /><Parameter format="int" id="5235" name="ftp" value="1" /><Parameter format="int" id="5236" name="exp_code" value="15" /><Parameter format="int" id="5237" name="sub_exp_code" value="1" /><Parameter format="int" id="5238" name="tmin" value="0" /><Parameter format="int" id="5239" name="tmax" value="24" /></Operation><Operation id="524" name="WindProfiler" priority="4" type="other"><Parameter format="str" id="5241" name="technique" value="Meteors" /><Parameter format="float" id="5242" name="nHours" value="1" /><Parameter format="float" id="5243" name="hmin" value="70" /><Parameter format="float" id="5244" name="hmax" value="120" /></Operation><Operation id="525" name="WindProfilerPlot" priority="5" type="other"><Parameter format="int" id="5251" name="id" value="2" /><Parameter format="str" id="5252" name="wintitle" value="Wind Profiler" /><Parameter format="bool" id="5253" name="save" value="1" /><Parameter format="str" id="5254" name="figpath" value="/home/nanosat/Pictures/JASMET30_mp/201608/graphics" /><Parameter format="int" id="5255" name="zmin" value="-140" /><Parameter format="int" id="5256" name="zmax" value="140" /><Parameter format="float" id="5257" name="xmin" value="0" /><Parameter format="float" id="5258" name="xmax" value="24" /><Parameter format="float" id="5259" name="ymin" value="70" /><Parameter format="float" id="5260" name="ymax" value="110" /></Operation><Operation id="526" name="ParamWriter" priority="6" type="other"><Parameter format="str" id="5261" name="path" value="/home/nanosat/Pictures/JASMET30_mp/201608/phase" /><Parameter format="int" id="5262" name="blocksPerFile" value="1000" /><Parameter format="list" id="5263" name="metadataList" value="type,outputInterval,timeZone" /><Parameter format="list" id="5264" name="dataList" value="data_output,utctime" /></Operation></ProcUnit></Project> No newline at end of file |
General Comments 0
You need to be logged in to leave comments.
Login now