The requested changes are too big and content was truncated. Show full diff
@@ -0,0 +1,23 | |||
|
1 | Prerequisites: | |
|
2 | ||
|
3 | -numpy 1.8.0 | |
|
4 | - | |
|
5 | ||
|
6 | Signal Chain Installation: | |
|
7 | ||
|
8 | 1. Install numpy, matplotlib, TKAgg | |
|
9 | 2. Install digital_rf_hdf5 module (developed by Haystack Observatory) if you will use USRP data | |
|
10 | 3. untar schainpy-x.x.x.tar.gz | |
|
11 | 4. cd schainpy-x.x.x | |
|
12 | 5. execute: | |
|
13 | [hostname]$ sudo pyhon setup.py install | |
|
14 | 6. testing gui: | |
|
15 | [hostname]$ schainGUI (enter) | |
|
16 | ||
|
17 | If you want to use serialization and zerorpc you will need to install the next packages: | |
|
18 | ||
|
19 | 1. zerorpc | |
|
20 | [hostname]$ sudo port install zerorpc | |
|
21 | ||
|
22 | 2. cPickle, msgpack and msgpack_numpy | |
|
23 | [hostname]$ sudo port install cPickle msgpack mspack_numpy No newline at end of file |
@@ -0,0 +1,15 | |||
|
1 | import os, sys | |
|
2 | ||
|
3 | def get_path (): | |
|
4 | """Borrowed from wxglade.py""" | |
|
5 | try: | |
|
6 | root = __file__ | |
|
7 | if os.path.islink (root): | |
|
8 | root = os.path.realpath (root) | |
|
9 | ||
|
10 | return os.path.dirname (os.path.abspath (root)) | |
|
11 | except: | |
|
12 | print "I'm sorry, but something is wrong." | |
|
13 | print "There is no __file__ variable. Please contact the author." | |
|
14 | return "" | |
|
15 | No newline at end of file |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/.bash_logout to schainpy/gui/figures/.bash_logout |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/Crear.jpg to schainpy/gui/figures/Crear.jpg |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/Open Sign.jpg to schainpy/gui/figures/Open Sign.jpg |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/__init__.py to schainpy/gui/figures/__init__.py |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/add_PU.gif to schainpy/gui/figures/add_PU.gif |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/adn.jpg to schainpy/gui/figures/adn.jpg |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/guardar.jpeg to schainpy/gui/figures/guardar.jpeg |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/open.gif to schainpy/gui/figures/open.gif |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/open.png to schainpy/gui/figures/open.png |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/pause.png to schainpy/gui/figures/pause.png |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/pausered.png to schainpy/gui/figures/pausered.png |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/play.jpg to schainpy/gui/figures/play.jpg |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/project.gif to schainpy/gui/figures/project.gif |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/saveicon.jpeg to schainpy/gui/figures/saveicon.jpeg |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/startServer.png to schainpy/gui/figures/startServer.png |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/stop.jpg to schainpy/gui/figures/stop.jpg |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/stopServer.png to schainpy/gui/figures/stopServer.png |
|
1 | NO CONTENT: file renamed from schainpy/gui/figure/w.jpg to schainpy/gui/figures/w.jpg |
|
1 | NO CONTENT: file renamed from schainpy/gui/schaingui.py to schainpy/gui/schainGUI |
|
1 | NO CONTENT: modified file | |
The requested commit or file is too big and content was truncated. Show full diff |
@@ -1,42 +1,46 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | """ |
|
4 | 4 | Module implementing InitWindow. |
|
5 | 5 | """ |
|
6 | import os | |
|
6 | 7 | |
|
7 | 8 | from PyQt4.QtGui import QDialog |
|
8 | 9 | from PyQt4.QtCore import pyqtSignature |
|
9 | 10 | from PyQt4 import QtCore |
|
10 | 11 | from PyQt4 import QtGui |
|
11 | 12 | |
|
12 | 13 | from schainpy.gui.viewer.ui_initwindow import Ui_InitWindow |
|
14 | from schainpy.gui.figures import tools | |
|
15 | ||
|
16 | FIGURES_PATH = tools.get_path() | |
|
13 | 17 | |
|
14 | 18 | class InitWindow(QDialog, Ui_InitWindow): |
|
15 | 19 | """ |
|
16 | 20 | Class documentation goes here. |
|
17 | 21 | """ |
|
18 | 22 | def __init__(self, parent = None): |
|
19 | 23 | """ |
|
20 | 24 | Constructor |
|
21 | 25 | """ |
|
22 | 26 | QDialog.__init__(self, parent) |
|
23 | 27 | self.setupUi(self) |
|
24 | 28 | self.setWindowTitle("ROJ-Signal Chain") |
|
25 |
self.setWindowIcon(QtGui.QIcon(" |
|
|
29 | self.setWindowIcon(QtGui.QIcon( os.path.join(FIGURES_PATH,"adn.jpg") )) | |
|
26 | 30 | |
|
27 | 31 | @pyqtSignature("") |
|
28 | 32 | def on_ExitBtn_clicked(self): |
|
29 | 33 | """ |
|
30 | 34 | Exit cierra la ventana de Bienvenida |
|
31 | 35 | """ |
|
32 | 36 | self.close() |
|
33 | 37 | |
|
34 | 38 | @pyqtSignature("") |
|
35 | 39 | def on_ContinueBtn_clicked(self): |
|
36 | 40 | """ |
|
37 | 41 | Continue cierra la ventana de Bienvenida, a este evento se le complementa con la accion |
|
38 | 42 | conectar con la ventana de configuracion de Workspace |
|
39 | 43 | """ |
|
40 | 44 | # TODO: not implemented yet |
|
41 | 45 | #raise NotImplementedError |
|
42 | 46 | self.accept() |
@@ -1,67 +1,70 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | import os |
|
3 | 3 | from os.path import expanduser |
|
4 | 4 | |
|
5 | 5 | from PyQt4.QtGui import QDialog |
|
6 | 6 | from PyQt4.QtCore import pyqtSignature |
|
7 | 7 | from PyQt4.QtCore import pyqtSignal |
|
8 | 8 | from PyQt4 import QtGui, QtCore |
|
9 | 9 | |
|
10 | 10 | from schainpy.gui.viewer.ui_workspace import Ui_Workspace |
|
11 | from schainpy.gui.figures import tools | |
|
12 | ||
|
13 | FIGURES_PATH = tools.get_path() | |
|
11 | 14 | |
|
12 | 15 | class Workspace(QDialog, Ui_Workspace): |
|
13 | 16 | """ |
|
14 | 17 | Class documentation goes here. |
|
15 | 18 | """ |
|
16 | 19 | |
|
17 | 20 | def __init__(self, parent = None): |
|
18 | 21 | """ |
|
19 | 22 | Constructor |
|
20 | 23 | """ |
|
21 | 24 | QDialog.__init__(self, parent) |
|
22 | 25 | self.dirList=[] |
|
23 | 26 | self.setupUi(self) |
|
24 | 27 | self.setWindowTitle("ROJ-Signal Chain") |
|
25 |
self.setWindowIcon(QtGui.QIcon(" |
|
|
28 | self.setWindowIcon(QtGui.QIcon( os.path.join(FIGURES_PATH,"adn.jpg") )) | |
|
26 | 29 | #*####### DIRECTORIO DE TRABAJO #########*# |
|
27 | 30 | #self.dirCmbBox.setItemText(0, QtGui.QApplication.translate("MainWindow", "C:\WorkSpaceGui", None, QtGui.QApplication.UnicodeUTF8)) |
|
28 | 31 | home=expanduser("~") |
|
29 | 32 | self.dir=os.path.join(home,'schain_workspace') |
|
30 | 33 | if not os.path.exists(self.dir): |
|
31 | 34 | os.makedirs(self.dir) |
|
32 | 35 | self.dirComBox.addItem(self.dir) |
|
33 | 36 | self.i=0 |
|
34 | 37 | |
|
35 | 38 | |
|
36 | 39 | @pyqtSignature("") |
|
37 | 40 | def on_dirToolPath_clicked(self): |
|
38 | 41 | """ |
|
39 | 42 | Slot documentation goes here. |
|
40 | 43 | """ |
|
41 | 44 | self.i +=1 |
|
42 | 45 | self.dirBrowse = str(QtGui.QFileDialog.getExistingDirectory(self, 'Open Directory', './', QtGui.QFileDialog.ShowDirsOnly)) |
|
43 | 46 | self.dirComBox.addItem(self.dirBrowse) |
|
44 | 47 | self.dirComBox.setCurrentIndex(self.i) |
|
45 | 48 | |
|
46 | 49 | |
|
47 | 50 | |
|
48 | 51 | @pyqtSignature("") |
|
49 | 52 | def on_dirOkBtn_clicked(self): |
|
50 | 53 | """ |
|
51 | 54 | VISTA DE INTERFAZ GRÃFICA |
|
52 | 55 | """ |
|
53 | 56 | self.accept() |
|
54 | 57 | # self.close() |
|
55 | 58 | # |
|
56 | 59 | @pyqtSignature("") |
|
57 | 60 | def on_dirCancelBtn_clicked(self): |
|
58 | 61 | """ |
|
59 | 62 | Cerrar |
|
60 | 63 | """ |
|
61 | 64 | self.close() |
|
62 | 65 | |
|
63 | 66 | |
|
64 | 67 | |
|
65 | 68 | |
|
66 | 69 | |
|
67 | 70 | No newline at end of file |
@@ -1,88 +1,93 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | # Form implementation generated from reading ui file '/home/roj-idl71/SignalChain/initwindowv2.ui' |
|
4 | 4 | # |
|
5 | 5 | # Created: Wed Mar 6 15:32:39 2013 |
|
6 | 6 | # by: PyQt4 UI code generator 4.8.6 |
|
7 | 7 | # |
|
8 | 8 | # WARNING! All changes made in this file will be lost! |
|
9 | 9 | |
|
10 | 10 | from PyQt4 import QtCore, QtGui |
|
11 | 11 | |
|
12 | 12 | try: |
|
13 | 13 | _fromUtf8 = QtCore.QString.fromUtf8 |
|
14 | 14 | except AttributeError: |
|
15 | 15 | _fromUtf8 = lambda s: s |
|
16 | 16 | |
|
17 | import os | |
|
18 | from schainpy.gui.figures import tools | |
|
19 | ||
|
20 | FIGURES_PATH = tools.get_path() | |
|
21 | ||
|
17 | 22 | class Ui_InitWindow(object): |
|
18 | 23 | def setupUi(self, Dialog): |
|
19 | 24 | Dialog.setObjectName(_fromUtf8("Dialog")) |
|
20 | 25 | Dialog.resize(652, 496) |
|
21 | 26 | Dialog.setWindowTitle(QtGui.QApplication.translate("Dialog", "Dialog", None, QtGui.QApplication.UnicodeUTF8)) |
|
22 | 27 | self.gridLayout = QtGui.QGridLayout(Dialog) |
|
23 | 28 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) |
|
24 | 29 | self.verticalLayout_3 = QtGui.QVBoxLayout() |
|
25 | 30 | self.verticalLayout_3.setObjectName(_fromUtf8("verticalLayout_3")) |
|
26 | 31 | self.verticalLayout_4 = QtGui.QVBoxLayout() |
|
27 | 32 | self.verticalLayout_4.setObjectName(_fromUtf8("verticalLayout_4")) |
|
28 | 33 | self.label_3 = QtGui.QLabel(Dialog) |
|
29 | 34 | font = QtGui.QFont() |
|
30 | 35 | font.setFamily(_fromUtf8("Cambria")) |
|
31 | 36 | font.setPointSize(22) |
|
32 | 37 | font.setBold(False) |
|
33 | 38 | font.setWeight(50) |
|
34 | 39 | self.label_3.setFont(font) |
|
35 | 40 | self.label_3.setText(QtGui.QApplication.translate("Dialog", "Signal Chain - Ver. 1.0", None, QtGui.QApplication.UnicodeUTF8)) |
|
36 | 41 | self.label_3.setObjectName(_fromUtf8("label_3")) |
|
37 | 42 | self.verticalLayout_4.addWidget(self.label_3) |
|
38 | 43 | self.line_2 = QtGui.QFrame(Dialog) |
|
39 | 44 | self.line_2.setFrameShape(QtGui.QFrame.HLine) |
|
40 | 45 | self.line_2.setFrameShadow(QtGui.QFrame.Sunken) |
|
41 | 46 | self.line_2.setObjectName(_fromUtf8("line_2")) |
|
42 | 47 | self.verticalLayout_4.addWidget(self.line_2) |
|
43 | 48 | self.label_4 = QtGui.QLabel(Dialog) |
|
44 | 49 | self.label_4.setText(_fromUtf8("")) |
|
45 |
self.label_4.setPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
50 | self.label_4.setPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"w.jpg") ))) | |
|
46 | 51 | self.label_4.setScaledContents(True) |
|
47 | 52 | self.label_4.setObjectName(_fromUtf8("label_4")) |
|
48 | 53 | self.verticalLayout_4.addWidget(self.label_4) |
|
49 | 54 | self.verticalLayout_3.addLayout(self.verticalLayout_4) |
|
50 | 55 | self.horizontalLayout_3 = QtGui.QHBoxLayout() |
|
51 | 56 | self.horizontalLayout_3.setObjectName(_fromUtf8("horizontalLayout_3")) |
|
52 | 57 | self.horizontalLayout_4 = QtGui.QHBoxLayout() |
|
53 | 58 | self.horizontalLayout_4.setObjectName(_fromUtf8("horizontalLayout_4")) |
|
54 | 59 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
55 | 60 | self.horizontalLayout_4.addItem(spacerItem) |
|
56 | 61 | self.ExitBtn = QtGui.QPushButton(Dialog) |
|
57 | 62 | self.ExitBtn.setText(QtGui.QApplication.translate("Dialog", "Exit", None, QtGui.QApplication.UnicodeUTF8)) |
|
58 | 63 | self.ExitBtn.setObjectName(_fromUtf8("ExitBtn")) |
|
59 | 64 | self.horizontalLayout_4.addWidget(self.ExitBtn) |
|
60 | 65 | self.ContinueBtn = QtGui.QPushButton(Dialog) |
|
61 | 66 | self.ContinueBtn.setText(QtGui.QApplication.translate("Dialog", "Continue", None, QtGui.QApplication.UnicodeUTF8)) |
|
62 | 67 | self.ContinueBtn.setObjectName(_fromUtf8("ContinueBtn")) |
|
63 | 68 | self.horizontalLayout_4.addWidget(self.ContinueBtn) |
|
64 | 69 | spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
65 | 70 | self.horizontalLayout_4.addItem(spacerItem1) |
|
66 | 71 | self.horizontalLayout_3.addLayout(self.horizontalLayout_4) |
|
67 | 72 | self.verticalLayout_3.addLayout(self.horizontalLayout_3) |
|
68 | 73 | self.gridLayout.addLayout(self.verticalLayout_3, 0, 0, 1, 1) |
|
69 | 74 | |
|
70 | 75 | self.retranslateUi(Dialog) |
|
71 | 76 | QtCore.QMetaObject.connectSlotsByName(Dialog) |
|
72 | 77 | |
|
73 | 78 | def retranslateUi(self, Dialog): |
|
74 | 79 | pass |
|
75 | 80 | |
|
76 | 81 | |
|
77 | 82 | if __name__ == "__main__": |
|
78 | 83 | import sys |
|
79 | 84 | app = QtGui.QApplication(sys.argv) |
|
80 | 85 | Dialog = QtGui.QDialog() |
|
81 | 86 | ui = Ui_InitWindow() |
|
82 | 87 | ui.setupUi(Dialog) |
|
83 | 88 | Dialog.show() |
|
84 | 89 | sys.exit(app.exec_()) |
|
85 | 90 | |
|
86 | 91 | |
|
87 | 92 | |
|
88 | 93 |
@@ -1,1532 +1,1537 | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | |
|
3 | 3 | # Form implementation generated from reading ui file '/home/alex/ui/MainWindow_21_02_13_v49.ui' |
|
4 | 4 | # |
|
5 | 5 | # Created: Mon Mar 24 13:28:36 2014 |
|
6 | 6 | # by: PyQt4 UI code generator 4.10 |
|
7 | 7 | # |
|
8 | 8 | # WARNING! All changes made in this file will be lost! |
|
9 | 9 | |
|
10 | 10 | from PyQt4 import QtCore, QtGui |
|
11 | 11 | from windows import * |
|
12 | 12 | |
|
13 | 13 | try: |
|
14 | 14 | _fromUtf8 = QtCore.QString.fromUtf8 |
|
15 | 15 | except AttributeError: |
|
16 | 16 | def _fromUtf8(s): |
|
17 | 17 | return s |
|
18 | 18 | |
|
19 | 19 | try: |
|
20 | 20 | _encoding = QtGui.QApplication.UnicodeUTF8 |
|
21 | 21 | def _translate(context, text, disambig): |
|
22 | 22 | return QtGui.QApplication.translate(context, text, disambig, _encoding) |
|
23 | 23 | except AttributeError: |
|
24 | 24 | def _translate(context, text, disambig): |
|
25 | 25 | return QtGui.QApplication.translate(context, text, disambig) |
|
26 | 26 | |
|
27 | import os | |
|
28 | from schainpy.gui.figures import tools | |
|
29 | ||
|
30 | FIGURES_PATH = tools.get_path() | |
|
31 | ||
|
27 | 32 | class Ui_MainWindow(object): |
|
28 | 33 | |
|
29 | 34 | def setupUi(self, MainWindow): |
|
30 | 35 | |
|
31 | 36 | MainWindow.setObjectName(_fromUtf8("MainWindow")) |
|
32 | 37 | MainWindow.resize(1203, 711) |
|
33 | 38 | |
|
34 | 39 | self.centralWidget = QtGui.QWidget(MainWindow) |
|
35 | 40 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) |
|
36 | 41 | self.gridLayout_16 = QtGui.QGridLayout(self.centralWidget) |
|
37 | 42 | self.gridLayout_16.setObjectName(_fromUtf8("gridLayout_16")) |
|
38 | 43 | self.splitter_2 = QtGui.QSplitter(self.centralWidget) |
|
39 | 44 | self.splitter_2.setOrientation(QtCore.Qt.Horizontal) |
|
40 | 45 | self.splitter_2.setObjectName(_fromUtf8("splitter_2")) |
|
41 | 46 | self.projectExplorerTree = QtGui.QTreeView(self.splitter_2) |
|
42 | 47 | self.projectExplorerTree.setObjectName(_fromUtf8("projectExplorerTree")) |
|
43 | 48 | self.splitter = QtGui.QSplitter(self.splitter_2) |
|
44 | 49 | self.splitter.setOrientation(QtCore.Qt.Vertical) |
|
45 | 50 | self.splitter.setObjectName(_fromUtf8("splitter")) |
|
46 | 51 | self.tabWidgetProject = QtGui.QTabWidget(self.splitter) |
|
47 | 52 | self.tabWidgetProject.setMinimumSize(QtCore.QSize(0, 278)) |
|
48 | 53 | self.tabWidgetProject.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
49 | 54 | self.tabWidgetProject.setObjectName(_fromUtf8("tabWidgetProject")) |
|
50 | 55 | |
|
51 | 56 | |
|
52 | 57 | self.tabProject = QtGui.QWidget() |
|
53 | 58 | self.tabProject.setObjectName(_fromUtf8("tabProject")) |
|
54 | 59 | self.gridLayout_15 = QtGui.QGridLayout(self.tabProject) |
|
55 | 60 | self.gridLayout_15.setObjectName(_fromUtf8("gridLayout_15")) |
|
56 | 61 | self.frame = QtGui.QFrame(self.tabProject) |
|
57 | 62 | self.frame.setFrameShape(QtGui.QFrame.StyledPanel) |
|
58 | 63 | self.frame.setFrameShadow(QtGui.QFrame.Raised) |
|
59 | 64 | self.frame.setObjectName(_fromUtf8("frame")) |
|
60 | 65 | self.gridLayout_2 = QtGui.QGridLayout(self.frame) |
|
61 | 66 | self.gridLayout_2.setObjectName(_fromUtf8("gridLayout_2")) |
|
62 | 67 | |
|
63 | 68 | self.label = QtGui.QLabel(self.frame) |
|
64 | 69 | self.label.setObjectName(_fromUtf8("label")) |
|
65 | 70 | self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1) |
|
66 | 71 | self.proName = QtGui.QLineEdit(self.frame) |
|
67 | 72 | self.proName.setObjectName(_fromUtf8("proName")) |
|
68 | 73 | self.gridLayout_2.addWidget(self.proName, 0, 1, 1, 8) |
|
69 | 74 | self.label_11 = QtGui.QLabel(self.frame) |
|
70 | 75 | self.label_11.setObjectName(_fromUtf8("label_11")) |
|
71 | 76 | self.gridLayout_2.addWidget(self.label_11, 1, 0, 1, 1) |
|
72 | 77 | self.proComDataType = QtGui.QComboBox(self.frame) |
|
73 | 78 | self.proComDataType.setObjectName(_fromUtf8("proComDataType")) |
|
74 | 79 | self.proComDataType.addItem(_fromUtf8("")) |
|
75 | 80 | self.proComDataType.addItem(_fromUtf8("")) |
|
76 | 81 | self.proComDataType.addItem(_fromUtf8("")) |
|
77 | 82 | self.gridLayout_2.addWidget(self.proComDataType, 1, 1, 1, 5) |
|
78 | 83 | self.proDataType = QtGui.QLineEdit(self.frame) |
|
79 | 84 | self.proDataType.setObjectName(_fromUtf8("proDataType")) |
|
80 | 85 | self.gridLayout_2.addWidget(self.proDataType, 1, 6, 1, 3) |
|
81 | 86 | self.label_15 = QtGui.QLabel(self.frame) |
|
82 | 87 | self.label_15.setObjectName(_fromUtf8("label_15")) |
|
83 | 88 | self.gridLayout_2.addWidget(self.label_15, 2, 0, 1, 1) |
|
84 | 89 | self.proToolPath = QtGui.QToolButton(self.frame) |
|
85 | 90 | self.proToolPath.setObjectName(_fromUtf8("proToolPath")) |
|
86 | 91 | self.gridLayout_2.addWidget(self.proToolPath, 2, 1, 1, 1) |
|
87 | 92 | self.proDataPath = QtGui.QLineEdit(self.frame) |
|
88 | 93 | self.proDataPath.setObjectName(_fromUtf8("proDataPath")) |
|
89 | 94 | self.gridLayout_2.addWidget(self.proDataPath, 2, 2, 1, 7) |
|
90 | 95 | self.label_23 = QtGui.QLabel(self.frame) |
|
91 | 96 | self.label_23.setObjectName(_fromUtf8("label_23")) |
|
92 | 97 | self.gridLayout_2.addWidget(self.label_23, 3, 0, 1, 1) |
|
93 | 98 | self.proComReadMode = QtGui.QComboBox(self.frame) |
|
94 | 99 | self.proComReadMode.setObjectName(_fromUtf8("proComReadMode")) |
|
95 | 100 | self.proComReadMode.addItem(_fromUtf8("")) |
|
96 | 101 | self.proComReadMode.addItem(_fromUtf8("")) |
|
97 | 102 | self.gridLayout_2.addWidget(self.proComReadMode, 3, 1, 1, 2) |
|
98 | 103 | self.label_33 = QtGui.QLabel(self.frame) |
|
99 | 104 | self.label_33.setObjectName(_fromUtf8("label_33")) |
|
100 | 105 | self.gridLayout_2.addWidget(self.label_33, 3, 5, 1, 2) |
|
101 | 106 | self.proDelay = QtGui.QLineEdit(self.frame) |
|
102 | 107 | self.proDelay.setObjectName(_fromUtf8("proDelay")) |
|
103 | 108 | self.gridLayout_2.addWidget(self.proDelay, 3, 8, 1, 1) |
|
104 | 109 | self.label_32 = QtGui.QLabel(self.frame) |
|
105 | 110 | self.label_32.setObjectName(_fromUtf8("label_32")) |
|
106 | 111 | self.gridLayout_2.addWidget(self.label_32, 4, 0, 1, 1) |
|
107 | 112 | self.proComWalk = QtGui.QComboBox(self.frame) |
|
108 | 113 | self.proComWalk.setObjectName(_fromUtf8("proComWalk")) |
|
109 | 114 | self.proComWalk.addItem(_fromUtf8("")) |
|
110 | 115 | self.proComWalk.addItem(_fromUtf8("")) |
|
111 | 116 | self.gridLayout_2.addWidget(self.proComWalk, 4, 1, 1, 8) |
|
112 | 117 | self.proLoadButton = QtGui.QPushButton(self.frame) |
|
113 | 118 | self.proLoadButton.setObjectName(_fromUtf8("proLoadButton")) |
|
114 | 119 | self.gridLayout_2.addWidget(self.proLoadButton, 5, 0, 1, 9) |
|
115 | 120 | self.label_10 = QtGui.QLabel(self.frame) |
|
116 | 121 | self.label_10.setObjectName(_fromUtf8("label_10")) |
|
117 | 122 | self.gridLayout_2.addWidget(self.label_10, 3, 3, 1, 1) |
|
118 | 123 | self.proSet = QtGui.QLineEdit(self.frame) |
|
119 | 124 | self.proSet.setObjectName(_fromUtf8("proSet")) |
|
120 | 125 | self.gridLayout_2.addWidget(self.proSet, 3, 4, 1, 1) |
|
121 | 126 | self.gridLayout_15.addWidget(self.frame, 0, 0, 1, 1) |
|
122 | 127 | self.frame_2 = QtGui.QFrame(self.tabProject) |
|
123 | 128 | self.frame_2.setFrameShape(QtGui.QFrame.StyledPanel) |
|
124 | 129 | self.frame_2.setFrameShadow(QtGui.QFrame.Raised) |
|
125 | 130 | self.frame_2.setObjectName(_fromUtf8("frame_2")) |
|
126 | 131 | self.gridLayout_10 = QtGui.QGridLayout(self.frame_2) |
|
127 | 132 | self.gridLayout_10.setObjectName(_fromUtf8("gridLayout_10")) |
|
128 | 133 | self.label_27 = QtGui.QLabel(self.frame_2) |
|
129 | 134 | self.label_27.setObjectName(_fromUtf8("label_27")) |
|
130 | 135 | self.gridLayout_10.addWidget(self.label_27, 0, 0, 1, 1) |
|
131 | 136 | self.proComStartDate = QtGui.QComboBox(self.frame_2) |
|
132 | 137 | self.proComStartDate.setObjectName(_fromUtf8("proComStartDate")) |
|
133 | 138 | self.gridLayout_10.addWidget(self.proComStartDate, 0, 1, 1, 1) |
|
134 | 139 | self.label_28 = QtGui.QLabel(self.frame_2) |
|
135 | 140 | self.label_28.setObjectName(_fromUtf8("label_28")) |
|
136 | 141 | self.gridLayout_10.addWidget(self.label_28, 1, 0, 1, 1) |
|
137 | 142 | self.proComEndDate = QtGui.QComboBox(self.frame_2) |
|
138 | 143 | self.proComEndDate.setObjectName(_fromUtf8("proComEndDate")) |
|
139 | 144 | self.gridLayout_10.addWidget(self.proComEndDate, 1, 1, 1, 1) |
|
140 | 145 | self.label_2 = QtGui.QLabel(self.frame_2) |
|
141 | 146 | self.label_2.setObjectName(_fromUtf8("label_2")) |
|
142 | 147 | self.gridLayout_10.addWidget(self.label_2, 2, 0, 1, 1) |
|
143 | 148 | self.proStartTime = QtGui.QTimeEdit(self.frame_2) |
|
144 | 149 | self.proStartTime.setObjectName(_fromUtf8("proStartTime")) |
|
145 | 150 | self.gridLayout_10.addWidget(self.proStartTime, 2, 1, 1, 1) |
|
146 | 151 | self.label_3 = QtGui.QLabel(self.frame_2) |
|
147 | 152 | self.label_3.setObjectName(_fromUtf8("label_3")) |
|
148 | 153 | self.gridLayout_10.addWidget(self.label_3, 3, 0, 1, 1) |
|
149 | 154 | self.proEndTime = QtGui.QTimeEdit(self.frame_2) |
|
150 | 155 | self.proEndTime.setObjectName(_fromUtf8("proEndTime")) |
|
151 | 156 | self.gridLayout_10.addWidget(self.proEndTime, 3, 1, 1, 1) |
|
152 | 157 | self.label_30 = QtGui.QLabel(self.frame_2) |
|
153 | 158 | self.label_30.setObjectName(_fromUtf8("label_30")) |
|
154 | 159 | self.gridLayout_10.addWidget(self.label_30, 4, 0, 1, 1) |
|
155 | 160 | self.proDescription = QtGui.QTextEdit(self.frame_2) |
|
156 | 161 | self.proDescription.setObjectName(_fromUtf8("proDescription")) |
|
157 | 162 | self.gridLayout_10.addWidget(self.proDescription, 4, 1, 1, 1) |
|
158 | 163 | self.gridLayout_15.addWidget(self.frame_2, 1, 0, 1, 1) |
|
159 | 164 | self.frame_3 = QtGui.QFrame(self.tabProject) |
|
160 | 165 | self.frame_3.setFrameShape(QtGui.QFrame.StyledPanel) |
|
161 | 166 | self.frame_3.setFrameShadow(QtGui.QFrame.Raised) |
|
162 | 167 | self.frame_3.setObjectName(_fromUtf8("frame_3")) |
|
163 | 168 | self.gridLayout_14 = QtGui.QGridLayout(self.frame_3) |
|
164 | 169 | self.gridLayout_14.setObjectName(_fromUtf8("gridLayout_14")) |
|
165 | 170 | self.proOk = QtGui.QPushButton(self.frame_3) |
|
166 | 171 | self.proOk.setObjectName(_fromUtf8("proOk")) |
|
167 | 172 | self.gridLayout_14.addWidget(self.proOk, 0, 0, 1, 1) |
|
168 | 173 | self.proClear = QtGui.QPushButton(self.frame_3) |
|
169 | 174 | self.proClear.setObjectName(_fromUtf8("proClear")) |
|
170 | 175 | self.gridLayout_14.addWidget(self.proClear, 0, 1, 1, 1) |
|
171 | 176 | self.gridLayout_15.addWidget(self.frame_3, 2, 0, 1, 1) |
|
172 | 177 | self.tabWidgetProject.addTab(self.tabProject, _fromUtf8("")) |
|
173 | 178 | self.tabVoltage = QtGui.QWidget() |
|
174 | 179 | self.tabVoltage.setObjectName(_fromUtf8("tabVoltage")) |
|
175 | 180 | self.gridLayout_3 = QtGui.QGridLayout(self.tabVoltage) |
|
176 | 181 | self.gridLayout_3.setObjectName(_fromUtf8("gridLayout_3")) |
|
177 | 182 | self.frame_4 = QtGui.QFrame(self.tabVoltage) |
|
178 | 183 | self.frame_4.setFrameShape(QtGui.QFrame.StyledPanel) |
|
179 | 184 | self.frame_4.setFrameShadow(QtGui.QFrame.Raised) |
|
180 | 185 | self.frame_4.setObjectName(_fromUtf8("frame_4")) |
|
181 | 186 | self.gridLayout_17 = QtGui.QGridLayout(self.frame_4) |
|
182 | 187 | self.gridLayout_17.setObjectName(_fromUtf8("gridLayout_17")) |
|
183 | 188 | self.volOpOk = QtGui.QPushButton(self.frame_4) |
|
184 | 189 | self.volOpOk.setObjectName(_fromUtf8("volOpOk")) |
|
185 | 190 | self.gridLayout_17.addWidget(self.volOpOk, 0, 0, 1, 1) |
|
186 | 191 | self.volGraphClear = QtGui.QPushButton(self.frame_4) |
|
187 | 192 | self.volGraphClear.setObjectName(_fromUtf8("volGraphClear")) |
|
188 | 193 | self.gridLayout_17.addWidget(self.volGraphClear, 0, 1, 1, 1) |
|
189 | 194 | self.gridLayout_3.addWidget(self.frame_4, 1, 1, 1, 1) |
|
190 | 195 | self.tabWidgetVoltage = QtGui.QTabWidget(self.tabVoltage) |
|
191 | 196 | self.tabWidgetVoltage.setObjectName(_fromUtf8("tabWidgetVoltage")) |
|
192 | 197 | self.tabopVoltage = QtGui.QWidget() |
|
193 | 198 | self.tabopVoltage.setObjectName(_fromUtf8("tabopVoltage")) |
|
194 | 199 | self.gridLayout = QtGui.QGridLayout(self.tabopVoltage) |
|
195 | 200 | self.gridLayout.setObjectName(_fromUtf8("gridLayout")) |
|
196 | 201 | self.volOpHeights = QtGui.QLineEdit(self.tabopVoltage) |
|
197 | 202 | self.volOpHeights.setObjectName(_fromUtf8("volOpHeights")) |
|
198 | 203 | self.gridLayout.addWidget(self.volOpHeights, 4, 4, 1, 1) |
|
199 | 204 | self.volOpComHeights = QtGui.QComboBox(self.tabopVoltage) |
|
200 | 205 | self.volOpComHeights.setObjectName(_fromUtf8("volOpComHeights")) |
|
201 | 206 | self.volOpComHeights.addItem(_fromUtf8("")) |
|
202 | 207 | self.volOpComHeights.addItem(_fromUtf8("")) |
|
203 | 208 | self.gridLayout.addWidget(self.volOpComHeights, 4, 0, 1, 3) |
|
204 | 209 | self.volOpComChannels = QtGui.QComboBox(self.tabopVoltage) |
|
205 | 210 | self.volOpComChannels.setObjectName(_fromUtf8("volOpComChannels")) |
|
206 | 211 | self.volOpComChannels.addItem(_fromUtf8("")) |
|
207 | 212 | self.volOpComChannels.addItem(_fromUtf8("")) |
|
208 | 213 | self.gridLayout.addWidget(self.volOpComChannels, 2, 0, 1, 3) |
|
209 | 214 | self.volOpCebProfile = QtGui.QCheckBox(self.tabopVoltage) |
|
210 | 215 | self.volOpCebProfile.setObjectName(_fromUtf8("volOpCebProfile")) |
|
211 | 216 | self.gridLayout.addWidget(self.volOpCebProfile, 6, 0, 1, 3) |
|
212 | 217 | self.volOpComProfile = QtGui.QComboBox(self.tabopVoltage) |
|
213 | 218 | self.volOpComProfile.setObjectName(_fromUtf8("volOpComProfile")) |
|
214 | 219 | self.volOpComProfile.addItem(_fromUtf8("")) |
|
215 | 220 | self.volOpComProfile.addItem(_fromUtf8("")) |
|
216 | 221 | self.gridLayout.addWidget(self.volOpComProfile, 7, 0, 1, 3) |
|
217 | 222 | self.volOpCebDecodification = QtGui.QCheckBox(self.tabopVoltage) |
|
218 | 223 | self.volOpCebDecodification.setObjectName(_fromUtf8("volOpCebDecodification")) |
|
219 | 224 | self.gridLayout.addWidget(self.volOpCebDecodification, 8, 0, 1, 3) |
|
220 | 225 | self.volOpCebCohInt = QtGui.QCheckBox(self.tabopVoltage) |
|
221 | 226 | self.volOpCebCohInt.setObjectName(_fromUtf8("volOpCebCohInt")) |
|
222 | 227 | self.gridLayout.addWidget(self.volOpCebCohInt, 11, 0, 1, 3) |
|
223 | 228 | self.volOpProfile = QtGui.QLineEdit(self.tabopVoltage) |
|
224 | 229 | self.volOpProfile.setObjectName(_fromUtf8("volOpProfile")) |
|
225 | 230 | self.gridLayout.addWidget(self.volOpProfile, 7, 4, 1, 1) |
|
226 | 231 | self.volOpFilter = QtGui.QLineEdit(self.tabopVoltage) |
|
227 | 232 | self.volOpFilter.setObjectName(_fromUtf8("volOpFilter")) |
|
228 | 233 | self.gridLayout.addWidget(self.volOpFilter, 5, 4, 1, 1) |
|
229 | 234 | spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
230 | 235 | self.gridLayout.addItem(spacerItem, 6, 4, 1, 1) |
|
231 | 236 | spacerItem1 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
232 | 237 | self.gridLayout.addItem(spacerItem1, 8, 4, 1, 1) |
|
233 | 238 | spacerItem2 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
234 | 239 | self.gridLayout.addItem(spacerItem2, 3, 4, 1, 1) |
|
235 | 240 | self.volOpChannel = QtGui.QLineEdit(self.tabopVoltage) |
|
236 | 241 | self.volOpChannel.setObjectName(_fromUtf8("volOpChannel")) |
|
237 | 242 | self.gridLayout.addWidget(self.volOpChannel, 2, 4, 1, 1) |
|
238 | 243 | self.label_4 = QtGui.QLabel(self.tabopVoltage) |
|
239 | 244 | self.label_4.setObjectName(_fromUtf8("label_4")) |
|
240 | 245 | self.gridLayout.addWidget(self.label_4, 9, 2, 1, 1) |
|
241 | 246 | self.volOpCebChannels = QtGui.QCheckBox(self.tabopVoltage) |
|
242 | 247 | self.volOpCebChannels.setObjectName(_fromUtf8("volOpCebChannels")) |
|
243 | 248 | self.gridLayout.addWidget(self.volOpCebChannels, 1, 0, 1, 3) |
|
244 | 249 | self.volOpCebHeights = QtGui.QCheckBox(self.tabopVoltage) |
|
245 | 250 | self.volOpCebHeights.setObjectName(_fromUtf8("volOpCebHeights")) |
|
246 | 251 | self.gridLayout.addWidget(self.volOpCebHeights, 3, 0, 1, 3) |
|
247 | 252 | self.volOpCebFilter = QtGui.QCheckBox(self.tabopVoltage) |
|
248 | 253 | self.volOpCebFilter.setObjectName(_fromUtf8("volOpCebFilter")) |
|
249 | 254 | self.gridLayout.addWidget(self.volOpCebFilter, 5, 0, 1, 3) |
|
250 | 255 | self.volOpRadarfrequency = QtGui.QLineEdit(self.tabopVoltage) |
|
251 | 256 | self.volOpRadarfrequency.setObjectName(_fromUtf8("volOpRadarfrequency")) |
|
252 | 257 | self.gridLayout.addWidget(self.volOpRadarfrequency, 0, 4, 1, 1) |
|
253 | 258 | self.volOpCebRadarfrequency = QtGui.QCheckBox(self.tabopVoltage) |
|
254 | 259 | self.volOpCebRadarfrequency.setObjectName(_fromUtf8("volOpCebRadarfrequency")) |
|
255 | 260 | self.gridLayout.addWidget(self.volOpCebRadarfrequency, 0, 0, 1, 3) |
|
256 | 261 | self.label_5 = QtGui.QLabel(self.tabopVoltage) |
|
257 | 262 | self.label_5.setObjectName(_fromUtf8("label_5")) |
|
258 | 263 | self.gridLayout.addWidget(self.label_5, 10, 2, 1, 1) |
|
259 | 264 | spacerItem3 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
260 | 265 | self.gridLayout.addItem(spacerItem3, 1, 4, 1, 1) |
|
261 | 266 | self.volOpCohInt = QtGui.QLineEdit(self.tabopVoltage) |
|
262 | 267 | self.volOpCohInt.setObjectName(_fromUtf8("volOpCohInt")) |
|
263 | 268 | self.gridLayout.addWidget(self.volOpCohInt, 11, 4, 1, 1) |
|
264 | 269 | self.volOpComCode = QtGui.QComboBox(self.tabopVoltage) |
|
265 | 270 | self.volOpComCode.setObjectName(_fromUtf8("volOpComCode")) |
|
266 | 271 | self.volOpComCode.addItem(_fromUtf8("")) |
|
267 | 272 | self.volOpComCode.addItem(_fromUtf8("")) |
|
268 | 273 | self.volOpComCode.addItem(_fromUtf8("")) |
|
269 | 274 | self.volOpComCode.addItem(_fromUtf8("")) |
|
270 | 275 | self.volOpComCode.addItem(_fromUtf8("")) |
|
271 | 276 | self.volOpComCode.addItem(_fromUtf8("")) |
|
272 | 277 | self.volOpComCode.addItem(_fromUtf8("")) |
|
273 | 278 | self.volOpComCode.addItem(_fromUtf8("")) |
|
274 | 279 | self.volOpComCode.addItem(_fromUtf8("")) |
|
275 | 280 | self.volOpComCode.addItem(_fromUtf8("")) |
|
276 | 281 | self.volOpComCode.addItem(_fromUtf8("")) |
|
277 | 282 | self.volOpComCode.addItem(_fromUtf8("")) |
|
278 | 283 | self.volOpComCode.addItem(_fromUtf8("")) |
|
279 | 284 | self.gridLayout.addWidget(self.volOpComCode, 9, 4, 1, 1) |
|
280 | 285 | self.volOpComMode = QtGui.QComboBox(self.tabopVoltage) |
|
281 | 286 | self.volOpComMode.setObjectName(_fromUtf8("volOpComMode")) |
|
282 | 287 | self.volOpComMode.addItem(_fromUtf8("")) |
|
283 | 288 | self.volOpComMode.addItem(_fromUtf8("")) |
|
284 | 289 | self.gridLayout.addWidget(self.volOpComMode, 10, 4, 1, 1) |
|
285 | 290 | self.tabWidgetVoltage.addTab(self.tabopVoltage, _fromUtf8("")) |
|
286 | 291 | self.tabgraphVoltage = QtGui.QWidget() |
|
287 | 292 | self.tabgraphVoltage.setObjectName(_fromUtf8("tabgraphVoltage")) |
|
288 | 293 | self.gridLayout_6 = QtGui.QGridLayout(self.tabgraphVoltage) |
|
289 | 294 | self.gridLayout_6.setObjectName(_fromUtf8("gridLayout_6")) |
|
290 | 295 | spacerItem4 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
291 | 296 | self.gridLayout_6.addItem(spacerItem4, 12, 3, 1, 1) |
|
292 | 297 | self.volGraphfreqrange = QtGui.QLineEdit(self.tabgraphVoltage) |
|
293 | 298 | self.volGraphfreqrange.setObjectName(_fromUtf8("volGraphfreqrange")) |
|
294 | 299 | self.gridLayout_6.addWidget(self.volGraphfreqrange, 9, 1, 1, 6) |
|
295 | 300 | self.volGraphPrefix = QtGui.QLineEdit(self.tabgraphVoltage) |
|
296 | 301 | self.volGraphPrefix.setObjectName(_fromUtf8("volGraphPrefix")) |
|
297 | 302 | self.gridLayout_6.addWidget(self.volGraphPrefix, 2, 1, 1, 6) |
|
298 | 303 | self.volGraphToolPath = QtGui.QToolButton(self.tabgraphVoltage) |
|
299 | 304 | self.volGraphToolPath.setObjectName(_fromUtf8("volGraphToolPath")) |
|
300 | 305 | self.gridLayout_6.addWidget(self.volGraphToolPath, 1, 5, 1, 2) |
|
301 | 306 | self.volGraphPath = QtGui.QLineEdit(self.tabgraphVoltage) |
|
302 | 307 | self.volGraphPath.setObjectName(_fromUtf8("volGraphPath")) |
|
303 | 308 | self.gridLayout_6.addWidget(self.volGraphPath, 1, 1, 1, 4) |
|
304 | 309 | self.label_14 = QtGui.QLabel(self.tabgraphVoltage) |
|
305 | 310 | self.label_14.setObjectName(_fromUtf8("label_14")) |
|
306 | 311 | self.gridLayout_6.addWidget(self.label_14, 6, 0, 1, 1) |
|
307 | 312 | spacerItem5 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
308 | 313 | self.gridLayout_6.addItem(spacerItem5, 3, 3, 1, 1) |
|
309 | 314 | self.label_8 = QtGui.QLabel(self.tabgraphVoltage) |
|
310 | 315 | self.label_8.setObjectName(_fromUtf8("label_8")) |
|
311 | 316 | self.gridLayout_6.addWidget(self.label_8, 8, 0, 1, 1) |
|
312 | 317 | self.label_49 = QtGui.QLabel(self.tabgraphVoltage) |
|
313 | 318 | self.label_49.setObjectName(_fromUtf8("label_49")) |
|
314 | 319 | self.gridLayout_6.addWidget(self.label_49, 4, 3, 1, 1) |
|
315 | 320 | self.label_51 = QtGui.QLabel(self.tabgraphVoltage) |
|
316 | 321 | self.label_51.setObjectName(_fromUtf8("label_51")) |
|
317 | 322 | self.gridLayout_6.addWidget(self.label_51, 9, 0, 1, 1) |
|
318 | 323 | self.volGraphCebshow = QtGui.QCheckBox(self.tabgraphVoltage) |
|
319 | 324 | self.volGraphCebshow.setText(_fromUtf8("")) |
|
320 | 325 | self.volGraphCebshow.setObjectName(_fromUtf8("volGraphCebshow")) |
|
321 | 326 | self.gridLayout_6.addWidget(self.volGraphCebshow, 6, 3, 1, 1) |
|
322 | 327 | self.label_12 = QtGui.QLabel(self.tabgraphVoltage) |
|
323 | 328 | self.label_12.setObjectName(_fromUtf8("label_12")) |
|
324 | 329 | self.gridLayout_6.addWidget(self.label_12, 1, 0, 1, 1) |
|
325 | 330 | self.label_13 = QtGui.QLabel(self.tabgraphVoltage) |
|
326 | 331 | self.label_13.setObjectName(_fromUtf8("label_13")) |
|
327 | 332 | self.gridLayout_6.addWidget(self.label_13, 2, 0, 1, 1) |
|
328 | 333 | self.label_52 = QtGui.QLabel(self.tabgraphVoltage) |
|
329 | 334 | self.label_52.setObjectName(_fromUtf8("label_52")) |
|
330 | 335 | self.gridLayout_6.addWidget(self.label_52, 11, 0, 1, 1) |
|
331 | 336 | spacerItem6 = QtGui.QSpacerItem(40, 12, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
332 | 337 | self.gridLayout_6.addItem(spacerItem6, 14, 5, 1, 2) |
|
333 | 338 | spacerItem7 = QtGui.QSpacerItem(18, 12, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
334 | 339 | self.gridLayout_6.addItem(spacerItem7, 14, 3, 1, 1) |
|
335 | 340 | self.volGraphChannelList = QtGui.QLineEdit(self.tabgraphVoltage) |
|
336 | 341 | self.volGraphChannelList.setObjectName(_fromUtf8("volGraphChannelList")) |
|
337 | 342 | self.gridLayout_6.addWidget(self.volGraphChannelList, 8, 1, 1, 6) |
|
338 | 343 | self.volGraphHeightrange = QtGui.QLineEdit(self.tabgraphVoltage) |
|
339 | 344 | self.volGraphHeightrange.setObjectName(_fromUtf8("volGraphHeightrange")) |
|
340 | 345 | self.gridLayout_6.addWidget(self.volGraphHeightrange, 11, 1, 1, 6) |
|
341 | 346 | self.label_50 = QtGui.QLabel(self.tabgraphVoltage) |
|
342 | 347 | self.label_50.setObjectName(_fromUtf8("label_50")) |
|
343 | 348 | self.gridLayout_6.addWidget(self.label_50, 4, 4, 1, 1) |
|
344 | 349 | self.volGraphCebSave = QtGui.QCheckBox(self.tabgraphVoltage) |
|
345 | 350 | self.volGraphCebSave.setText(_fromUtf8("")) |
|
346 | 351 | self.volGraphCebSave.setObjectName(_fromUtf8("volGraphCebSave")) |
|
347 | 352 | self.gridLayout_6.addWidget(self.volGraphCebSave, 6, 4, 1, 1) |
|
348 | 353 | self.tabWidgetVoltage.addTab(self.tabgraphVoltage, _fromUtf8("")) |
|
349 | 354 | self.taboutputVoltage = QtGui.QWidget() |
|
350 | 355 | self.taboutputVoltage.setObjectName(_fromUtf8("taboutputVoltage")) |
|
351 | 356 | self.gridLayout_12 = QtGui.QGridLayout(self.taboutputVoltage) |
|
352 | 357 | self.gridLayout_12.setObjectName(_fromUtf8("gridLayout_12")) |
|
353 | 358 | self.label_36 = QtGui.QLabel(self.taboutputVoltage) |
|
354 | 359 | self.label_36.setObjectName(_fromUtf8("label_36")) |
|
355 | 360 | self.gridLayout_12.addWidget(self.label_36, 0, 0, 1, 1) |
|
356 | 361 | self.label_37 = QtGui.QLabel(self.taboutputVoltage) |
|
357 | 362 | self.label_37.setObjectName(_fromUtf8("label_37")) |
|
358 | 363 | self.gridLayout_12.addWidget(self.label_37, 1, 0, 1, 1) |
|
359 | 364 | self.volOutputPath = QtGui.QLineEdit(self.taboutputVoltage) |
|
360 | 365 | self.volOutputPath.setObjectName(_fromUtf8("volOutputPath")) |
|
361 | 366 | self.gridLayout_12.addWidget(self.volOutputPath, 1, 2, 1, 1) |
|
362 | 367 | self.volOutputToolPath = QtGui.QToolButton(self.taboutputVoltage) |
|
363 | 368 | self.volOutputToolPath.setObjectName(_fromUtf8("volOutputToolPath")) |
|
364 | 369 | self.gridLayout_12.addWidget(self.volOutputToolPath, 1, 3, 1, 1) |
|
365 | 370 | self.volOutputComData = QtGui.QComboBox(self.taboutputVoltage) |
|
366 | 371 | self.volOutputComData.setObjectName(_fromUtf8("volOutputComData")) |
|
367 | 372 | self.volOutputComData.addItem(_fromUtf8("")) |
|
368 | 373 | self.gridLayout_12.addWidget(self.volOutputComData, 0, 2, 1, 2) |
|
369 | 374 | spacerItem8 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
370 | 375 | self.gridLayout_12.addItem(spacerItem8, 5, 2, 1, 1) |
|
371 | 376 | self.volOutputblocksperfile = QtGui.QLineEdit(self.taboutputVoltage) |
|
372 | 377 | self.volOutputblocksperfile.setObjectName(_fromUtf8("volOutputblocksperfile")) |
|
373 | 378 | self.gridLayout_12.addWidget(self.volOutputblocksperfile, 3, 2, 1, 1) |
|
374 | 379 | self.label_7 = QtGui.QLabel(self.taboutputVoltage) |
|
375 | 380 | self.label_7.setObjectName(_fromUtf8("label_7")) |
|
376 | 381 | self.gridLayout_12.addWidget(self.label_7, 3, 0, 1, 1) |
|
377 | 382 | self.label_35 = QtGui.QLabel(self.taboutputVoltage) |
|
378 | 383 | self.label_35.setObjectName(_fromUtf8("label_35")) |
|
379 | 384 | self.gridLayout_12.addWidget(self.label_35, 4, 0, 1, 1) |
|
380 | 385 | self.volOutputprofilesperblock = QtGui.QLineEdit(self.taboutputVoltage) |
|
381 | 386 | self.volOutputprofilesperblock.setObjectName(_fromUtf8("volOutputprofilesperblock")) |
|
382 | 387 | self.gridLayout_12.addWidget(self.volOutputprofilesperblock, 4, 2, 1, 1) |
|
383 | 388 | self.tabWidgetVoltage.addTab(self.taboutputVoltage, _fromUtf8("")) |
|
384 | 389 | self.gridLayout_3.addWidget(self.tabWidgetVoltage, 0, 1, 1, 1) |
|
385 | 390 | self.tabWidgetProject.addTab(self.tabVoltage, _fromUtf8("")) |
|
386 | 391 | self.tabSpectra = QtGui.QWidget() |
|
387 | 392 | self.tabSpectra.setObjectName(_fromUtf8("tabSpectra")) |
|
388 | 393 | self.gridLayout_7 = QtGui.QGridLayout(self.tabSpectra) |
|
389 | 394 | self.gridLayout_7.setObjectName(_fromUtf8("gridLayout_7")) |
|
390 | 395 | self.frame_5 = QtGui.QFrame(self.tabSpectra) |
|
391 | 396 | self.frame_5.setFrameShape(QtGui.QFrame.StyledPanel) |
|
392 | 397 | self.frame_5.setFrameShadow(QtGui.QFrame.Raised) |
|
393 | 398 | self.frame_5.setObjectName(_fromUtf8("frame_5")) |
|
394 | 399 | self.gridLayout_18 = QtGui.QGridLayout(self.frame_5) |
|
395 | 400 | self.gridLayout_18.setObjectName(_fromUtf8("gridLayout_18")) |
|
396 | 401 | self.specOpOk = QtGui.QPushButton(self.frame_5) |
|
397 | 402 | self.specOpOk.setObjectName(_fromUtf8("specOpOk")) |
|
398 | 403 | self.gridLayout_18.addWidget(self.specOpOk, 0, 0, 1, 1) |
|
399 | 404 | self.specGraphClear = QtGui.QPushButton(self.frame_5) |
|
400 | 405 | self.specGraphClear.setObjectName(_fromUtf8("specGraphClear")) |
|
401 | 406 | self.gridLayout_18.addWidget(self.specGraphClear, 0, 1, 1, 1) |
|
402 | 407 | self.gridLayout_7.addWidget(self.frame_5, 1, 1, 1, 1) |
|
403 | 408 | self.tabWidgetSpectra = QtGui.QTabWidget(self.tabSpectra) |
|
404 | 409 | self.tabWidgetSpectra.setObjectName(_fromUtf8("tabWidgetSpectra")) |
|
405 | 410 | self.tabopSpectra = QtGui.QWidget() |
|
406 | 411 | self.tabopSpectra.setObjectName(_fromUtf8("tabopSpectra")) |
|
407 | 412 | self.gridLayout_5 = QtGui.QGridLayout(self.tabopSpectra) |
|
408 | 413 | self.gridLayout_5.setObjectName(_fromUtf8("gridLayout_5")) |
|
409 | 414 | self.specOpCebCrossSpectra = QtGui.QCheckBox(self.tabopSpectra) |
|
410 | 415 | self.specOpCebCrossSpectra.setObjectName(_fromUtf8("specOpCebCrossSpectra")) |
|
411 | 416 | self.gridLayout_5.addWidget(self.specOpCebCrossSpectra, 4, 0, 1, 2) |
|
412 | 417 | self.specOpComChannel = QtGui.QComboBox(self.tabopSpectra) |
|
413 | 418 | self.specOpComChannel.setObjectName(_fromUtf8("specOpComChannel")) |
|
414 | 419 | self.specOpComChannel.addItem(_fromUtf8("")) |
|
415 | 420 | self.specOpComChannel.addItem(_fromUtf8("")) |
|
416 | 421 | self.gridLayout_5.addWidget(self.specOpComChannel, 8, 0, 1, 2) |
|
417 | 422 | self.specOpChannel = QtGui.QLineEdit(self.tabopSpectra) |
|
418 | 423 | self.specOpChannel.setObjectName(_fromUtf8("specOpChannel")) |
|
419 | 424 | self.gridLayout_5.addWidget(self.specOpChannel, 8, 3, 1, 2) |
|
420 | 425 | self.specOpComHeights = QtGui.QComboBox(self.tabopSpectra) |
|
421 | 426 | self.specOpComHeights.setObjectName(_fromUtf8("specOpComHeights")) |
|
422 | 427 | self.specOpComHeights.addItem(_fromUtf8("")) |
|
423 | 428 | self.specOpComHeights.addItem(_fromUtf8("")) |
|
424 | 429 | self.gridLayout_5.addWidget(self.specOpComHeights, 11, 0, 1, 2) |
|
425 | 430 | self.specOpHeights = QtGui.QLineEdit(self.tabopSpectra) |
|
426 | 431 | self.specOpHeights.setObjectName(_fromUtf8("specOpHeights")) |
|
427 | 432 | self.gridLayout_5.addWidget(self.specOpHeights, 11, 3, 1, 2) |
|
428 | 433 | self.specOpIncoherent = QtGui.QLineEdit(self.tabopSpectra) |
|
429 | 434 | self.specOpIncoherent.setObjectName(_fromUtf8("specOpIncoherent")) |
|
430 | 435 | self.gridLayout_5.addWidget(self.specOpIncoherent, 13, 3, 1, 2) |
|
431 | 436 | self.specOpCebRemoveDC = QtGui.QCheckBox(self.tabopSpectra) |
|
432 | 437 | self.specOpCebRemoveDC.setObjectName(_fromUtf8("specOpCebRemoveDC")) |
|
433 | 438 | self.gridLayout_5.addWidget(self.specOpCebRemoveDC, 14, 0, 1, 2) |
|
434 | 439 | self.specOpCebHeights = QtGui.QCheckBox(self.tabopSpectra) |
|
435 | 440 | self.specOpCebHeights.setObjectName(_fromUtf8("specOpCebHeights")) |
|
436 | 441 | self.gridLayout_5.addWidget(self.specOpCebHeights, 9, 0, 1, 1) |
|
437 | 442 | self.specOpCebChannel = QtGui.QCheckBox(self.tabopSpectra) |
|
438 | 443 | self.specOpCebChannel.setObjectName(_fromUtf8("specOpCebChannel")) |
|
439 | 444 | self.gridLayout_5.addWidget(self.specOpCebChannel, 7, 0, 1, 1) |
|
440 | 445 | self.specOppairsList = QtGui.QLineEdit(self.tabopSpectra) |
|
441 | 446 | self.specOppairsList.setObjectName(_fromUtf8("specOppairsList")) |
|
442 | 447 | self.gridLayout_5.addWidget(self.specOppairsList, 6, 3, 1, 2) |
|
443 | 448 | self.specOpnFFTpoints = QtGui.QLineEdit(self.tabopSpectra) |
|
444 | 449 | self.specOpnFFTpoints.setObjectName(_fromUtf8("specOpnFFTpoints")) |
|
445 | 450 | self.gridLayout_5.addWidget(self.specOpnFFTpoints, 2, 3, 1, 2) |
|
446 | 451 | self.label_31 = QtGui.QLabel(self.tabopSpectra) |
|
447 | 452 | self.label_31.setObjectName(_fromUtf8("label_31")) |
|
448 | 453 | self.gridLayout_5.addWidget(self.label_31, 6, 0, 1, 2) |
|
449 | 454 | self.label_26 = QtGui.QLabel(self.tabopSpectra) |
|
450 | 455 | self.label_26.setObjectName(_fromUtf8("label_26")) |
|
451 | 456 | self.gridLayout_5.addWidget(self.label_26, 2, 0, 1, 2) |
|
452 | 457 | self.specOpCebIncoherent = QtGui.QCheckBox(self.tabopSpectra) |
|
453 | 458 | self.specOpCebIncoherent.setObjectName(_fromUtf8("specOpCebIncoherent")) |
|
454 | 459 | self.gridLayout_5.addWidget(self.specOpCebIncoherent, 12, 0, 1, 1) |
|
455 | 460 | self.specOpCobIncInt = QtGui.QComboBox(self.tabopSpectra) |
|
456 | 461 | self.specOpCobIncInt.setObjectName(_fromUtf8("specOpCobIncInt")) |
|
457 | 462 | self.specOpCobIncInt.addItem(_fromUtf8("")) |
|
458 | 463 | self.specOpCobIncInt.addItem(_fromUtf8("")) |
|
459 | 464 | self.gridLayout_5.addWidget(self.specOpCobIncInt, 13, 0, 1, 2) |
|
460 | 465 | spacerItem9 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
461 | 466 | self.gridLayout_5.addItem(spacerItem9, 12, 3, 1, 1) |
|
462 | 467 | self.specOpCebRadarfrequency = QtGui.QCheckBox(self.tabopSpectra) |
|
463 | 468 | self.specOpCebRadarfrequency.setObjectName(_fromUtf8("specOpCebRadarfrequency")) |
|
464 | 469 | self.gridLayout_5.addWidget(self.specOpCebRadarfrequency, 0, 0, 1, 2) |
|
465 | 470 | spacerItem10 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
466 | 471 | self.gridLayout_5.addItem(spacerItem10, 9, 3, 1, 1) |
|
467 | 472 | spacerItem11 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
468 | 473 | self.gridLayout_5.addItem(spacerItem11, 7, 3, 1, 1) |
|
469 | 474 | self.specOpRadarfrequency = QtGui.QLineEdit(self.tabopSpectra) |
|
470 | 475 | self.specOpRadarfrequency.setObjectName(_fromUtf8("specOpRadarfrequency")) |
|
471 | 476 | self.gridLayout_5.addWidget(self.specOpRadarfrequency, 0, 3, 1, 2) |
|
472 | 477 | spacerItem12 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
473 | 478 | self.gridLayout_5.addItem(spacerItem12, 4, 3, 1, 1) |
|
474 | 479 | self.label_21 = QtGui.QLabel(self.tabopSpectra) |
|
475 | 480 | self.label_21.setObjectName(_fromUtf8("label_21")) |
|
476 | 481 | self.gridLayout_5.addWidget(self.label_21, 1, 0, 1, 1) |
|
477 | 482 | self.specOpProfiles = QtGui.QLineEdit(self.tabopSpectra) |
|
478 | 483 | self.specOpProfiles.setObjectName(_fromUtf8("specOpProfiles")) |
|
479 | 484 | self.gridLayout_5.addWidget(self.specOpProfiles, 1, 3, 1, 2) |
|
480 | 485 | self.specOpCebRemoveInt = QtGui.QCheckBox(self.tabopSpectra) |
|
481 | 486 | self.specOpCebRemoveInt.setObjectName(_fromUtf8("specOpCebRemoveInt")) |
|
482 | 487 | self.gridLayout_5.addWidget(self.specOpCebRemoveInt, 15, 0, 1, 1) |
|
483 | 488 | spacerItem13 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
484 | 489 | self.gridLayout_5.addItem(spacerItem13, 15, 3, 1, 1) |
|
485 | 490 | self.label_70 = QtGui.QLabel(self.tabopSpectra) |
|
486 | 491 | self.label_70.setObjectName(_fromUtf8("label_70")) |
|
487 | 492 | self.gridLayout_5.addWidget(self.label_70, 3, 0, 1, 1) |
|
488 | 493 | self.specOpCebgetNoise = QtGui.QCheckBox(self.tabopSpectra) |
|
489 | 494 | self.specOpCebgetNoise.setObjectName(_fromUtf8("specOpCebgetNoise")) |
|
490 | 495 | self.gridLayout_5.addWidget(self.specOpCebgetNoise, 16, 0, 1, 1) |
|
491 | 496 | self.specOpippFactor = QtGui.QLineEdit(self.tabopSpectra) |
|
492 | 497 | self.specOpippFactor.setObjectName(_fromUtf8("specOpippFactor")) |
|
493 | 498 | self.gridLayout_5.addWidget(self.specOpippFactor, 3, 3, 1, 2) |
|
494 | 499 | self.specOpComRemoveDC = QtGui.QComboBox(self.tabopSpectra) |
|
495 | 500 | self.specOpComRemoveDC.setObjectName(_fromUtf8("specOpComRemoveDC")) |
|
496 | 501 | self.specOpComRemoveDC.addItem(_fromUtf8("")) |
|
497 | 502 | self.specOpComRemoveDC.addItem(_fromUtf8("")) |
|
498 | 503 | self.gridLayout_5.addWidget(self.specOpComRemoveDC, 14, 3, 1, 2) |
|
499 | 504 | self.specOpgetNoise = QtGui.QLineEdit(self.tabopSpectra) |
|
500 | 505 | self.specOpgetNoise.setObjectName(_fromUtf8("specOpgetNoise")) |
|
501 | 506 | self.gridLayout_5.addWidget(self.specOpgetNoise, 16, 3, 1, 2) |
|
502 | 507 | self.tabWidgetSpectra.addTab(self.tabopSpectra, _fromUtf8("")) |
|
503 | 508 | self.tabgraphSpectra = QtGui.QWidget() |
|
504 | 509 | self.tabgraphSpectra.setObjectName(_fromUtf8("tabgraphSpectra")) |
|
505 | 510 | self.gridLayout_9 = QtGui.QGridLayout(self.tabgraphSpectra) |
|
506 | 511 | self.gridLayout_9.setObjectName(_fromUtf8("gridLayout_9")) |
|
507 | 512 | self.label_44 = QtGui.QLabel(self.tabgraphSpectra) |
|
508 | 513 | self.label_44.setObjectName(_fromUtf8("label_44")) |
|
509 | 514 | self.gridLayout_9.addWidget(self.label_44, 10, 0, 1, 1) |
|
510 | 515 | spacerItem14 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
511 | 516 | self.gridLayout_9.addItem(spacerItem14, 14, 2, 1, 1) |
|
512 | 517 | self.label_20 = QtGui.QLabel(self.tabgraphSpectra) |
|
513 | 518 | self.label_20.setObjectName(_fromUtf8("label_20")) |
|
514 | 519 | self.gridLayout_9.addWidget(self.label_20, 21, 0, 1, 1) |
|
515 | 520 | self.specGraphSaveRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) |
|
516 | 521 | self.specGraphSaveRTInoise.setText(_fromUtf8("")) |
|
517 | 522 | self.specGraphSaveRTInoise.setObjectName(_fromUtf8("specGraphSaveRTInoise")) |
|
518 | 523 | self.gridLayout_9.addWidget(self.specGraphSaveRTInoise, 13, 4, 1, 1) |
|
519 | 524 | self.specGgraphmagnitud = QtGui.QLineEdit(self.tabgraphSpectra) |
|
520 | 525 | self.specGgraphmagnitud.setObjectName(_fromUtf8("specGgraphmagnitud")) |
|
521 | 526 | self.gridLayout_9.addWidget(self.specGgraphmagnitud, 20, 1, 1, 7) |
|
522 | 527 | self.specGraphSaveSpectra = QtGui.QCheckBox(self.tabgraphSpectra) |
|
523 | 528 | self.specGraphSaveSpectra.setText(_fromUtf8("")) |
|
524 | 529 | self.specGraphSaveSpectra.setObjectName(_fromUtf8("specGraphSaveSpectra")) |
|
525 | 530 | self.gridLayout_9.addWidget(self.specGraphSaveSpectra, 6, 4, 1, 1) |
|
526 | 531 | self.specGgraphChannelList = QtGui.QLineEdit(self.tabgraphSpectra) |
|
527 | 532 | self.specGgraphChannelList.setObjectName(_fromUtf8("specGgraphChannelList")) |
|
528 | 533 | self.gridLayout_9.addWidget(self.specGgraphChannelList, 15, 1, 1, 7) |
|
529 | 534 | self.label_25 = QtGui.QLabel(self.tabgraphSpectra) |
|
530 | 535 | self.label_25.setObjectName(_fromUtf8("label_25")) |
|
531 | 536 | self.gridLayout_9.addWidget(self.label_25, 2, 0, 1, 1) |
|
532 | 537 | self.specGgraphTminTmax = QtGui.QLineEdit(self.tabgraphSpectra) |
|
533 | 538 | self.specGgraphTminTmax.setObjectName(_fromUtf8("specGgraphTminTmax")) |
|
534 | 539 | self.gridLayout_9.addWidget(self.specGgraphTminTmax, 21, 1, 1, 7) |
|
535 | 540 | spacerItem15 = QtGui.QSpacerItem(28, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
536 | 541 | self.gridLayout_9.addItem(spacerItem15, 27, 6, 1, 2) |
|
537 | 542 | spacerItem16 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
538 | 543 | self.gridLayout_9.addItem(spacerItem16, 3, 5, 1, 1) |
|
539 | 544 | self.label_42 = QtGui.QLabel(self.tabgraphSpectra) |
|
540 | 545 | self.label_42.setObjectName(_fromUtf8("label_42")) |
|
541 | 546 | self.gridLayout_9.addWidget(self.label_42, 9, 0, 1, 1) |
|
542 | 547 | self.label_16 = QtGui.QLabel(self.tabgraphSpectra) |
|
543 | 548 | self.label_16.setObjectName(_fromUtf8("label_16")) |
|
544 | 549 | self.gridLayout_9.addWidget(self.label_16, 18, 0, 1, 1) |
|
545 | 550 | self.label_17 = QtGui.QLabel(self.tabgraphSpectra) |
|
546 | 551 | self.label_17.setObjectName(_fromUtf8("label_17")) |
|
547 | 552 | self.gridLayout_9.addWidget(self.label_17, 19, 0, 1, 1) |
|
548 | 553 | self.label_18 = QtGui.QLabel(self.tabgraphSpectra) |
|
549 | 554 | self.label_18.setObjectName(_fromUtf8("label_18")) |
|
550 | 555 | self.gridLayout_9.addWidget(self.label_18, 20, 0, 1, 1) |
|
551 | 556 | self.specGgraphFreq = QtGui.QLineEdit(self.tabgraphSpectra) |
|
552 | 557 | self.specGgraphFreq.setObjectName(_fromUtf8("specGgraphFreq")) |
|
553 | 558 | self.gridLayout_9.addWidget(self.specGgraphFreq, 16, 1, 1, 7) |
|
554 | 559 | self.specGgraphHeight = QtGui.QLineEdit(self.tabgraphSpectra) |
|
555 | 560 | self.specGgraphHeight.setObjectName(_fromUtf8("specGgraphHeight")) |
|
556 | 561 | self.gridLayout_9.addWidget(self.specGgraphHeight, 18, 1, 1, 7) |
|
557 | 562 | spacerItem17 = QtGui.QSpacerItem(49, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
558 | 563 | self.gridLayout_9.addItem(spacerItem17, 27, 0, 1, 1) |
|
559 | 564 | self.label_24 = QtGui.QLabel(self.tabgraphSpectra) |
|
560 | 565 | self.label_24.setObjectName(_fromUtf8("label_24")) |
|
561 | 566 | self.gridLayout_9.addWidget(self.label_24, 0, 0, 1, 1) |
|
562 | 567 | self.specGraphPrefix = QtGui.QLineEdit(self.tabgraphSpectra) |
|
563 | 568 | self.specGraphPrefix.setObjectName(_fromUtf8("specGraphPrefix")) |
|
564 | 569 | self.gridLayout_9.addWidget(self.specGraphPrefix, 2, 1, 1, 7) |
|
565 | 570 | self.specGgraphDbsrange = QtGui.QLineEdit(self.tabgraphSpectra) |
|
566 | 571 | self.specGgraphDbsrange.setObjectName(_fromUtf8("specGgraphDbsrange")) |
|
567 | 572 | self.gridLayout_9.addWidget(self.specGgraphDbsrange, 19, 1, 1, 7) |
|
568 | 573 | self.label_46 = QtGui.QLabel(self.tabgraphSpectra) |
|
569 | 574 | self.label_46.setObjectName(_fromUtf8("label_46")) |
|
570 | 575 | self.gridLayout_9.addWidget(self.label_46, 11, 0, 1, 1) |
|
571 | 576 | self.label_22 = QtGui.QLabel(self.tabgraphSpectra) |
|
572 | 577 | self.label_22.setObjectName(_fromUtf8("label_22")) |
|
573 | 578 | self.gridLayout_9.addWidget(self.label_22, 16, 0, 1, 1) |
|
574 | 579 | self.specGraphPath = QtGui.QLineEdit(self.tabgraphSpectra) |
|
575 | 580 | self.specGraphPath.setObjectName(_fromUtf8("specGraphPath")) |
|
576 | 581 | self.gridLayout_9.addWidget(self.specGraphPath, 0, 1, 1, 6) |
|
577 | 582 | self.label_41 = QtGui.QLabel(self.tabgraphSpectra) |
|
578 | 583 | self.label_41.setObjectName(_fromUtf8("label_41")) |
|
579 | 584 | self.gridLayout_9.addWidget(self.label_41, 8, 0, 1, 1) |
|
580 | 585 | self.specGraphToolPath = QtGui.QToolButton(self.tabgraphSpectra) |
|
581 | 586 | self.specGraphToolPath.setObjectName(_fromUtf8("specGraphToolPath")) |
|
582 | 587 | self.gridLayout_9.addWidget(self.specGraphToolPath, 0, 7, 1, 1) |
|
583 | 588 | self.label_6 = QtGui.QLabel(self.tabgraphSpectra) |
|
584 | 589 | self.label_6.setObjectName(_fromUtf8("label_6")) |
|
585 | 590 | self.gridLayout_9.addWidget(self.label_6, 15, 0, 1, 1) |
|
586 | 591 | self.label_40 = QtGui.QLabel(self.tabgraphSpectra) |
|
587 | 592 | self.label_40.setObjectName(_fromUtf8("label_40")) |
|
588 | 593 | self.gridLayout_9.addWidget(self.label_40, 6, 0, 1, 1) |
|
589 | 594 | self.specGraphCebSpectraplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
590 | 595 | self.specGraphCebSpectraplot.setText(_fromUtf8("")) |
|
591 | 596 | self.specGraphCebSpectraplot.setObjectName(_fromUtf8("specGraphCebSpectraplot")) |
|
592 | 597 | self.gridLayout_9.addWidget(self.specGraphCebSpectraplot, 6, 2, 1, 1) |
|
593 | 598 | self.specGraphCebCrossSpectraplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
594 | 599 | self.specGraphCebCrossSpectraplot.setText(_fromUtf8("")) |
|
595 | 600 | self.specGraphCebCrossSpectraplot.setObjectName(_fromUtf8("specGraphCebCrossSpectraplot")) |
|
596 | 601 | self.gridLayout_9.addWidget(self.specGraphCebCrossSpectraplot, 8, 2, 1, 1) |
|
597 | 602 | self.specGraphCebRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
598 | 603 | self.specGraphCebRTIplot.setText(_fromUtf8("")) |
|
599 | 604 | self.specGraphCebRTIplot.setObjectName(_fromUtf8("specGraphCebRTIplot")) |
|
600 | 605 | self.gridLayout_9.addWidget(self.specGraphCebRTIplot, 9, 2, 1, 1) |
|
601 | 606 | self.specGraphCebCoherencmap = QtGui.QCheckBox(self.tabgraphSpectra) |
|
602 | 607 | self.specGraphCebCoherencmap.setText(_fromUtf8("")) |
|
603 | 608 | self.specGraphCebCoherencmap.setObjectName(_fromUtf8("specGraphCebCoherencmap")) |
|
604 | 609 | self.gridLayout_9.addWidget(self.specGraphCebCoherencmap, 10, 2, 1, 1) |
|
605 | 610 | self.specGraphPowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) |
|
606 | 611 | self.specGraphPowerprofile.setText(_fromUtf8("")) |
|
607 | 612 | self.specGraphPowerprofile.setObjectName(_fromUtf8("specGraphPowerprofile")) |
|
608 | 613 | self.gridLayout_9.addWidget(self.specGraphPowerprofile, 11, 2, 1, 1) |
|
609 | 614 | self.specGraphSaveCross = QtGui.QCheckBox(self.tabgraphSpectra) |
|
610 | 615 | self.specGraphSaveCross.setText(_fromUtf8("")) |
|
611 | 616 | self.specGraphSaveCross.setObjectName(_fromUtf8("specGraphSaveCross")) |
|
612 | 617 | self.gridLayout_9.addWidget(self.specGraphSaveCross, 8, 4, 1, 1) |
|
613 | 618 | self.specGraphftpSpectra = QtGui.QCheckBox(self.tabgraphSpectra) |
|
614 | 619 | self.specGraphftpSpectra.setText(_fromUtf8("")) |
|
615 | 620 | self.specGraphftpSpectra.setObjectName(_fromUtf8("specGraphftpSpectra")) |
|
616 | 621 | self.gridLayout_9.addWidget(self.specGraphftpSpectra, 6, 6, 1, 1) |
|
617 | 622 | spacerItem18 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
618 | 623 | self.gridLayout_9.addItem(spacerItem18, 4, 3, 1, 1) |
|
619 | 624 | self.specGraphSavePowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) |
|
620 | 625 | self.specGraphSavePowerprofile.setText(_fromUtf8("")) |
|
621 | 626 | self.specGraphSavePowerprofile.setObjectName(_fromUtf8("specGraphSavePowerprofile")) |
|
622 | 627 | self.gridLayout_9.addWidget(self.specGraphSavePowerprofile, 11, 4, 1, 1) |
|
623 | 628 | self.specGraphSaveCoherencemap = QtGui.QCheckBox(self.tabgraphSpectra) |
|
624 | 629 | self.specGraphSaveCoherencemap.setText(_fromUtf8("")) |
|
625 | 630 | self.specGraphSaveCoherencemap.setObjectName(_fromUtf8("specGraphSaveCoherencemap")) |
|
626 | 631 | self.gridLayout_9.addWidget(self.specGraphSaveCoherencemap, 10, 4, 1, 1) |
|
627 | 632 | spacerItem19 = QtGui.QSpacerItem(39, 15, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
628 | 633 | self.gridLayout_9.addItem(spacerItem19, 27, 4, 1, 1) |
|
629 | 634 | self.specGgraphftpratio = QtGui.QLineEdit(self.tabgraphSpectra) |
|
630 | 635 | self.specGgraphftpratio.setObjectName(_fromUtf8("specGgraphftpratio")) |
|
631 | 636 | self.gridLayout_9.addWidget(self.specGgraphftpratio, 23, 1, 1, 7) |
|
632 | 637 | self.label_43 = QtGui.QLabel(self.tabgraphSpectra) |
|
633 | 638 | self.label_43.setObjectName(_fromUtf8("label_43")) |
|
634 | 639 | self.gridLayout_9.addWidget(self.label_43, 3, 2, 2, 1) |
|
635 | 640 | self.specGraphftpCross = QtGui.QCheckBox(self.tabgraphSpectra) |
|
636 | 641 | self.specGraphftpCross.setText(_fromUtf8("")) |
|
637 | 642 | self.specGraphftpCross.setObjectName(_fromUtf8("specGraphftpCross")) |
|
638 | 643 | self.gridLayout_9.addWidget(self.specGraphftpCross, 8, 6, 1, 1) |
|
639 | 644 | self.label_29 = QtGui.QLabel(self.tabgraphSpectra) |
|
640 | 645 | self.label_29.setObjectName(_fromUtf8("label_29")) |
|
641 | 646 | self.gridLayout_9.addWidget(self.label_29, 23, 0, 1, 1) |
|
642 | 647 | self.label_47 = QtGui.QLabel(self.tabgraphSpectra) |
|
643 | 648 | self.label_47.setObjectName(_fromUtf8("label_47")) |
|
644 | 649 | self.gridLayout_9.addWidget(self.label_47, 3, 4, 2, 1) |
|
645 | 650 | self.specGraphftpRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
646 | 651 | self.specGraphftpRTIplot.setText(_fromUtf8("")) |
|
647 | 652 | self.specGraphftpRTIplot.setObjectName(_fromUtf8("specGraphftpRTIplot")) |
|
648 | 653 | self.gridLayout_9.addWidget(self.specGraphftpRTIplot, 9, 6, 1, 1) |
|
649 | 654 | self.specGraphftpCoherencemap = QtGui.QCheckBox(self.tabgraphSpectra) |
|
650 | 655 | self.specGraphftpCoherencemap.setText(_fromUtf8("")) |
|
651 | 656 | self.specGraphftpCoherencemap.setObjectName(_fromUtf8("specGraphftpCoherencemap")) |
|
652 | 657 | self.gridLayout_9.addWidget(self.specGraphftpCoherencemap, 10, 6, 1, 1) |
|
653 | 658 | self.specGraphftpPowerprofile = QtGui.QCheckBox(self.tabgraphSpectra) |
|
654 | 659 | self.specGraphftpPowerprofile.setText(_fromUtf8("")) |
|
655 | 660 | self.specGraphftpPowerprofile.setObjectName(_fromUtf8("specGraphftpPowerprofile")) |
|
656 | 661 | self.gridLayout_9.addWidget(self.specGraphftpPowerprofile, 11, 6, 1, 1) |
|
657 | 662 | self.label_19 = QtGui.QLabel(self.tabgraphSpectra) |
|
658 | 663 | self.label_19.setObjectName(_fromUtf8("label_19")) |
|
659 | 664 | self.gridLayout_9.addWidget(self.label_19, 3, 6, 2, 2) |
|
660 | 665 | self.specGraphSaveRTIplot = QtGui.QCheckBox(self.tabgraphSpectra) |
|
661 | 666 | self.specGraphSaveRTIplot.setText(_fromUtf8("")) |
|
662 | 667 | self.specGraphSaveRTIplot.setObjectName(_fromUtf8("specGraphSaveRTIplot")) |
|
663 | 668 | self.gridLayout_9.addWidget(self.specGraphSaveRTIplot, 9, 4, 1, 1) |
|
664 | 669 | self.label_45 = QtGui.QLabel(self.tabgraphSpectra) |
|
665 | 670 | self.label_45.setObjectName(_fromUtf8("label_45")) |
|
666 | 671 | self.gridLayout_9.addWidget(self.label_45, 13, 0, 1, 1) |
|
667 | 672 | self.specGraphftpRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) |
|
668 | 673 | self.specGraphftpRTInoise.setText(_fromUtf8("")) |
|
669 | 674 | self.specGraphftpRTInoise.setObjectName(_fromUtf8("specGraphftpRTInoise")) |
|
670 | 675 | self.gridLayout_9.addWidget(self.specGraphftpRTInoise, 13, 6, 1, 1) |
|
671 | 676 | self.specGraphCebRTInoise = QtGui.QCheckBox(self.tabgraphSpectra) |
|
672 | 677 | self.specGraphCebRTInoise.setText(_fromUtf8("")) |
|
673 | 678 | self.specGraphCebRTInoise.setObjectName(_fromUtf8("specGraphCebRTInoise")) |
|
674 | 679 | self.gridLayout_9.addWidget(self.specGraphCebRTInoise, 13, 2, 1, 1) |
|
675 | 680 | self.label_48 = QtGui.QLabel(self.tabgraphSpectra) |
|
676 | 681 | self.label_48.setObjectName(_fromUtf8("label_48")) |
|
677 | 682 | self.gridLayout_9.addWidget(self.label_48, 22, 0, 1, 1) |
|
678 | 683 | self.specGgraphTimeRange = QtGui.QLineEdit(self.tabgraphSpectra) |
|
679 | 684 | self.specGgraphTimeRange.setObjectName(_fromUtf8("specGgraphTimeRange")) |
|
680 | 685 | self.gridLayout_9.addWidget(self.specGgraphTimeRange, 22, 1, 1, 7) |
|
681 | 686 | self.tabWidgetSpectra.addTab(self.tabgraphSpectra, _fromUtf8("")) |
|
682 | 687 | self.taboutputSpectra = QtGui.QWidget() |
|
683 | 688 | self.taboutputSpectra.setObjectName(_fromUtf8("taboutputSpectra")) |
|
684 | 689 | self.gridLayout_11 = QtGui.QGridLayout(self.taboutputSpectra) |
|
685 | 690 | self.gridLayout_11.setObjectName(_fromUtf8("gridLayout_11")) |
|
686 | 691 | self.label_39 = QtGui.QLabel(self.taboutputSpectra) |
|
687 | 692 | self.label_39.setObjectName(_fromUtf8("label_39")) |
|
688 | 693 | self.gridLayout_11.addWidget(self.label_39, 0, 0, 1, 1) |
|
689 | 694 | self.specOutputComData = QtGui.QComboBox(self.taboutputSpectra) |
|
690 | 695 | self.specOutputComData.setObjectName(_fromUtf8("specOutputComData")) |
|
691 | 696 | self.specOutputComData.addItem(_fromUtf8("")) |
|
692 | 697 | self.gridLayout_11.addWidget(self.specOutputComData, 0, 2, 1, 2) |
|
693 | 698 | self.label_34 = QtGui.QLabel(self.taboutputSpectra) |
|
694 | 699 | self.label_34.setObjectName(_fromUtf8("label_34")) |
|
695 | 700 | self.gridLayout_11.addWidget(self.label_34, 1, 0, 1, 1) |
|
696 | 701 | self.specOutputPath = QtGui.QLineEdit(self.taboutputSpectra) |
|
697 | 702 | self.specOutputPath.setObjectName(_fromUtf8("specOutputPath")) |
|
698 | 703 | self.gridLayout_11.addWidget(self.specOutputPath, 1, 2, 1, 1) |
|
699 | 704 | spacerItem20 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
700 | 705 | self.gridLayout_11.addItem(spacerItem20, 4, 2, 1, 1) |
|
701 | 706 | self.specOutputToolPath = QtGui.QToolButton(self.taboutputSpectra) |
|
702 | 707 | self.specOutputToolPath.setObjectName(_fromUtf8("specOutputToolPath")) |
|
703 | 708 | self.gridLayout_11.addWidget(self.specOutputToolPath, 1, 3, 1, 1) |
|
704 | 709 | self.specOutputblocksperfile = QtGui.QLineEdit(self.taboutputSpectra) |
|
705 | 710 | self.specOutputblocksperfile.setObjectName(_fromUtf8("specOutputblocksperfile")) |
|
706 | 711 | self.gridLayout_11.addWidget(self.specOutputblocksperfile, 2, 2, 1, 1) |
|
707 | 712 | self.label_9 = QtGui.QLabel(self.taboutputSpectra) |
|
708 | 713 | self.label_9.setObjectName(_fromUtf8("label_9")) |
|
709 | 714 | self.gridLayout_11.addWidget(self.label_9, 2, 0, 1, 2) |
|
710 | 715 | self.label_38 = QtGui.QLabel(self.taboutputSpectra) |
|
711 | 716 | self.label_38.setObjectName(_fromUtf8("label_38")) |
|
712 | 717 | self.gridLayout_11.addWidget(self.label_38, 3, 0, 1, 1) |
|
713 | 718 | self.specOutputprofileperblock = QtGui.QLineEdit(self.taboutputSpectra) |
|
714 | 719 | self.specOutputprofileperblock.setObjectName(_fromUtf8("specOutputprofileperblock")) |
|
715 | 720 | self.gridLayout_11.addWidget(self.specOutputprofileperblock, 3, 2, 1, 1) |
|
716 | 721 | self.tabWidgetSpectra.addTab(self.taboutputSpectra, _fromUtf8("")) |
|
717 | 722 | self.gridLayout_7.addWidget(self.tabWidgetSpectra, 0, 1, 1, 1) |
|
718 | 723 | self.tabWidgetProject.addTab(self.tabSpectra, _fromUtf8("")) |
|
719 | 724 | self.tabSpectraHeis = QtGui.QWidget() |
|
720 | 725 | self.tabSpectraHeis.setObjectName(_fromUtf8("tabSpectraHeis")) |
|
721 | 726 | self.gridLayout_23 = QtGui.QGridLayout(self.tabSpectraHeis) |
|
722 | 727 | self.gridLayout_23.setObjectName(_fromUtf8("gridLayout_23")) |
|
723 | 728 | self.frame_6 = QtGui.QFrame(self.tabSpectraHeis) |
|
724 | 729 | self.frame_6.setFrameShape(QtGui.QFrame.StyledPanel) |
|
725 | 730 | self.frame_6.setFrameShadow(QtGui.QFrame.Raised) |
|
726 | 731 | self.frame_6.setObjectName(_fromUtf8("frame_6")) |
|
727 | 732 | self.gridLayout_22 = QtGui.QGridLayout(self.frame_6) |
|
728 | 733 | self.gridLayout_22.setObjectName(_fromUtf8("gridLayout_22")) |
|
729 | 734 | self.specHeisGraphClear = QtGui.QPushButton(self.frame_6) |
|
730 | 735 | self.specHeisGraphClear.setObjectName(_fromUtf8("specHeisGraphClear")) |
|
731 | 736 | self.gridLayout_22.addWidget(self.specHeisGraphClear, 0, 1, 1, 1) |
|
732 | 737 | self.specHeisOpOk = QtGui.QPushButton(self.frame_6) |
|
733 | 738 | self.specHeisOpOk.setObjectName(_fromUtf8("specHeisOpOk")) |
|
734 | 739 | self.gridLayout_22.addWidget(self.specHeisOpOk, 0, 0, 1, 1) |
|
735 | 740 | self.gridLayout_23.addWidget(self.frame_6, 1, 0, 1, 1) |
|
736 | 741 | self.tabWidgetSpectraHeis = QtGui.QTabWidget(self.tabSpectraHeis) |
|
737 | 742 | self.tabWidgetSpectraHeis.setObjectName(_fromUtf8("tabWidgetSpectraHeis")) |
|
738 | 743 | self.tabopSpectraHeis = QtGui.QWidget() |
|
739 | 744 | self.tabopSpectraHeis.setObjectName(_fromUtf8("tabopSpectraHeis")) |
|
740 | 745 | self.gridLayout_21 = QtGui.QGridLayout(self.tabopSpectraHeis) |
|
741 | 746 | self.gridLayout_21.setObjectName(_fromUtf8("gridLayout_21")) |
|
742 | 747 | spacerItem21 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
743 | 748 | self.gridLayout_21.addItem(spacerItem21, 0, 1, 1, 1) |
|
744 | 749 | self.specHeisOpCobIncInt = QtGui.QComboBox(self.tabopSpectraHeis) |
|
745 | 750 | self.specHeisOpCobIncInt.setObjectName(_fromUtf8("specHeisOpCobIncInt")) |
|
746 | 751 | self.specHeisOpCobIncInt.addItem(_fromUtf8("")) |
|
747 | 752 | self.gridLayout_21.addWidget(self.specHeisOpCobIncInt, 1, 0, 1, 1) |
|
748 | 753 | self.specHeisOpCebIncoherent = QtGui.QCheckBox(self.tabopSpectraHeis) |
|
749 | 754 | self.specHeisOpCebIncoherent.setObjectName(_fromUtf8("specHeisOpCebIncoherent")) |
|
750 | 755 | self.gridLayout_21.addWidget(self.specHeisOpCebIncoherent, 0, 0, 1, 1) |
|
751 | 756 | self.specHeisOpIncoherent = QtGui.QLineEdit(self.tabopSpectraHeis) |
|
752 | 757 | self.specHeisOpIncoherent.setObjectName(_fromUtf8("specHeisOpIncoherent")) |
|
753 | 758 | self.gridLayout_21.addWidget(self.specHeisOpIncoherent, 1, 1, 1, 1) |
|
754 | 759 | spacerItem22 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
755 | 760 | self.gridLayout_21.addItem(spacerItem22, 2, 0, 1, 1) |
|
756 | 761 | self.tabWidgetSpectraHeis.addTab(self.tabopSpectraHeis, _fromUtf8("")) |
|
757 | 762 | self.tabgraphSpectraHeis = QtGui.QWidget() |
|
758 | 763 | self.tabgraphSpectraHeis.setObjectName(_fromUtf8("tabgraphSpectraHeis")) |
|
759 | 764 | self.gridLayout_20 = QtGui.QGridLayout(self.tabgraphSpectraHeis) |
|
760 | 765 | self.gridLayout_20.setObjectName(_fromUtf8("gridLayout_20")) |
|
761 | 766 | self.label_54 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
762 | 767 | self.label_54.setObjectName(_fromUtf8("label_54")) |
|
763 | 768 | self.gridLayout_20.addWidget(self.label_54, 1, 0, 1, 1) |
|
764 | 769 | self.specHeisGraphToolPath = QtGui.QToolButton(self.tabgraphSpectraHeis) |
|
765 | 770 | self.specHeisGraphToolPath.setObjectName(_fromUtf8("specHeisGraphToolPath")) |
|
766 | 771 | self.gridLayout_20.addWidget(self.specHeisGraphToolPath, 0, 6, 1, 1) |
|
767 | 772 | self.specHeisGraphCebRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
768 | 773 | self.specHeisGraphCebRTIplot.setText(_fromUtf8("")) |
|
769 | 774 | self.specHeisGraphCebRTIplot.setObjectName(_fromUtf8("specHeisGraphCebRTIplot")) |
|
770 | 775 | self.gridLayout_20.addWidget(self.specHeisGraphCebRTIplot, 4, 2, 1, 1) |
|
771 | 776 | self.label_62 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
772 | 777 | self.label_62.setObjectName(_fromUtf8("label_62")) |
|
773 | 778 | self.gridLayout_20.addWidget(self.label_62, 7, 0, 1, 1) |
|
774 | 779 | self.label_63 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
775 | 780 | self.label_63.setObjectName(_fromUtf8("label_63")) |
|
776 | 781 | self.gridLayout_20.addWidget(self.label_63, 8, 0, 1, 1) |
|
777 | 782 | self.label_64 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
778 | 783 | self.label_64.setObjectName(_fromUtf8("label_64")) |
|
779 | 784 | self.gridLayout_20.addWidget(self.label_64, 9, 0, 1, 1) |
|
780 | 785 | self.label_65 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
781 | 786 | self.label_65.setObjectName(_fromUtf8("label_65")) |
|
782 | 787 | self.gridLayout_20.addWidget(self.label_65, 10, 0, 1, 1) |
|
783 | 788 | spacerItem23 = QtGui.QSpacerItem(134, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
784 | 789 | self.gridLayout_20.addItem(spacerItem23, 11, 0, 1, 2) |
|
785 | 790 | self.specHeisGgraphftpratio = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
786 | 791 | self.specHeisGgraphftpratio.setObjectName(_fromUtf8("specHeisGgraphftpratio")) |
|
787 | 792 | self.gridLayout_20.addWidget(self.specHeisGgraphftpratio, 10, 1, 1, 6) |
|
788 | 793 | self.specHeisGraphftpRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
789 | 794 | self.specHeisGraphftpRTIplot.setText(_fromUtf8("")) |
|
790 | 795 | self.specHeisGraphftpRTIplot.setObjectName(_fromUtf8("specHeisGraphftpRTIplot")) |
|
791 | 796 | self.gridLayout_20.addWidget(self.specHeisGraphftpRTIplot, 4, 6, 1, 1) |
|
792 | 797 | self.specHeisGgraphTminTmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
793 | 798 | self.specHeisGgraphTminTmax.setObjectName(_fromUtf8("specHeisGgraphTminTmax")) |
|
794 | 799 | self.gridLayout_20.addWidget(self.specHeisGgraphTminTmax, 8, 1, 1, 6) |
|
795 | 800 | self.label_60 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
796 | 801 | self.label_60.setObjectName(_fromUtf8("label_60")) |
|
797 | 802 | self.gridLayout_20.addWidget(self.label_60, 5, 0, 1, 1) |
|
798 | 803 | self.label_61 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
799 | 804 | self.label_61.setObjectName(_fromUtf8("label_61")) |
|
800 | 805 | self.gridLayout_20.addWidget(self.label_61, 6, 0, 1, 1) |
|
801 | 806 | self.specHeisGraphPrefix = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
802 | 807 | self.specHeisGraphPrefix.setObjectName(_fromUtf8("specHeisGraphPrefix")) |
|
803 | 808 | self.gridLayout_20.addWidget(self.specHeisGraphPrefix, 1, 1, 1, 6) |
|
804 | 809 | self.label_56 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
805 | 810 | self.label_56.setObjectName(_fromUtf8("label_56")) |
|
806 | 811 | self.gridLayout_20.addWidget(self.label_56, 2, 4, 1, 1) |
|
807 | 812 | self.label_57 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
808 | 813 | self.label_57.setObjectName(_fromUtf8("label_57")) |
|
809 | 814 | self.gridLayout_20.addWidget(self.label_57, 2, 6, 1, 1) |
|
810 | 815 | self.label_58 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
811 | 816 | self.label_58.setObjectName(_fromUtf8("label_58")) |
|
812 | 817 | self.gridLayout_20.addWidget(self.label_58, 3, 0, 1, 1) |
|
813 | 818 | self.specHeisGraphCebSpectraplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
814 | 819 | self.specHeisGraphCebSpectraplot.setText(_fromUtf8("")) |
|
815 | 820 | self.specHeisGraphCebSpectraplot.setObjectName(_fromUtf8("specHeisGraphCebSpectraplot")) |
|
816 | 821 | self.gridLayout_20.addWidget(self.specHeisGraphCebSpectraplot, 3, 2, 1, 1) |
|
817 | 822 | self.specHeisGgraphYminYmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
818 | 823 | self.specHeisGgraphYminYmax.setObjectName(_fromUtf8("specHeisGgraphYminYmax")) |
|
819 | 824 | self.gridLayout_20.addWidget(self.specHeisGgraphYminYmax, 7, 1, 1, 6) |
|
820 | 825 | self.label_53 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
821 | 826 | self.label_53.setObjectName(_fromUtf8("label_53")) |
|
822 | 827 | self.gridLayout_20.addWidget(self.label_53, 0, 0, 1, 1) |
|
823 | 828 | self.label_55 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
824 | 829 | self.label_55.setObjectName(_fromUtf8("label_55")) |
|
825 | 830 | self.gridLayout_20.addWidget(self.label_55, 2, 2, 1, 1) |
|
826 | 831 | self.specHeisGraphSaveRTIplot = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
827 | 832 | self.specHeisGraphSaveRTIplot.setText(_fromUtf8("")) |
|
828 | 833 | self.specHeisGraphSaveRTIplot.setObjectName(_fromUtf8("specHeisGraphSaveRTIplot")) |
|
829 | 834 | self.gridLayout_20.addWidget(self.specHeisGraphSaveRTIplot, 4, 4, 1, 1) |
|
830 | 835 | spacerItem24 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
831 | 836 | self.gridLayout_20.addItem(spacerItem24, 2, 3, 1, 1) |
|
832 | 837 | self.specHeisGgraphXminXmax = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
833 | 838 | self.specHeisGgraphXminXmax.setObjectName(_fromUtf8("specHeisGgraphXminXmax")) |
|
834 | 839 | self.gridLayout_20.addWidget(self.specHeisGgraphXminXmax, 6, 1, 1, 6) |
|
835 | 840 | self.specHeisGgraphChannelList = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
836 | 841 | self.specHeisGgraphChannelList.setObjectName(_fromUtf8("specHeisGgraphChannelList")) |
|
837 | 842 | self.gridLayout_20.addWidget(self.specHeisGgraphChannelList, 5, 1, 1, 6) |
|
838 | 843 | self.specHeisGgraphTimeRange = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
839 | 844 | self.specHeisGgraphTimeRange.setObjectName(_fromUtf8("specHeisGgraphTimeRange")) |
|
840 | 845 | self.gridLayout_20.addWidget(self.specHeisGgraphTimeRange, 9, 1, 1, 6) |
|
841 | 846 | spacerItem25 = QtGui.QSpacerItem(106, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
842 | 847 | self.gridLayout_20.addItem(spacerItem25, 11, 3, 1, 3) |
|
843 | 848 | self.specHeisGraphSaveSpectra = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
844 | 849 | self.specHeisGraphSaveSpectra.setText(_fromUtf8("")) |
|
845 | 850 | self.specHeisGraphSaveSpectra.setObjectName(_fromUtf8("specHeisGraphSaveSpectra")) |
|
846 | 851 | self.gridLayout_20.addWidget(self.specHeisGraphSaveSpectra, 3, 4, 1, 1) |
|
847 | 852 | self.specHeisGraphftpSpectra = QtGui.QCheckBox(self.tabgraphSpectraHeis) |
|
848 | 853 | self.specHeisGraphftpSpectra.setText(_fromUtf8("")) |
|
849 | 854 | self.specHeisGraphftpSpectra.setObjectName(_fromUtf8("specHeisGraphftpSpectra")) |
|
850 | 855 | self.gridLayout_20.addWidget(self.specHeisGraphftpSpectra, 3, 6, 1, 1) |
|
851 | 856 | self.label_59 = QtGui.QLabel(self.tabgraphSpectraHeis) |
|
852 | 857 | self.label_59.setObjectName(_fromUtf8("label_59")) |
|
853 | 858 | self.gridLayout_20.addWidget(self.label_59, 4, 0, 1, 1) |
|
854 | 859 | spacerItem26 = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum) |
|
855 | 860 | self.gridLayout_20.addItem(spacerItem26, 2, 5, 1, 1) |
|
856 | 861 | self.specHeisGraphPath = QtGui.QLineEdit(self.tabgraphSpectraHeis) |
|
857 | 862 | self.specHeisGraphPath.setObjectName(_fromUtf8("specHeisGraphPath")) |
|
858 | 863 | self.gridLayout_20.addWidget(self.specHeisGraphPath, 0, 1, 1, 5) |
|
859 | 864 | self.tabWidgetSpectraHeis.addTab(self.tabgraphSpectraHeis, _fromUtf8("")) |
|
860 | 865 | self.taboutputSpectraHeis = QtGui.QWidget() |
|
861 | 866 | self.taboutputSpectraHeis.setObjectName(_fromUtf8("taboutputSpectraHeis")) |
|
862 | 867 | self.gridLayout_19 = QtGui.QGridLayout(self.taboutputSpectraHeis) |
|
863 | 868 | self.gridLayout_19.setObjectName(_fromUtf8("gridLayout_19")) |
|
864 | 869 | self.label_67 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
865 | 870 | self.label_67.setObjectName(_fromUtf8("label_67")) |
|
866 | 871 | self.gridLayout_19.addWidget(self.label_67, 1, 0, 1, 1) |
|
867 | 872 | self.label_68 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
868 | 873 | self.label_68.setObjectName(_fromUtf8("label_68")) |
|
869 | 874 | self.gridLayout_19.addWidget(self.label_68, 2, 0, 1, 2) |
|
870 | 875 | self.label_66 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
871 | 876 | self.label_66.setObjectName(_fromUtf8("label_66")) |
|
872 | 877 | self.gridLayout_19.addWidget(self.label_66, 0, 0, 1, 1) |
|
873 | 878 | spacerItem27 = QtGui.QSpacerItem(20, 40, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding) |
|
874 | 879 | self.gridLayout_19.addItem(spacerItem27, 4, 0, 1, 1) |
|
875 | 880 | self.specHeisOutputToolPath = QtGui.QToolButton(self.taboutputSpectraHeis) |
|
876 | 881 | self.specHeisOutputToolPath.setObjectName(_fromUtf8("specHeisOutputToolPath")) |
|
877 | 882 | self.gridLayout_19.addWidget(self.specHeisOutputToolPath, 1, 4, 1, 1) |
|
878 | 883 | self.specHeisOutputPath = QtGui.QLineEdit(self.taboutputSpectraHeis) |
|
879 | 884 | self.specHeisOutputPath.setObjectName(_fromUtf8("specHeisOutputPath")) |
|
880 | 885 | self.gridLayout_19.addWidget(self.specHeisOutputPath, 1, 3, 1, 1) |
|
881 | 886 | self.specHeisOutputComdata = QtGui.QComboBox(self.taboutputSpectraHeis) |
|
882 | 887 | self.specHeisOutputComdata.setObjectName(_fromUtf8("specHeisOutputComdata")) |
|
883 | 888 | self.specHeisOutputComdata.addItem(_fromUtf8("")) |
|
884 | 889 | self.gridLayout_19.addWidget(self.specHeisOutputComdata, 0, 3, 1, 2) |
|
885 | 890 | self.label_69 = QtGui.QLabel(self.taboutputSpectraHeis) |
|
886 | 891 | self.label_69.setObjectName(_fromUtf8("label_69")) |
|
887 | 892 | self.gridLayout_19.addWidget(self.label_69, 3, 0, 1, 2) |
|
888 | 893 | self.specHeisOutputblocksperfile = QtGui.QLineEdit(self.taboutputSpectraHeis) |
|
889 | 894 | self.specHeisOutputblocksperfile.setObjectName(_fromUtf8("specHeisOutputblocksperfile")) |
|
890 | 895 | self.gridLayout_19.addWidget(self.specHeisOutputblocksperfile, 2, 3, 1, 1) |
|
891 | 896 | self.specHeisOutputMetada = QtGui.QLineEdit(self.taboutputSpectraHeis) |
|
892 | 897 | self.specHeisOutputMetada.setObjectName(_fromUtf8("specHeisOutputMetada")) |
|
893 | 898 | self.gridLayout_19.addWidget(self.specHeisOutputMetada, 3, 3, 1, 1) |
|
894 | 899 | self.specHeisOutputMetadaToolPath = QtGui.QToolButton(self.taboutputSpectraHeis) |
|
895 | 900 | self.specHeisOutputMetadaToolPath.setObjectName(_fromUtf8("specHeisOutputMetadaToolPath")) |
|
896 | 901 | self.gridLayout_19.addWidget(self.specHeisOutputMetadaToolPath, 3, 4, 1, 1) |
|
897 | 902 | self.tabWidgetSpectraHeis.addTab(self.taboutputSpectraHeis, _fromUtf8("")) |
|
898 | 903 | self.gridLayout_23.addWidget(self.tabWidgetSpectraHeis, 0, 0, 1, 1) |
|
899 | 904 | self.tabWidgetProject.addTab(self.tabSpectraHeis, _fromUtf8("")) |
|
900 | 905 | self.tabCorrelation = QtGui.QWidget() |
|
901 | 906 | self.tabCorrelation.setObjectName(_fromUtf8("tabCorrelation")) |
|
902 | 907 | self.gridLayout_13 = QtGui.QGridLayout(self.tabCorrelation) |
|
903 | 908 | self.gridLayout_13.setObjectName(_fromUtf8("gridLayout_13")) |
|
904 | 909 | self.tabWidget_2 = QtGui.QTabWidget(self.tabCorrelation) |
|
905 | 910 | self.tabWidget_2.setObjectName(_fromUtf8("tabWidget_2")) |
|
906 | 911 | self.tabopCorrelation = QtGui.QWidget() |
|
907 | 912 | self.tabopCorrelation.setObjectName(_fromUtf8("tabopCorrelation")) |
|
908 | 913 | self.tabWidget_2.addTab(self.tabopCorrelation, _fromUtf8("")) |
|
909 | 914 | self.tabopCorrelation1 = QtGui.QWidget() |
|
910 | 915 | self.tabopCorrelation1.setObjectName(_fromUtf8("tabopCorrelation1")) |
|
911 | 916 | self.tabWidget_2.addTab(self.tabopCorrelation1, _fromUtf8("")) |
|
912 | 917 | self.gridLayout_13.addWidget(self.tabWidget_2, 0, 0, 1, 1) |
|
913 | 918 | self.tabWidgetProject.addTab(self.tabCorrelation, _fromUtf8("")) |
|
914 | 919 | |
|
915 | 920 | |
|
916 | 921 | self.tabConsole = QtGui.QTabWidget(self.splitter) |
|
917 | 922 | self.tabConsole.setMinimumSize(QtCore.QSize(0, 0)) |
|
918 | 923 | self.tabConsole.setObjectName(_fromUtf8("tabConsole")) |
|
919 | 924 | self.tab_5 = QtGui.QWidget() |
|
920 | 925 | self.tab_5.setObjectName(_fromUtf8("tab_5")) |
|
921 | 926 | self.gridLayout_4 = QtGui.QGridLayout(self.tab_5) |
|
922 | 927 | self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) |
|
923 | 928 | self.console = QtGui.QTextEdit(self.tab_5) |
|
924 | 929 | self.console.setObjectName(_fromUtf8("console")) |
|
925 | 930 | self.gridLayout_4.addWidget(self.console, 0, 0, 1, 1) |
|
926 | 931 | self.tabConsole.addTab(self.tab_5, _fromUtf8("")) |
|
927 | 932 | self.tabWidget = QtGui.QTabWidget(self.splitter_2) |
|
928 | 933 | self.tabWidget.setObjectName(_fromUtf8("tabWidget")) |
|
929 | 934 | self.tabProjectProperty = QtGui.QWidget() |
|
930 | 935 | self.tabProjectProperty.setObjectName(_fromUtf8("tabProjectProperty")) |
|
931 | 936 | self.gridLayout_8 = QtGui.QGridLayout(self.tabProjectProperty) |
|
932 | 937 | self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) |
|
933 | 938 | self.treeProjectProperties = QtGui.QTreeView(self.tabProjectProperty) |
|
934 | 939 | self.treeProjectProperties.setObjectName(_fromUtf8("treeProjectProperties")) |
|
935 | 940 | self.gridLayout_8.addWidget(self.treeProjectProperties, 0, 0, 1, 1) |
|
936 | 941 | self.tabWidget.addTab(self.tabProjectProperty, _fromUtf8("")) |
|
937 | 942 | self.gridLayout_16.addWidget(self.splitter_2, 1, 0, 1, 1) |
|
938 | 943 | MainWindow.setCentralWidget(self.centralWidget) |
|
939 | 944 | self.toolBar = QtGui.QToolBar(MainWindow) |
|
940 | 945 | self.toolBar.setObjectName(_fromUtf8("toolBar")) |
|
941 | 946 | MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) |
|
942 | 947 | self.menuBar = QtGui.QMenuBar(MainWindow) |
|
943 | 948 | self.menuBar.setGeometry(QtCore.QRect(0, 0, 1065, 25)) |
|
944 | 949 | self.menuBar.setObjectName(_fromUtf8("menuBar")) |
|
945 | 950 | self.menuProject = QtGui.QMenu(self.menuBar) |
|
946 | 951 | self.menuProject.setObjectName(_fromUtf8("menuProject")) |
|
947 | 952 | self.menuRun = QtGui.QMenu(self.menuBar) |
|
948 | 953 | self.menuRun.setObjectName(_fromUtf8("menuRun")) |
|
949 | 954 | self.menuOptions = QtGui.QMenu(self.menuBar) |
|
950 | 955 | self.menuOptions.setObjectName(_fromUtf8("menuOptions")) |
|
951 | 956 | self.menuHelp = QtGui.QMenu(self.menuBar) |
|
952 | 957 | self.menuHelp.setObjectName(_fromUtf8("menuHelp")) |
|
953 | 958 | MainWindow.setMenuBar(self.menuBar) |
|
954 | 959 | self.actionOpen = QtGui.QAction(MainWindow) |
|
955 | 960 | |
|
956 | 961 | iconOpen = QtGui.QIcon() |
|
957 |
iconOpen.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
962 | iconOpen.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"open.gif") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
958 | 963 | |
|
959 | 964 | iconCreate = QtGui.QIcon() |
|
960 |
iconCreate.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
965 | iconCreate.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"project.gif") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
961 | 966 | |
|
962 | 967 | iconSave = QtGui.QIcon() |
|
963 |
iconSave.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
968 | iconSave.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"saveicon.jpeg") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
964 | 969 | |
|
965 | 970 | iconStart = QtGui.QIcon() |
|
966 |
iconStart.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
971 | iconStart.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"startServer.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
967 | 972 | |
|
968 | 973 | iconStop = QtGui.QIcon() |
|
969 |
iconStop.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
974 | iconStop.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"stopServer.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
970 | 975 | |
|
971 | 976 | iconPause = QtGui.QIcon() |
|
972 |
iconPause.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
977 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"pause.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
973 | 978 | |
|
974 | 979 | iconAddPU = QtGui.QIcon() |
|
975 |
iconAddPU.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
980 | iconAddPU.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"add_PU.gif") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
976 | 981 | |
|
977 | 982 | self.actionOpen.setIcon(iconOpen) |
|
978 | 983 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) |
|
979 | 984 | self.actionCreate = QtGui.QAction(MainWindow) |
|
980 | 985 | self.actionCreate.setIcon(iconCreate) |
|
981 | 986 | self.actionCreate.setObjectName(_fromUtf8("actionCreate")) |
|
982 | 987 | self.actionSave = QtGui.QAction(MainWindow) |
|
983 | 988 | self.actionSave.setIcon(iconSave) |
|
984 | 989 | self.actionSave.setObjectName(_fromUtf8("actionSave")) |
|
985 | 990 | self.actionClose = QtGui.QAction(MainWindow) |
|
986 | 991 | self.actionClose.setObjectName(_fromUtf8("actionClose")) |
|
987 | 992 | self.actionStart = QtGui.QAction(MainWindow) |
|
988 | 993 | self.actionStart.setIcon(iconStart) |
|
989 | 994 | self.actionStart.setObjectName(_fromUtf8("actionStart")) |
|
990 | 995 | self.actionPause = QtGui.QAction(MainWindow) |
|
991 | 996 | self.actionPause.setIcon(iconPause) |
|
992 | 997 | self.actionPause.setObjectName(_fromUtf8("actionPause")) |
|
993 | 998 | self.actionStop = QtGui.QAction(MainWindow) |
|
994 | 999 | self.actionStop.setIcon(iconStop) |
|
995 | 1000 | self.actionStop.setObjectName(_fromUtf8("actionStop")) |
|
996 | 1001 | self.actionAbout = QtGui.QAction(MainWindow) |
|
997 | 1002 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) |
|
998 | 1003 | self.actionOpenToolbar = QtGui.QAction(MainWindow) |
|
999 | 1004 | self.actionOpenToolbar.setIcon(iconOpen) |
|
1000 | 1005 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) |
|
1001 | 1006 | self.actionCreateToolbar = QtGui.QAction(MainWindow) |
|
1002 | 1007 | self.actionCreateToolbar.setIcon(iconCreate) |
|
1003 | 1008 | self.actionCreateToolbar.setObjectName(_fromUtf8("actionCreateToolbar")) |
|
1004 | 1009 | self.actionSaveToolbar = QtGui.QAction(MainWindow) |
|
1005 | 1010 | self.actionSaveToolbar.setIcon(iconSave) |
|
1006 | 1011 | self.actionSaveToolbar.setObjectName(_fromUtf8("actionSaveToolbar")) |
|
1007 | 1012 | self.actionStarToolbar = QtGui.QAction(MainWindow) |
|
1008 | 1013 | self.actionStarToolbar.setIcon(iconStart) |
|
1009 | 1014 | self.actionStarToolbar.setObjectName(_fromUtf8("actionStarToolbar")) |
|
1010 | 1015 | self.actionStopToolbar = QtGui.QAction(MainWindow) |
|
1011 | 1016 | self.actionStopToolbar.setIcon(iconStop) |
|
1012 | 1017 | self.actionStopToolbar.setObjectName(_fromUtf8("actionStopToolbar")) |
|
1013 | 1018 | self.actionPauseToolbar = QtGui.QAction(MainWindow) |
|
1014 | 1019 | self.actionPause.setIcon(iconPause) |
|
1015 | 1020 | self.actionPauseToolbar.setIcon(iconPause) |
|
1016 | 1021 | self.actionPauseToolbar.setObjectName(_fromUtf8("actionPauseToolbar")) |
|
1017 | 1022 | self.actionAddPU = QtGui.QAction(MainWindow) |
|
1018 | 1023 | self.actionAddPU.setIcon(iconAddPU) |
|
1019 | 1024 | self.actionAddPU.setObjectName(_fromUtf8("actionAddPU")) |
|
1020 | 1025 | self.actionFTP = QtGui.QAction(MainWindow) |
|
1021 | 1026 | self.actionFTP.setObjectName(_fromUtf8("actionFTP")) |
|
1022 | 1027 | self.toolBar.addAction(self.actionOpenToolbar) |
|
1023 | 1028 | self.toolBar.addSeparator() |
|
1024 | 1029 | self.toolBar.addAction(self.actionCreateToolbar) |
|
1025 | 1030 | self.toolBar.addSeparator() |
|
1026 | 1031 | self.toolBar.addAction(self.actionAddPU) |
|
1027 | 1032 | self.toolBar.addSeparator() |
|
1028 | 1033 | self.toolBar.addAction(self.actionSaveToolbar) |
|
1029 | 1034 | self.toolBar.addSeparator() |
|
1030 | 1035 | self.toolBar.addAction(self.actionStarToolbar) |
|
1031 | 1036 | self.toolBar.addSeparator() |
|
1032 | 1037 | self.toolBar.addAction(self.actionPauseToolbar) |
|
1033 | 1038 | self.toolBar.addSeparator() |
|
1034 | 1039 | self.toolBar.addAction(self.actionStopToolbar) |
|
1035 | 1040 | self.toolBar.addSeparator() |
|
1036 | 1041 | self.a=1 |
|
1037 | 1042 | self.actionPauseToolbar.triggered.connect(self.changeIcon) |
|
1038 | 1043 | |
|
1039 | 1044 | |
|
1040 | 1045 | self.menuProject.addAction(self.actionOpen) |
|
1041 | 1046 | self.menuProject.addAction(self.actionCreate) |
|
1042 | 1047 | self.menuProject.addAction(self.actionSave) |
|
1043 | 1048 | self.menuProject.addAction(self.actionClose) |
|
1044 | 1049 | self.menuRun.addAction(self.actionStart) |
|
1045 | 1050 | self.menuRun.addAction(self.actionPause) |
|
1046 | 1051 | self.menuRun.addAction(self.actionStop) |
|
1047 | 1052 | self.menuOptions.addAction(self.actionFTP) |
|
1048 | 1053 | self.menuHelp.addAction(self.actionAbout) |
|
1049 | 1054 | self.menuBar.addAction(self.menuProject.menuAction()) |
|
1050 | 1055 | self.menuBar.addAction(self.menuRun.menuAction()) |
|
1051 | 1056 | self.menuBar.addAction(self.menuOptions.menuAction()) |
|
1052 | 1057 | self.menuBar.addAction(self.menuHelp.menuAction()) |
|
1053 | 1058 | |
|
1054 | 1059 | self.retranslateUi(MainWindow) |
|
1055 | 1060 | self.tabWidgetProject.setCurrentIndex(0) |
|
1056 | 1061 | self.tabWidgetVoltage.setCurrentIndex(0) |
|
1057 | 1062 | self.tabWidgetSpectra.setCurrentIndex(0) |
|
1058 | 1063 | self.tabWidgetSpectraHeis.setCurrentIndex(0) |
|
1059 | 1064 | self.tabWidget_2.setCurrentIndex(0) |
|
1060 | 1065 | self.tabConsole.setCurrentIndex(0) |
|
1061 | 1066 | self.tabWidget.setCurrentIndex(0) |
|
1062 | 1067 | QtCore.QMetaObject.connectSlotsByName(MainWindow) |
|
1063 | 1068 | |
|
1064 | 1069 | def changeIcon(self): |
|
1065 | 1070 | |
|
1066 | 1071 | if self.a==1: |
|
1067 | 1072 | iconPauseRed = QtGui.QIcon() |
|
1068 |
iconPauseRed.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1073 | iconPauseRed.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"pausered.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1069 | 1074 | self.actionPauseToolbar.setIcon(iconPauseRed) |
|
1070 | 1075 | self.a+=1 |
|
1071 | 1076 | return 0 |
|
1072 | 1077 | if self.a==2: |
|
1073 | 1078 | iconPause = QtGui.QIcon() |
|
1074 |
iconPause.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1079 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"pause.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1075 | 1080 | self.actionPauseToolbar.setIcon(iconPause) |
|
1076 | 1081 | self.a-=1 |
|
1077 | 1082 | return 0 |
|
1078 | 1083 | |
|
1079 | 1084 | def retranslateUi(self, MainWindow): |
|
1080 | 1085 | |
|
1081 | 1086 | MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) |
|
1082 | 1087 | self.label.setText(_translate("MainWindow", "Project Name :", None)) |
|
1083 | 1088 | self.label_11.setText(_translate("MainWindow", "DataType :", None)) |
|
1084 | 1089 | self.proComDataType.setItemText(0, _translate("MainWindow", "Voltage", None)) |
|
1085 | 1090 | self.proComDataType.setItemText(1, _translate("MainWindow", "Spectra", None)) |
|
1086 | 1091 | self.proComDataType.setItemText(2, _translate("MainWindow", "Fits", None)) |
|
1087 | 1092 | self.label_15.setText(_translate("MainWindow", "DataPath :", None)) |
|
1088 | 1093 | self.proToolPath.setText(_translate("MainWindow", "...", None)) |
|
1089 | 1094 | self.label_23.setText(_translate("MainWindow", "Read Mode:", None)) |
|
1090 | 1095 | self.proComReadMode.setItemText(0, _translate("MainWindow", "Offline", None)) |
|
1091 | 1096 | self.proComReadMode.setItemText(1, _translate("MainWindow", "Online", None)) |
|
1092 | 1097 | self.label_33.setText(_translate("MainWindow", "Delay:", None)) |
|
1093 | 1098 | self.label_32.setText(_translate("MainWindow", "Walk :", None)) |
|
1094 | 1099 | self.proComWalk.setItemText(0, _translate("MainWindow", "On Files", None)) |
|
1095 | 1100 | self.proComWalk.setItemText(1, _translate("MainWindow", "On Folder", None)) |
|
1096 | 1101 | self.proLoadButton.setText(_translate("MainWindow", "Load", None)) |
|
1097 | 1102 | self.label_10.setText(_translate("MainWindow", "Set:", None)) |
|
1098 | 1103 | self.label_27.setText(_translate("MainWindow", "Star Date:", None)) |
|
1099 | 1104 | self.label_28.setText(_translate("MainWindow", "End Date:", None)) |
|
1100 | 1105 | self.label_2.setText(_translate("MainWindow", "Start Time:", None)) |
|
1101 | 1106 | self.label_3.setText(_translate("MainWindow", "End Time:", None)) |
|
1102 | 1107 | self.label_30.setText(_translate("MainWindow", "Description:", None)) |
|
1103 | 1108 | self.proOk.setText(_translate("MainWindow", "Ok", None)) |
|
1104 | 1109 | self.proClear.setText(_translate("MainWindow", "Clear", None)) |
|
1105 | 1110 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabProject), _translate("MainWindow", "Project", None)) |
|
1106 | 1111 | self.volOpOk.setText(_translate("MainWindow", "Ok", None)) |
|
1107 | 1112 | self.volGraphClear.setText(_translate("MainWindow", "Clear", None)) |
|
1108 | 1113 | self.volOpComHeights.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1109 | 1114 | self.volOpComHeights.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1110 | 1115 | self.volOpComChannels.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1111 | 1116 | self.volOpComChannels.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1112 | 1117 | self.volOpCebProfile.setText(_translate("MainWindow", "Profile Selector", None)) |
|
1113 | 1118 | self.volOpComProfile.setItemText(0, _translate("MainWindow", "Profile List", None)) |
|
1114 | 1119 | self.volOpComProfile.setItemText(1, _translate("MainWindow", "Profile Range List", None)) |
|
1115 | 1120 | self.volOpCebDecodification.setText(_translate("MainWindow", "Decoder", None)) |
|
1116 | 1121 | self.volOpCebCohInt.setText(_translate("MainWindow", "Coherent Integration", None)) |
|
1117 | 1122 | self.label_4.setText(_translate("MainWindow", "Code:", None)) |
|
1118 | 1123 | self.volOpCebChannels.setText(_translate("MainWindow", "Select Channels", None)) |
|
1119 | 1124 | self.volOpCebHeights.setText(_translate("MainWindow", "Select Heights", None)) |
|
1120 | 1125 | self.volOpCebFilter.setText(_translate("MainWindow", "Filter", None)) |
|
1121 | 1126 | self.volOpCebRadarfrequency.setText(_translate("MainWindow", "Radar Frequency", None)) |
|
1122 | 1127 | self.label_5.setText(_translate("MainWindow", "Mode:", None)) |
|
1123 | 1128 | self.volOpComCode.setItemText(0, _translate("MainWindow", "Barker 3", None)) |
|
1124 | 1129 | self.volOpComCode.setItemText(1, _translate("MainWindow", "Barker 4", None)) |
|
1125 | 1130 | self.volOpComCode.setItemText(2, _translate("MainWindow", "Barker 5", None)) |
|
1126 | 1131 | self.volOpComCode.setItemText(3, _translate("MainWindow", "Barker 7", None)) |
|
1127 | 1132 | self.volOpComCode.setItemText(4, _translate("MainWindow", "Barker 11", None)) |
|
1128 | 1133 | self.volOpComCode.setItemText(5, _translate("MainWindow", "Barker 13", None)) |
|
1129 | 1134 | self.volOpComCode.setItemText(6, _translate("MainWindow", "Barker 3 + Comp.", None)) |
|
1130 | 1135 | self.volOpComCode.setItemText(7, _translate("MainWindow", "Barker 4 + Comp.", None)) |
|
1131 | 1136 | self.volOpComCode.setItemText(8, _translate("MainWindow", "Barker 5 + Comp.", None)) |
|
1132 | 1137 | self.volOpComCode.setItemText(9, _translate("MainWindow", "Barker 7 + Comp.", None)) |
|
1133 | 1138 | self.volOpComCode.setItemText(10, _translate("MainWindow", "Barker 11+ Comp.", None)) |
|
1134 | 1139 | self.volOpComCode.setItemText(11, _translate("MainWindow", "Barker 13+ Comp.", None)) |
|
1135 | 1140 | self.volOpComCode.setItemText(12, _translate("MainWindow", "Default", None)) |
|
1136 | 1141 | self.volOpComMode.setItemText(0, _translate("MainWindow", "Time", None)) |
|
1137 | 1142 | self.volOpComMode.setItemText(1, _translate("MainWindow", "Freq 1", None)) |
|
1138 | 1143 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.tabopVoltage), _translate("MainWindow", "Operation", None)) |
|
1139 | 1144 | self.volGraphToolPath.setText(_translate("MainWindow", "...", None)) |
|
1140 | 1145 | self.label_14.setText(_translate("MainWindow", "Scope", None)) |
|
1141 | 1146 | self.label_8.setText(_translate("MainWindow", "Channel List", None)) |
|
1142 | 1147 | self.label_49.setText(_translate("MainWindow", "Show", None)) |
|
1143 | 1148 | self.label_51.setText(_translate("MainWindow", "Freq/Vel", None)) |
|
1144 | 1149 | self.label_12.setText(_translate("MainWindow", "Path :", None)) |
|
1145 | 1150 | self.label_13.setText(_translate("MainWindow", "Prefix:", None)) |
|
1146 | 1151 | self.label_52.setText(_translate("MainWindow", "Height range", None)) |
|
1147 | 1152 | self.label_50.setText(_translate("MainWindow", "Save", None)) |
|
1148 | 1153 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.tabgraphVoltage), _translate("MainWindow", "Graphics", None)) |
|
1149 | 1154 | self.label_36.setText(_translate("MainWindow", "Type:", None)) |
|
1150 | 1155 | self.label_37.setText(_translate("MainWindow", "Path:", None)) |
|
1151 | 1156 | self.volOutputToolPath.setText(_translate("MainWindow", "...", None)) |
|
1152 | 1157 | self.volOutputComData.setItemText(0, _translate("MainWindow", ".rawdata", None)) |
|
1153 | 1158 | self.label_7.setText(_translate("MainWindow", "Blocks per File : ", None)) |
|
1154 | 1159 | self.label_35.setText(_translate("MainWindow", "Profiles per Block: ", None)) |
|
1155 | 1160 | self.tabWidgetVoltage.setTabText(self.tabWidgetVoltage.indexOf(self.taboutputVoltage), _translate("MainWindow", "Output", None)) |
|
1156 | 1161 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabVoltage), _translate("MainWindow", "Voltage", None)) |
|
1157 | 1162 | self.specOpOk.setText(_translate("MainWindow", "Ok", None)) |
|
1158 | 1163 | self.specGraphClear.setText(_translate("MainWindow", "Clear", None)) |
|
1159 | 1164 | self.specOpCebCrossSpectra.setText(_translate("MainWindow", "Select Cross Spectra", None)) |
|
1160 | 1165 | self.specOpComChannel.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1161 | 1166 | self.specOpComChannel.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1162 | 1167 | self.specOpComHeights.setItemText(0, _translate("MainWindow", "Value", None)) |
|
1163 | 1168 | self.specOpComHeights.setItemText(1, _translate("MainWindow", "Index", None)) |
|
1164 | 1169 | self.specOpCebRemoveDC.setText(_translate("MainWindow", "Remove DC", None)) |
|
1165 | 1170 | self.specOpCebHeights.setText(_translate("MainWindow", "Select Heights", None)) |
|
1166 | 1171 | self.specOpCebChannel.setText(_translate("MainWindow", "Select Channel", None)) |
|
1167 | 1172 | self.label_31.setText(_translate("MainWindow", "x-y pairs", None)) |
|
1168 | 1173 | self.label_26.setText(_translate("MainWindow", "nFFTPoints", None)) |
|
1169 | 1174 | self.specOpCebIncoherent.setText(_translate("MainWindow", "Incoherent Integration", None)) |
|
1170 | 1175 | self.specOpCobIncInt.setItemText(0, _translate("MainWindow", "Time Interval", None)) |
|
1171 | 1176 | self.specOpCobIncInt.setItemText(1, _translate("MainWindow", "Profiles", None)) |
|
1172 | 1177 | self.specOpCebRadarfrequency.setText(_translate("MainWindow", "Radar Frequency", None)) |
|
1173 | 1178 | self.label_21.setText(_translate("MainWindow", "Profiles", None)) |
|
1174 | 1179 | self.specOpCebRemoveInt.setText(_translate("MainWindow", "Remove Interference", None)) |
|
1175 | 1180 | self.label_70.setText(_translate("MainWindow", "IppFactor", None)) |
|
1176 | 1181 | self.specOpCebgetNoise.setText(_translate("MainWindow", "Get Noise", None)) |
|
1177 | 1182 | self.specOpComRemoveDC.setItemText(0, _translate("MainWindow", "Mode 1", None)) |
|
1178 | 1183 | self.specOpComRemoveDC.setItemText(1, _translate("MainWindow", "Mode 2", None)) |
|
1179 | 1184 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.tabopSpectra), _translate("MainWindow", "Operation", None)) |
|
1180 | 1185 | self.label_44.setText(_translate("MainWindow", "Coherence Map", None)) |
|
1181 | 1186 | self.label_20.setText(_translate("MainWindow", "Tmin, Tmax:", None)) |
|
1182 | 1187 | self.label_25.setText(_translate("MainWindow", "Prefix", None)) |
|
1183 | 1188 | self.label_42.setText(_translate("MainWindow", "RTI Plot", None)) |
|
1184 | 1189 | self.label_16.setText(_translate("MainWindow", "Height range", None)) |
|
1185 | 1190 | self.label_17.setText(_translate("MainWindow", "dB range", None)) |
|
1186 | 1191 | self.label_18.setText(_translate("MainWindow", "Magnitud ", None)) |
|
1187 | 1192 | self.label_24.setText(_translate("MainWindow", "Path", None)) |
|
1188 | 1193 | self.label_46.setText(_translate("MainWindow", "Power Profile", None)) |
|
1189 | 1194 | self.label_22.setText(_translate("MainWindow", "Freq/Vel:", None)) |
|
1190 | 1195 | self.label_41.setText(_translate("MainWindow", "Cross Spectra Plot", None)) |
|
1191 | 1196 | self.specGraphToolPath.setText(_translate("MainWindow", "...", None)) |
|
1192 | 1197 | self.label_6.setText(_translate("MainWindow", "Channel List:", None)) |
|
1193 | 1198 | self.label_40.setText(_translate("MainWindow", "Spectra Plot", None)) |
|
1194 | 1199 | self.label_43.setText(_translate("MainWindow", "Show", None)) |
|
1195 | 1200 | self.label_29.setText(_translate("MainWindow", "Wr Period:", None)) |
|
1196 | 1201 | self.label_47.setText(_translate("MainWindow", "Save", None)) |
|
1197 | 1202 | self.label_19.setText(_translate("MainWindow", "ftp", None)) |
|
1198 | 1203 | self.label_45.setText(_translate("MainWindow", "Noise", None)) |
|
1199 | 1204 | self.label_48.setText(_translate("MainWindow", "Time Range:", None)) |
|
1200 | 1205 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.tabgraphSpectra), _translate("MainWindow", "Graphics", None)) |
|
1201 | 1206 | self.label_39.setText(_translate("MainWindow", "Type:", None)) |
|
1202 | 1207 | self.specOutputComData.setItemText(0, _translate("MainWindow", ".pdata", None)) |
|
1203 | 1208 | self.label_34.setText(_translate("MainWindow", "Path:", None)) |
|
1204 | 1209 | self.specOutputToolPath.setText(_translate("MainWindow", "...", None)) |
|
1205 | 1210 | self.label_9.setText(_translate("MainWindow", "Blocks per File: ", None)) |
|
1206 | 1211 | self.label_38.setText(_translate("MainWindow", "Profile per Block: ", None)) |
|
1207 | 1212 | self.tabWidgetSpectra.setTabText(self.tabWidgetSpectra.indexOf(self.taboutputSpectra), _translate("MainWindow", "Output", None)) |
|
1208 | 1213 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabSpectra), _translate("MainWindow", "Spectra", None)) |
|
1209 | 1214 | self.specHeisGraphClear.setText(_translate("MainWindow", "Clear", None)) |
|
1210 | 1215 | self.specHeisOpOk.setText(_translate("MainWindow", "Ok", None)) |
|
1211 | 1216 | self.specHeisOpCobIncInt.setItemText(0, _translate("MainWindow", "Time Interval", None)) |
|
1212 | 1217 | self.specHeisOpCebIncoherent.setText(_translate("MainWindow", "Incoherent Intergration", None)) |
|
1213 | 1218 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabopSpectraHeis), _translate("MainWindow", "Operation", None)) |
|
1214 | 1219 | self.label_54.setText(_translate("MainWindow", "Prefix", None)) |
|
1215 | 1220 | self.specHeisGraphToolPath.setText(_translate("MainWindow", "...", None)) |
|
1216 | 1221 | self.label_62.setText(_translate("MainWindow", "ymin - ymax", None)) |
|
1217 | 1222 | self.label_63.setText(_translate("MainWindow", "Tmin - Tmax:", None)) |
|
1218 | 1223 | self.label_64.setText(_translate("MainWindow", "Time Range:", None)) |
|
1219 | 1224 | self.label_65.setText(_translate("MainWindow", "Wr Period", None)) |
|
1220 | 1225 | self.label_60.setText(_translate("MainWindow", "Channel List:", None)) |
|
1221 | 1226 | self.label_61.setText(_translate("MainWindow", "xmin - xmax", None)) |
|
1222 | 1227 | self.label_56.setText(_translate("MainWindow", "Save", None)) |
|
1223 | 1228 | self.label_57.setText(_translate("MainWindow", "ftp", None)) |
|
1224 | 1229 | self.label_58.setText(_translate("MainWindow", "Spectra Plot", None)) |
|
1225 | 1230 | self.label_53.setText(_translate("MainWindow", "Path", None)) |
|
1226 | 1231 | self.label_55.setText(_translate("MainWindow", "Show", None)) |
|
1227 | 1232 | self.label_59.setText(_translate("MainWindow", "RTI PLot", None)) |
|
1228 | 1233 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.tabgraphSpectraHeis), _translate("MainWindow", "Graphics", None)) |
|
1229 | 1234 | self.label_67.setText(_translate("MainWindow", "Path:", None)) |
|
1230 | 1235 | self.label_68.setText(_translate("MainWindow", "Blocks per File:", None)) |
|
1231 | 1236 | self.label_66.setText(_translate("MainWindow", "Type:", None)) |
|
1232 | 1237 | self.specHeisOutputToolPath.setText(_translate("MainWindow", "...", None)) |
|
1233 | 1238 | self.specHeisOutputComdata.setItemText(0, _translate("MainWindow", ".fits", None)) |
|
1234 | 1239 | self.label_69.setText(_translate("MainWindow", "Metada", None)) |
|
1235 | 1240 | self.specHeisOutputMetadaToolPath.setText(_translate("MainWindow", "...", None)) |
|
1236 | 1241 | self.tabWidgetSpectraHeis.setTabText(self.tabWidgetSpectraHeis.indexOf(self.taboutputSpectraHeis), _translate("MainWindow", "Output", None)) |
|
1237 | 1242 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabSpectraHeis), _translate("MainWindow", "SpectraHeis", None)) |
|
1238 | 1243 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation), _translate("MainWindow", "Operation", None)) |
|
1239 | 1244 | self.tabWidget_2.setTabText(self.tabWidget_2.indexOf(self.tabopCorrelation1), _translate("MainWindow", "Graphics", None)) |
|
1240 | 1245 | self.tabWidgetProject.setTabText(self.tabWidgetProject.indexOf(self.tabCorrelation), _translate("MainWindow", "Correlation", None)) |
|
1241 | 1246 | |
|
1242 | 1247 | |
|
1243 | 1248 | self.tabConsole.setTabText(self.tabConsole.indexOf(self.tab_5), _translate("MainWindow", "Console", None)) |
|
1244 | 1249 | |
|
1245 | 1250 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabProjectProperty), _translate("MainWindow", "Project Property", None)) |
|
1246 | 1251 | self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None)) |
|
1247 | 1252 | self.menuProject.setTitle(_translate("MainWindow", "Project", None)) |
|
1248 | 1253 | self.menuRun.setTitle(_translate("MainWindow", "Run", None)) |
|
1249 | 1254 | self.menuOptions.setTitle(_translate("MainWindow", "Options", None)) |
|
1250 | 1255 | self.menuHelp.setTitle(_translate("MainWindow", "Help", None)) |
|
1251 | 1256 | self.actionOpen.setText(_translate("MainWindow", "Open", None)) |
|
1252 | 1257 | self.actionCreate.setText(_translate("MainWindow", "Create", None)) |
|
1253 | 1258 | self.actionSave.setText(_translate("MainWindow", "Save", None)) |
|
1254 | 1259 | self.actionClose.setText(_translate("MainWindow", "Close", None)) |
|
1255 | 1260 | self.actionStart.setText(_translate("MainWindow", "Start", None)) |
|
1256 | 1261 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) |
|
1257 | 1262 | self.actionStop.setText(_translate("MainWindow", "Stop", None)) |
|
1258 | 1263 | self.actionAbout.setText(_translate("MainWindow", "About", None)) |
|
1259 | 1264 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) |
|
1260 | 1265 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open Project", None)) |
|
1261 | 1266 | self.actionCreateToolbar.setText(_translate("MainWindow", "createToolbar", None)) |
|
1262 | 1267 | self.actionCreateToolbar.setToolTip(_translate("MainWindow", "Create Ṕroject", None)) |
|
1263 | 1268 | self.actionSaveToolbar.setText(_translate("MainWindow", "saveToolbar", None)) |
|
1264 | 1269 | self.actionSaveToolbar.setToolTip(_translate("MainWindow", "Save Project", None)) |
|
1265 | 1270 | self.actionStarToolbar.setText(_translate("MainWindow", "starToolbar", None)) |
|
1266 | 1271 | self.actionStarToolbar.setToolTip(_translate("MainWindow", "Start ", None)) |
|
1267 | 1272 | self.actionStopToolbar.setText(_translate("MainWindow", "stopToolbar", None)) |
|
1268 | 1273 | self.actionStopToolbar.setToolTip(_translate("MainWindow", "Stop", None)) |
|
1269 | 1274 | self.actionPauseToolbar.setText(_translate("MainWindow", "pauseToolbar", None)) |
|
1270 | 1275 | self.actionPauseToolbar.setToolTip(_translate("MainWindow", "Pause", None)) |
|
1271 | 1276 | self.actionAddPU.setText(_translate("MainWindow", "Add Processing Unit", None)) |
|
1272 | 1277 | self.actionFTP.setText(_translate("MainWindow", "FTP", None)) |
|
1273 | 1278 | |
|
1274 | 1279 | |
|
1275 | 1280 | class Ui_EnvWindow(object): |
|
1276 | 1281 | |
|
1277 | 1282 | def changeIcon(self): |
|
1278 | 1283 | |
|
1279 | 1284 | if self.a==1: |
|
1280 | 1285 | iconPauseRed = QtGui.QIcon() |
|
1281 |
iconPauseRed.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1286 | iconPauseRed.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"pausered.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1282 | 1287 | self.actionPauseToolbar.setIcon(iconPauseRed) |
|
1283 | 1288 | self.a+=1 |
|
1284 | 1289 | return 0 |
|
1285 | 1290 | if self.a==2: |
|
1286 | 1291 | iconPause = QtGui.QIcon() |
|
1287 |
iconPause.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1292 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"pause.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1288 | 1293 | self.actionPauseToolbar.setIcon(iconPause) |
|
1289 | 1294 | self.a-=1 |
|
1290 | 1295 | return 0 |
|
1291 | 1296 | |
|
1292 | 1297 | def setupUi(self, MainWindow): |
|
1293 | 1298 | |
|
1294 | 1299 | MainWindow.setObjectName(_fromUtf8("MainWindow")) |
|
1295 | 1300 | MainWindow.resize(1203, 711) |
|
1296 | 1301 | |
|
1297 | 1302 | self.centralWidget = QtGui.QWidget(MainWindow) |
|
1298 | 1303 | self.centralWidget.setObjectName(_fromUtf8("centralWidget")) |
|
1299 | 1304 | self.gridLayout_16 = QtGui.QGridLayout(self.centralWidget) |
|
1300 | 1305 | self.gridLayout_16.setObjectName(_fromUtf8("gridLayout_16")) |
|
1301 | 1306 | self.splitter_2 = QtGui.QSplitter(self.centralWidget) |
|
1302 | 1307 | self.splitter_2.setOrientation(QtCore.Qt.Horizontal) |
|
1303 | 1308 | self.splitter_2.setObjectName(_fromUtf8("splitter_2")) |
|
1304 | 1309 | self.projectExplorerTree = QtGui.QTreeView(self.splitter_2) |
|
1305 | 1310 | self.projectExplorerTree.setObjectName(_fromUtf8("projectExplorerTree")) |
|
1306 | 1311 | self.splitter = QtGui.QSplitter(self.splitter_2) |
|
1307 | 1312 | self.splitter.setOrientation(QtCore.Qt.Vertical) |
|
1308 | 1313 | self.splitter.setObjectName(_fromUtf8("splitter")) |
|
1309 | 1314 | self.tabWidgetProject = QtGui.QTabWidget(self.splitter) |
|
1310 | 1315 | self.tabWidgetProject.setMinimumSize(QtCore.QSize(0, 278)) |
|
1311 | 1316 | self.tabWidgetProject.setMaximumSize(QtCore.QSize(16777215, 16777215)) |
|
1312 | 1317 | self.tabWidgetProject.setObjectName(_fromUtf8("tabWidgetProject")) |
|
1313 | 1318 | |
|
1314 | 1319 | self.tabConsole = QtGui.QTabWidget(self.splitter) |
|
1315 | 1320 | self.tabConsole.setMinimumSize(QtCore.QSize(0, 0)) |
|
1316 | 1321 | self.tabConsole.setObjectName(_fromUtf8("tabConsole")) |
|
1317 | 1322 | self.tab_5 = QtGui.QWidget() |
|
1318 | 1323 | self.tab_5.setObjectName(_fromUtf8("tab_5")) |
|
1319 | 1324 | self.gridLayout_4 = QtGui.QGridLayout(self.tab_5) |
|
1320 | 1325 | self.gridLayout_4.setObjectName(_fromUtf8("gridLayout_4")) |
|
1321 | 1326 | self.console = QtGui.QTextEdit(self.tab_5) |
|
1322 | 1327 | self.console.setObjectName(_fromUtf8("console")) |
|
1323 | 1328 | self.gridLayout_4.addWidget(self.console, 0, 0, 1, 1) |
|
1324 | 1329 | self.tabConsole.addTab(self.tab_5, _fromUtf8("")) |
|
1325 | 1330 | self.tabWidget = QtGui.QTabWidget(self.splitter_2) |
|
1326 | 1331 | self.tabWidget.setObjectName(_fromUtf8("tabWidget")) |
|
1327 | 1332 | self.tabProjectProperty = QtGui.QWidget() |
|
1328 | 1333 | self.tabProjectProperty.setObjectName(_fromUtf8("tabProjectProperty")) |
|
1329 | 1334 | self.gridLayout_8 = QtGui.QGridLayout(self.tabProjectProperty) |
|
1330 | 1335 | self.gridLayout_8.setObjectName(_fromUtf8("gridLayout_8")) |
|
1331 | 1336 | self.treeProjectProperties = QtGui.QTreeView(self.tabProjectProperty) |
|
1332 | 1337 | self.treeProjectProperties.setObjectName(_fromUtf8("treeProjectProperties")) |
|
1333 | 1338 | self.gridLayout_8.addWidget(self.treeProjectProperties, 0, 0, 1, 1) |
|
1334 | 1339 | self.tabWidget.addTab(self.tabProjectProperty, _fromUtf8("")) |
|
1335 | 1340 | self.gridLayout_16.addWidget(self.splitter_2, 1, 0, 1, 1) |
|
1336 | 1341 | |
|
1337 | 1342 | MainWindow.setCentralWidget(self.centralWidget) |
|
1338 | 1343 | self.toolBar = QtGui.QToolBar(MainWindow) |
|
1339 | 1344 | self.toolBar.setObjectName(_fromUtf8("toolBar")) |
|
1340 | 1345 | MainWindow.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar) |
|
1341 | 1346 | |
|
1342 | 1347 | self.menuBar = QtGui.QMenuBar(MainWindow) |
|
1343 | 1348 | self.menuBar.setGeometry(QtCore.QRect(0, 0, 1065, 25)) |
|
1344 | 1349 | self.menuBar.setObjectName(_fromUtf8("menuBar")) |
|
1345 | 1350 | self.menuProject = QtGui.QMenu(self.menuBar) |
|
1346 | 1351 | self.menuProject.setObjectName(_fromUtf8("menuProject")) |
|
1347 | 1352 | self.menuRun = QtGui.QMenu(self.menuBar) |
|
1348 | 1353 | self.menuRun.setObjectName(_fromUtf8("menuRun")) |
|
1349 | 1354 | self.menuOptions = QtGui.QMenu(self.menuBar) |
|
1350 | 1355 | self.menuOptions.setObjectName(_fromUtf8("menuOptions")) |
|
1351 | 1356 | self.menuHelp = QtGui.QMenu(self.menuBar) |
|
1352 | 1357 | self.menuHelp.setObjectName(_fromUtf8("menuHelp")) |
|
1353 | 1358 | MainWindow.setMenuBar(self.menuBar) |
|
1354 | 1359 | |
|
1355 | 1360 | iconOpen = QtGui.QIcon() |
|
1356 |
iconOpen.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1361 | iconOpen.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"open.gif") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1357 | 1362 | iconCreate = QtGui.QIcon() |
|
1358 |
iconCreate.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1363 | iconCreate.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"project.gif") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1359 | 1364 | iconSave = QtGui.QIcon() |
|
1360 |
iconSave.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1365 | iconSave.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"saveicon.jpeg") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1361 | 1366 | iconStart = QtGui.QIcon() |
|
1362 |
iconStart.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1367 | iconStart.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"startServer.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1363 | 1368 | iconStop = QtGui.QIcon() |
|
1364 |
iconStop.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1369 | iconStop.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"stopServer.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1365 | 1370 | iconPause = QtGui.QIcon() |
|
1366 |
iconPause.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1371 | iconPause.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"pause.png") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1367 | 1372 | iconAddPU = QtGui.QIcon() |
|
1368 |
iconAddPU.addPixmap(QtGui.QPixmap(_fromUtf8(" |
|
|
1373 | iconAddPU.addPixmap(QtGui.QPixmap(_fromUtf8( os.path.join(FIGURES_PATH,"add_PU.gif") )), QtGui.QIcon.Normal, QtGui.QIcon.Off) | |
|
1369 | 1374 | |
|
1370 | 1375 | self.actionOpen = QtGui.QAction(MainWindow) |
|
1371 | 1376 | self.actionOpen.setIcon(iconOpen) |
|
1372 | 1377 | self.actionOpen.setObjectName(_fromUtf8("actionOpen")) |
|
1373 | 1378 | self.actionCreate = QtGui.QAction(MainWindow) |
|
1374 | 1379 | self.actionCreate.setIcon(iconCreate) |
|
1375 | 1380 | self.actionCreate.setObjectName(_fromUtf8("actionCreate")) |
|
1376 | 1381 | self.actionSave = QtGui.QAction(MainWindow) |
|
1377 | 1382 | self.actionSave.setIcon(iconSave) |
|
1378 | 1383 | self.actionSave.setObjectName(_fromUtf8("actionSave")) |
|
1379 | 1384 | self.actionClose = QtGui.QAction(MainWindow) |
|
1380 | 1385 | self.actionClose.setObjectName(_fromUtf8("actionClose")) |
|
1381 | 1386 | self.actionStart = QtGui.QAction(MainWindow) |
|
1382 | 1387 | self.actionStart.setIcon(iconStart) |
|
1383 | 1388 | self.actionStart.setObjectName(_fromUtf8("actionStart")) |
|
1384 | 1389 | self.actionPause = QtGui.QAction(MainWindow) |
|
1385 | 1390 | self.actionPause.setIcon(iconPause) |
|
1386 | 1391 | self.actionPause.setObjectName(_fromUtf8("actionPause")) |
|
1387 | 1392 | self.actionStop = QtGui.QAction(MainWindow) |
|
1388 | 1393 | self.actionStop.setIcon(iconStop) |
|
1389 | 1394 | self.actionStop.setObjectName(_fromUtf8("actionStop")) |
|
1390 | 1395 | self.actionAbout = QtGui.QAction(MainWindow) |
|
1391 | 1396 | self.actionAbout.setObjectName(_fromUtf8("actionAbout")) |
|
1392 | 1397 | self.actionOpenToolbar = QtGui.QAction(MainWindow) |
|
1393 | 1398 | self.actionOpenToolbar.setIcon(iconOpen) |
|
1394 | 1399 | self.actionOpenToolbar.setObjectName(_fromUtf8("actionOpenToolbar")) |
|
1395 | 1400 | self.actionCreateToolbar = QtGui.QAction(MainWindow) |
|
1396 | 1401 | self.actionCreateToolbar.setIcon(iconCreate) |
|
1397 | 1402 | self.actionCreateToolbar.setObjectName(_fromUtf8("actionCreateToolbar")) |
|
1398 | 1403 | self.actionSaveToolbar = QtGui.QAction(MainWindow) |
|
1399 | 1404 | self.actionSaveToolbar.setIcon(iconSave) |
|
1400 | 1405 | self.actionSaveToolbar.setObjectName(_fromUtf8("actionSaveToolbar")) |
|
1401 | 1406 | self.actionStarToolbar = QtGui.QAction(MainWindow) |
|
1402 | 1407 | self.actionStarToolbar.setIcon(iconStart) |
|
1403 | 1408 | self.actionStarToolbar.setObjectName(_fromUtf8("actionStarToolbar")) |
|
1404 | 1409 | self.actionStopToolbar = QtGui.QAction(MainWindow) |
|
1405 | 1410 | self.actionStopToolbar.setIcon(iconStop) |
|
1406 | 1411 | self.actionStopToolbar.setObjectName(_fromUtf8("actionStopToolbar")) |
|
1407 | 1412 | self.actionPauseToolbar = QtGui.QAction(MainWindow) |
|
1408 | 1413 | self.actionPause.setIcon(iconPause) |
|
1409 | 1414 | self.actionPauseToolbar.setIcon(iconPause) |
|
1410 | 1415 | self.actionPauseToolbar.setObjectName(_fromUtf8("actionPauseToolbar")) |
|
1411 | 1416 | self.actionAddPU = QtGui.QAction(MainWindow) |
|
1412 | 1417 | self.actionAddPU.setIcon(iconAddPU) |
|
1413 | 1418 | self.actionAddPU.setObjectName(_fromUtf8("actionAddPU")) |
|
1414 | 1419 | self.actionFTP = QtGui.QAction(MainWindow) |
|
1415 | 1420 | self.actionFTP.setObjectName(_fromUtf8("actionFTP")) |
|
1416 | 1421 | self.toolBar.addAction(self.actionOpenToolbar) |
|
1417 | 1422 | self.toolBar.addSeparator() |
|
1418 | 1423 | self.toolBar.addAction(self.actionCreateToolbar) |
|
1419 | 1424 | self.toolBar.addSeparator() |
|
1420 | 1425 | self.toolBar.addAction(self.actionAddPU) |
|
1421 | 1426 | self.toolBar.addSeparator() |
|
1422 | 1427 | self.toolBar.addAction(self.actionSaveToolbar) |
|
1423 | 1428 | self.toolBar.addSeparator() |
|
1424 | 1429 | self.toolBar.addAction(self.actionStarToolbar) |
|
1425 | 1430 | self.toolBar.addSeparator() |
|
1426 | 1431 | self.toolBar.addAction(self.actionPauseToolbar) |
|
1427 | 1432 | self.toolBar.addSeparator() |
|
1428 | 1433 | self.toolBar.addAction(self.actionStopToolbar) |
|
1429 | 1434 | self.toolBar.addSeparator() |
|
1430 | 1435 | self.a=1 |
|
1431 | 1436 | self.actionPauseToolbar.triggered.connect(self.changeIcon) |
|
1432 | 1437 | |
|
1433 | 1438 | self.menuProject.addAction(self.actionOpen) |
|
1434 | 1439 | self.menuProject.addAction(self.actionCreate) |
|
1435 | 1440 | self.menuProject.addAction(self.actionSave) |
|
1436 | 1441 | self.menuProject.addAction(self.actionClose) |
|
1437 | 1442 | self.menuRun.addAction(self.actionStart) |
|
1438 | 1443 | self.menuRun.addAction(self.actionPause) |
|
1439 | 1444 | self.menuRun.addAction(self.actionStop) |
|
1440 | 1445 | self.menuOptions.addAction(self.actionFTP) |
|
1441 | 1446 | self.menuHelp.addAction(self.actionAbout) |
|
1442 | 1447 | self.menuBar.addAction(self.menuProject.menuAction()) |
|
1443 | 1448 | self.menuBar.addAction(self.menuRun.menuAction()) |
|
1444 | 1449 | self.menuBar.addAction(self.menuOptions.menuAction()) |
|
1445 | 1450 | self.menuBar.addAction(self.menuHelp.menuAction()) |
|
1446 | 1451 | |
|
1447 | 1452 | self.tabConsole.setCurrentIndex(0) |
|
1448 | 1453 | self.tabWidget.setCurrentIndex(0) |
|
1449 | 1454 | |
|
1450 | 1455 | def retranslateUi(self, MainWindow): |
|
1451 | 1456 | |
|
1452 | 1457 | MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow", None)) |
|
1453 | 1458 | |
|
1454 | 1459 | self.tabConsole.setTabText(self.tabConsole.indexOf(self.tab_5), _translate("MainWindow", "Console", None)) |
|
1455 | 1460 | |
|
1456 | 1461 | self.tabWidget.setTabText(self.tabWidget.indexOf(self.tabProjectProperty), _translate("MainWindow", "Project Property", None)) |
|
1457 | 1462 | self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar", None)) |
|
1458 | 1463 | self.menuProject.setTitle(_translate("MainWindow", "Project", None)) |
|
1459 | 1464 | self.menuRun.setTitle(_translate("MainWindow", "Run", None)) |
|
1460 | 1465 | self.menuOptions.setTitle(_translate("MainWindow", "Options", None)) |
|
1461 | 1466 | self.menuHelp.setTitle(_translate("MainWindow", "Help", None)) |
|
1462 | 1467 | self.actionOpen.setText(_translate("MainWindow", "Open", None)) |
|
1463 | 1468 | self.actionCreate.setText(_translate("MainWindow", "Create", None)) |
|
1464 | 1469 | self.actionSave.setText(_translate("MainWindow", "Save", None)) |
|
1465 | 1470 | self.actionClose.setText(_translate("MainWindow", "Close", None)) |
|
1466 | 1471 | self.actionStart.setText(_translate("MainWindow", "Start", None)) |
|
1467 | 1472 | self.actionPause.setText(_translate("MainWindow", "Pause", None)) |
|
1468 | 1473 | self.actionStop.setText(_translate("MainWindow", "Stop", None)) |
|
1469 | 1474 | self.actionAbout.setText(_translate("MainWindow", "About", None)) |
|
1470 | 1475 | self.actionOpenToolbar.setText(_translate("MainWindow", "openToolbar", None)) |
|
1471 | 1476 | self.actionOpenToolbar.setToolTip(_translate("MainWindow", "Open Project", None)) |
|
1472 | 1477 | self.actionCreateToolbar.setText(_translate("MainWindow", "createToolbar", None)) |
|
1473 | 1478 | self.actionCreateToolbar.setToolTip(_translate("MainWindow", "Create Ṕroject", None)) |
|
1474 | 1479 | self.actionSaveToolbar.setText(_translate("MainWindow", "saveToolbar", None)) |
|
1475 | 1480 | self.actionSaveToolbar.setToolTip(_translate("MainWindow", "Save Project", None)) |
|
1476 | 1481 | self.actionStarToolbar.setText(_translate("MainWindow", "starToolbar", None)) |
|
1477 | 1482 | self.actionStarToolbar.setToolTip(_translate("MainWindow", "Start ", None)) |
|
1478 | 1483 | self.actionStopToolbar.setText(_translate("MainWindow", "stopToolbar", None)) |
|
1479 | 1484 | self.actionStopToolbar.setToolTip(_translate("MainWindow", "Stop", None)) |
|
1480 | 1485 | self.actionPauseToolbar.setText(_translate("MainWindow", "pauseToolbar", None)) |
|
1481 | 1486 | self.actionPauseToolbar.setToolTip(_translate("MainWindow", "Pause", None)) |
|
1482 | 1487 | self.actionAddPU.setText(_translate("MainWindow", "Add Processing Unit", None)) |
|
1483 | 1488 | self.actionFTP.setText(_translate("MainWindow", "FTP", None)) |
|
1484 | 1489 | |
|
1485 | 1490 | class Ui_BasicWindow(Ui_EnvWindow, Ui_ProjectTab, Ui_VoltageTab, Ui_SpectraTab, Ui_SpectraHeisTab, Ui_CorrelationTab): |
|
1486 | 1491 | |
|
1487 | 1492 | def setupUi(self, MainWindow): |
|
1488 | 1493 | |
|
1489 | 1494 | Ui_EnvWindow.setupUi(self, MainWindow) |
|
1490 | 1495 | |
|
1491 | 1496 | Ui_ProjectTab.setupUi(self) |
|
1492 | 1497 | Ui_VoltageTab.setupUi(self) |
|
1493 | 1498 | Ui_SpectraTab.setupUi(self) |
|
1494 | 1499 | Ui_SpectraHeisTab.setupUi(self) |
|
1495 | 1500 | Ui_CorrelationTab.setupUi(self) |
|
1496 | 1501 | |
|
1497 | 1502 | self.retranslateUi(MainWindow) |
|
1498 | 1503 | |
|
1499 | 1504 | QtCore.QMetaObject.connectSlotsByName(MainWindow) |
|
1500 | 1505 | |
|
1501 | 1506 | def retranslateUi(self, MainWindow): |
|
1502 | 1507 | |
|
1503 | 1508 | Ui_EnvWindow.retranslateUi(self, MainWindow) |
|
1504 | 1509 | |
|
1505 | 1510 | Ui_ProjectTab.retranslateUi(self) |
|
1506 | 1511 | Ui_VoltageTab.retranslateUi(self) |
|
1507 | 1512 | Ui_SpectraTab.retranslateUi(self) |
|
1508 | 1513 | Ui_SpectraHeisTab.retranslateUi(self) |
|
1509 | 1514 | Ui_CorrelationTab.retranslateUi(self) |
|
1510 | 1515 | |
|
1511 | 1516 | |
|
1512 | 1517 | class Ui_AdvancedWindow(Ui_MainWindow): |
|
1513 | 1518 | |
|
1514 | 1519 | def setupUi(self, AdvancedWindow): |
|
1515 | 1520 | |
|
1516 | 1521 | Ui_MainWindow.setupUi(self, AdvancedWindow) |
|
1517 | 1522 | |
|
1518 | 1523 | def retranslateUi(self, AdvancedWindow): |
|
1519 | 1524 | |
|
1520 | 1525 | Ui_MainWindow.retranslateUi(self, AdvancedWindow) |
|
1521 | 1526 | |
|
1522 | 1527 | |
|
1523 | 1528 | |
|
1524 | 1529 | if __name__ == "__main__": |
|
1525 | 1530 | import sys |
|
1526 | 1531 | app = QtGui.QApplication(sys.argv) |
|
1527 | 1532 | MainWindow = QtGui.QMainWindow() |
|
1528 | 1533 | ui = Ui_BasicWindow() |
|
1529 | 1534 | ui.setupUi(MainWindow) |
|
1530 | 1535 | MainWindow.show() |
|
1531 | 1536 | sys.exit(app.exec_()) |
|
1532 | 1537 |
@@ -1,1326 +1,1326 | |||
|
1 | 1 | ''' |
|
2 | 2 | Created on Jul 9, 2014 |
|
3 | 3 | |
|
4 | 4 | @author: roj-idl71 |
|
5 | 5 | ''' |
|
6 | 6 | import os |
|
7 | 7 | import datetime |
|
8 | 8 | import numpy |
|
9 | 9 | |
|
10 | 10 | from figure import Figure, isRealtime |
|
11 | 11 | from plotting_codes import * |
|
12 | 12 | |
|
13 | 13 | class SpectraPlot(Figure): |
|
14 | 14 | |
|
15 | 15 | isConfig = None |
|
16 | 16 | __nsubplots = None |
|
17 | 17 | |
|
18 | 18 | WIDTHPROF = None |
|
19 | 19 | HEIGHTPROF = None |
|
20 | 20 | PREFIX = 'spc' |
|
21 | 21 | |
|
22 | 22 | def __init__(self): |
|
23 | 23 | |
|
24 | 24 | self.isConfig = False |
|
25 | 25 | self.__nsubplots = 1 |
|
26 | 26 | |
|
27 | 27 | self.WIDTH = 280 |
|
28 | 28 | self.HEIGHT = 250 |
|
29 | 29 | self.WIDTHPROF = 120 |
|
30 | 30 | self.HEIGHTPROF = 0 |
|
31 | 31 | self.counter_imagwr = 0 |
|
32 | 32 | |
|
33 | 33 | self.PLOT_CODE = SPEC_CODE |
|
34 | 34 | |
|
35 | 35 | self.FTP_WEI = None |
|
36 | 36 | self.EXP_CODE = None |
|
37 | 37 | self.SUB_EXP_CODE = None |
|
38 | 38 | self.PLOT_POS = None |
|
39 | 39 | |
|
40 | 40 | self.__xfilter_ena = False |
|
41 | 41 | self.__yfilter_ena = False |
|
42 | 42 | |
|
43 | 43 | def getSubplots(self): |
|
44 | 44 | |
|
45 | 45 | ncol = int(numpy.sqrt(self.nplots)+0.9) |
|
46 | 46 | nrow = int(self.nplots*1./ncol + 0.9) |
|
47 | 47 | |
|
48 | 48 | return nrow, ncol |
|
49 | 49 | |
|
50 | 50 | def setup(self, id, nplots, wintitle, showprofile=True, show=True): |
|
51 | 51 | |
|
52 | 52 | self.__showprofile = showprofile |
|
53 | 53 | self.nplots = nplots |
|
54 | 54 | |
|
55 | 55 | ncolspan = 1 |
|
56 | 56 | colspan = 1 |
|
57 | 57 | if showprofile: |
|
58 | 58 | ncolspan = 3 |
|
59 | 59 | colspan = 2 |
|
60 | 60 | self.__nsubplots = 2 |
|
61 | 61 | |
|
62 | 62 | self.createFigure(id = id, |
|
63 | 63 | wintitle = wintitle, |
|
64 | 64 | widthplot = self.WIDTH + self.WIDTHPROF, |
|
65 | 65 | heightplot = self.HEIGHT + self.HEIGHTPROF, |
|
66 | 66 | show=show) |
|
67 | 67 | |
|
68 | 68 | nrow, ncol = self.getSubplots() |
|
69 | 69 | |
|
70 | 70 | counter = 0 |
|
71 | 71 | for y in range(nrow): |
|
72 | 72 | for x in range(ncol): |
|
73 | 73 | |
|
74 | 74 | if counter >= self.nplots: |
|
75 | 75 | break |
|
76 | 76 | |
|
77 | 77 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan, colspan, 1) |
|
78 | 78 | |
|
79 | 79 | if showprofile: |
|
80 | 80 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan+colspan, 1, 1) |
|
81 | 81 | |
|
82 | 82 | counter += 1 |
|
83 | 83 | |
|
84 | 84 | def run(self, dataOut, id, wintitle="", channelList=None, showprofile=True, |
|
85 | 85 | xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None, |
|
86 | 86 | save=False, figpath='./', figfile=None, show=True, ftp=False, wr_period=1, |
|
87 | 87 | server=None, folder=None, username=None, password=None, |
|
88 | 88 | ftp_wei=0, exp_code=0, sub_exp_code=0, plot_pos=0, realtime=False): |
|
89 | 89 | |
|
90 | 90 | """ |
|
91 | 91 | |
|
92 | 92 | Input: |
|
93 | 93 | dataOut : |
|
94 | 94 | id : |
|
95 | 95 | wintitle : |
|
96 | 96 | channelList : |
|
97 | 97 | showProfile : |
|
98 | 98 | xmin : None, |
|
99 | 99 | xmax : None, |
|
100 | 100 | ymin : None, |
|
101 | 101 | ymax : None, |
|
102 | 102 | zmin : None, |
|
103 | 103 | zmax : None |
|
104 | 104 | """ |
|
105 | 105 | |
|
106 | 106 | if realtime: |
|
107 | 107 | if not(isRealtime(utcdatatime = dataOut.utctime)): |
|
108 | 108 | print 'Skipping this plot function' |
|
109 | 109 | return |
|
110 | 110 | |
|
111 | 111 | if channelList == None: |
|
112 | 112 | channelIndexList = dataOut.channelIndexList |
|
113 | 113 | else: |
|
114 | 114 | channelIndexList = [] |
|
115 | 115 | for channel in channelList: |
|
116 | 116 | if channel not in dataOut.channelList: |
|
117 | 117 | raise ValueError, "Channel %d is not in dataOut.channelList" |
|
118 | 118 | channelIndexList.append(dataOut.channelList.index(channel)) |
|
119 | 119 | |
|
120 | 120 | factor = dataOut.normFactor |
|
121 | 121 | |
|
122 | 122 | x = dataOut.getVelRange(1) |
|
123 | 123 | y = dataOut.getHeiRange() |
|
124 | 124 | |
|
125 | 125 | z = dataOut.data_spc[channelIndexList,:,:]/factor |
|
126 | 126 | z = numpy.where(numpy.isfinite(z), z, numpy.NAN) |
|
127 | 127 | zdB = 10*numpy.log10(z) |
|
128 | 128 | |
|
129 |
avg = numpy. |
|
|
129 | avg = numpy.average(z, axis=1) | |
|
130 | 130 | avgdB = 10*numpy.log10(avg) |
|
131 | 131 | |
|
132 | 132 | noise = dataOut.getNoise()/factor |
|
133 | 133 | noisedB = 10*numpy.log10(noise) |
|
134 | 134 | |
|
135 | 135 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
136 | 136 | title = wintitle + " Spectra" |
|
137 | 137 | if ((dataOut.azimuth!=None) and (dataOut.zenith!=None)): |
|
138 | 138 | title = title + '_' + 'azimuth,zenith=%2.2f,%2.2f'%(dataOut.azimuth, dataOut.zenith) |
|
139 | 139 | |
|
140 | 140 | xlabel = "Velocity (m/s)" |
|
141 | 141 | ylabel = "Range (Km)" |
|
142 | 142 | |
|
143 | 143 | if not self.isConfig: |
|
144 | 144 | |
|
145 | 145 | nplots = len(channelIndexList) |
|
146 | 146 | |
|
147 | 147 | self.setup(id=id, |
|
148 | 148 | nplots=nplots, |
|
149 | 149 | wintitle=wintitle, |
|
150 | 150 | showprofile=showprofile, |
|
151 | 151 | show=show) |
|
152 | 152 | |
|
153 | 153 | if xmin == None: xmin = numpy.nanmin(x) |
|
154 | 154 | if xmax == None: xmax = numpy.nanmax(x) |
|
155 | 155 | if ymin == None: ymin = numpy.nanmin(y) |
|
156 | 156 | if ymax == None: ymax = numpy.nanmax(y) |
|
157 | 157 | if zmin == None: zmin = numpy.floor(numpy.nanmin(noisedB)) - 3 |
|
158 | 158 | if zmax == None: zmax = numpy.ceil(numpy.nanmax(avgdB)) + 3 |
|
159 | 159 | |
|
160 | 160 | self.FTP_WEI = ftp_wei |
|
161 | 161 | self.EXP_CODE = exp_code |
|
162 | 162 | self.SUB_EXP_CODE = sub_exp_code |
|
163 | 163 | self.PLOT_POS = plot_pos |
|
164 | 164 | |
|
165 | 165 | self.isConfig = True |
|
166 | 166 | |
|
167 | 167 | self.setWinTitle(title) |
|
168 | 168 | |
|
169 | 169 | for i in range(self.nplots): |
|
170 | 170 | str_datetime = '%s %s'%(thisDatetime.strftime("%Y/%m/%d"),thisDatetime.strftime("%H:%M:%S")) |
|
171 | 171 | title = "Channel %d: %4.2fdB: %s" %(dataOut.channelList[i]+1, noisedB[i], str_datetime) |
|
172 | 172 | if len(dataOut.beam.codeList) != 0: |
|
173 | 173 | title = "Ch%d:%4.2fdB,%2.2f,%2.2f:%s" %(dataOut.channelList[i]+1, noisedB[i], dataOut.beam.azimuthList[i], dataOut.beam.zenithList[i], str_datetime) |
|
174 | 174 | |
|
175 | 175 | axes = self.axesList[i*self.__nsubplots] |
|
176 | 176 | axes.pcolor(x, y, zdB[i,:,:], |
|
177 | 177 | xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, |
|
178 | 178 | xlabel=xlabel, ylabel=ylabel, title=title, |
|
179 | 179 | ticksize=9, cblabel='') |
|
180 | 180 | |
|
181 | 181 | if self.__showprofile: |
|
182 | 182 | axes = self.axesList[i*self.__nsubplots +1] |
|
183 | 183 | axes.pline(avgdB[i,:], y, |
|
184 | 184 | xmin=zmin, xmax=zmax, ymin=ymin, ymax=ymax, |
|
185 | 185 | xlabel='dB', ylabel='', title='', |
|
186 | 186 | ytick_visible=False, |
|
187 | 187 | grid='x') |
|
188 | 188 | |
|
189 | 189 | noiseline = numpy.repeat(noisedB[i], len(y)) |
|
190 | 190 | axes.addpline(noiseline, y, idline=1, color="black", linestyle="dashed", lw=2) |
|
191 | 191 | |
|
192 | 192 | self.draw() |
|
193 | 193 | |
|
194 | 194 | if figfile == None: |
|
195 | 195 | str_datetime = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
196 | 196 | name = str_datetime |
|
197 | 197 | if ((dataOut.azimuth!=None) and (dataOut.zenith!=None)): |
|
198 | 198 | name = name + '_az' + '_%2.2f'%(dataOut.azimuth) + '_zn' + '_%2.2f'%(dataOut.zenith) |
|
199 | 199 | figfile = self.getFilename(name) |
|
200 | 200 | |
|
201 | 201 | self.save(figpath=figpath, |
|
202 | 202 | figfile=figfile, |
|
203 | 203 | save=save, |
|
204 | 204 | ftp=ftp, |
|
205 | 205 | wr_period=wr_period, |
|
206 | 206 | thisDatetime=thisDatetime) |
|
207 | 207 | |
|
208 | 208 | class CrossSpectraPlot(Figure): |
|
209 | 209 | |
|
210 | 210 | isConfig = None |
|
211 | 211 | __nsubplots = None |
|
212 | 212 | |
|
213 | 213 | WIDTH = None |
|
214 | 214 | HEIGHT = None |
|
215 | 215 | WIDTHPROF = None |
|
216 | 216 | HEIGHTPROF = None |
|
217 | 217 | PREFIX = 'cspc' |
|
218 | 218 | |
|
219 | 219 | def __init__(self): |
|
220 | 220 | |
|
221 | 221 | self.isConfig = False |
|
222 | 222 | self.__nsubplots = 4 |
|
223 | 223 | self.counter_imagwr = 0 |
|
224 | 224 | self.WIDTH = 250 |
|
225 | 225 | self.HEIGHT = 250 |
|
226 | 226 | self.WIDTHPROF = 0 |
|
227 | 227 | self.HEIGHTPROF = 0 |
|
228 | 228 | |
|
229 | 229 | self.PLOT_CODE = CROSS_CODE |
|
230 | 230 | self.FTP_WEI = None |
|
231 | 231 | self.EXP_CODE = None |
|
232 | 232 | self.SUB_EXP_CODE = None |
|
233 | 233 | self.PLOT_POS = None |
|
234 | 234 | |
|
235 | 235 | def getSubplots(self): |
|
236 | 236 | |
|
237 | 237 | ncol = 4 |
|
238 | 238 | nrow = self.nplots |
|
239 | 239 | |
|
240 | 240 | return nrow, ncol |
|
241 | 241 | |
|
242 | 242 | def setup(self, id, nplots, wintitle, showprofile=True, show=True): |
|
243 | 243 | |
|
244 | 244 | self.__showprofile = showprofile |
|
245 | 245 | self.nplots = nplots |
|
246 | 246 | |
|
247 | 247 | ncolspan = 1 |
|
248 | 248 | colspan = 1 |
|
249 | 249 | |
|
250 | 250 | self.createFigure(id = id, |
|
251 | 251 | wintitle = wintitle, |
|
252 | 252 | widthplot = self.WIDTH + self.WIDTHPROF, |
|
253 | 253 | heightplot = self.HEIGHT + self.HEIGHTPROF, |
|
254 | 254 | show=True) |
|
255 | 255 | |
|
256 | 256 | nrow, ncol = self.getSubplots() |
|
257 | 257 | |
|
258 | 258 | counter = 0 |
|
259 | 259 | for y in range(nrow): |
|
260 | 260 | for x in range(ncol): |
|
261 | 261 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan, colspan, 1) |
|
262 | 262 | |
|
263 | 263 | counter += 1 |
|
264 | 264 | |
|
265 | 265 | def run(self, dataOut, id, wintitle="", pairsList=None, |
|
266 | 266 | xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None, |
|
267 | 267 | save=False, figpath='./', figfile=None, ftp=False, wr_period=1, |
|
268 | 268 | power_cmap='jet', coherence_cmap='jet', phase_cmap='RdBu_r', show=True, |
|
269 | 269 | server=None, folder=None, username=None, password=None, |
|
270 | 270 | ftp_wei=0, exp_code=0, sub_exp_code=0, plot_pos=0): |
|
271 | 271 | |
|
272 | 272 | """ |
|
273 | 273 | |
|
274 | 274 | Input: |
|
275 | 275 | dataOut : |
|
276 | 276 | id : |
|
277 | 277 | wintitle : |
|
278 | 278 | channelList : |
|
279 | 279 | showProfile : |
|
280 | 280 | xmin : None, |
|
281 | 281 | xmax : None, |
|
282 | 282 | ymin : None, |
|
283 | 283 | ymax : None, |
|
284 | 284 | zmin : None, |
|
285 | 285 | zmax : None |
|
286 | 286 | """ |
|
287 | 287 | |
|
288 | 288 | if pairsList == None: |
|
289 | 289 | pairsIndexList = dataOut.pairsIndexList |
|
290 | 290 | else: |
|
291 | 291 | pairsIndexList = [] |
|
292 | 292 | for pair in pairsList: |
|
293 | 293 | if pair not in dataOut.pairsList: |
|
294 | 294 | raise ValueError, "Pair %s is not in dataOut.pairsList" %str(pair) |
|
295 | 295 | pairsIndexList.append(dataOut.pairsList.index(pair)) |
|
296 | 296 | |
|
297 | 297 | if pairsIndexList == []: |
|
298 | 298 | return |
|
299 | 299 | |
|
300 | 300 | if len(pairsIndexList) > 4: |
|
301 | 301 | pairsIndexList = pairsIndexList[0:4] |
|
302 | 302 | factor = dataOut.normFactor |
|
303 | 303 | x = dataOut.getVelRange(1) |
|
304 | 304 | y = dataOut.getHeiRange() |
|
305 | 305 | z = dataOut.data_spc[:,:,:]/factor |
|
306 | 306 | z = numpy.where(numpy.isfinite(z), z, numpy.NAN) |
|
307 | 307 | |
|
308 | 308 | noise = dataOut.noise/factor |
|
309 | 309 | |
|
310 | 310 | zdB = 10*numpy.log10(z) |
|
311 | 311 | noisedB = 10*numpy.log10(noise) |
|
312 | 312 | |
|
313 | 313 | |
|
314 | 314 | #thisDatetime = dataOut.datatime |
|
315 | 315 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
316 | 316 | title = wintitle + " Cross-Spectra: %s" %(thisDatetime.strftime("%d-%b-%Y %H:%M:%S")) |
|
317 | 317 | xlabel = "Velocity (m/s)" |
|
318 | 318 | ylabel = "Range (Km)" |
|
319 | 319 | |
|
320 | 320 | if not self.isConfig: |
|
321 | 321 | |
|
322 | 322 | nplots = len(pairsIndexList) |
|
323 | 323 | |
|
324 | 324 | self.setup(id=id, |
|
325 | 325 | nplots=nplots, |
|
326 | 326 | wintitle=wintitle, |
|
327 | 327 | showprofile=False, |
|
328 | 328 | show=show) |
|
329 | 329 | |
|
330 | 330 | avg = numpy.abs(numpy.average(z, axis=1)) |
|
331 | 331 | avgdB = 10*numpy.log10(avg) |
|
332 | 332 | |
|
333 | 333 | if xmin == None: xmin = numpy.nanmin(x) |
|
334 | 334 | if xmax == None: xmax = numpy.nanmax(x) |
|
335 | 335 | if ymin == None: ymin = numpy.nanmin(y) |
|
336 | 336 | if ymax == None: ymax = numpy.nanmax(y) |
|
337 | 337 | if zmin == None: zmin = numpy.floor(numpy.nanmin(noisedB)) - 3 |
|
338 | 338 | if zmax == None: zmax = numpy.ceil(numpy.nanmax(avgdB)) + 3 |
|
339 | 339 | |
|
340 | 340 | self.FTP_WEI = ftp_wei |
|
341 | 341 | self.EXP_CODE = exp_code |
|
342 | 342 | self.SUB_EXP_CODE = sub_exp_code |
|
343 | 343 | self.PLOT_POS = plot_pos |
|
344 | 344 | |
|
345 | 345 | self.isConfig = True |
|
346 | 346 | |
|
347 | 347 | self.setWinTitle(title) |
|
348 | 348 | |
|
349 | 349 | for i in range(self.nplots): |
|
350 | 350 | pair = dataOut.pairsList[pairsIndexList[i]] |
|
351 | 351 | str_datetime = '%s %s'%(thisDatetime.strftime("%Y/%m/%d"),thisDatetime.strftime("%H:%M:%S")) |
|
352 | 352 | title = "Ch%d: %4.2fdB: %s" %(pair[0], noisedB[pair[0]], str_datetime) |
|
353 | 353 | zdB = 10.*numpy.log10(dataOut.data_spc[pair[0],:,:]/factor) |
|
354 | 354 | axes0 = self.axesList[i*self.__nsubplots] |
|
355 | 355 | axes0.pcolor(x, y, zdB, |
|
356 | 356 | xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, |
|
357 | 357 | xlabel=xlabel, ylabel=ylabel, title=title, |
|
358 | 358 | ticksize=9, colormap=power_cmap, cblabel='') |
|
359 | 359 | |
|
360 | 360 | title = "Ch%d: %4.2fdB: %s" %(pair[1], noisedB[pair[1]], str_datetime) |
|
361 | 361 | zdB = 10.*numpy.log10(dataOut.data_spc[pair[1],:,:]/factor) |
|
362 | 362 | axes0 = self.axesList[i*self.__nsubplots+1] |
|
363 | 363 | axes0.pcolor(x, y, zdB, |
|
364 | 364 | xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, |
|
365 | 365 | xlabel=xlabel, ylabel=ylabel, title=title, |
|
366 | 366 | ticksize=9, colormap=power_cmap, cblabel='') |
|
367 | 367 | |
|
368 | 368 | coherenceComplex = dataOut.data_cspc[pairsIndexList[i],:,:]/numpy.sqrt(dataOut.data_spc[pair[0],:,:]*dataOut.data_spc[pair[1],:,:]) |
|
369 | 369 | coherence = numpy.abs(coherenceComplex) |
|
370 | 370 | # phase = numpy.arctan(-1*coherenceComplex.imag/coherenceComplex.real)*180/numpy.pi |
|
371 | 371 | phase = numpy.arctan2(coherenceComplex.imag, coherenceComplex.real)*180/numpy.pi |
|
372 | 372 | |
|
373 | 373 | title = "Coherence %d%d" %(pair[0], pair[1]) |
|
374 | 374 | axes0 = self.axesList[i*self.__nsubplots+2] |
|
375 | 375 | axes0.pcolor(x, y, coherence, |
|
376 | 376 | xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, zmin=0, zmax=1, |
|
377 | 377 | xlabel=xlabel, ylabel=ylabel, title=title, |
|
378 | 378 | ticksize=9, colormap=coherence_cmap, cblabel='') |
|
379 | 379 | |
|
380 | 380 | title = "Phase %d%d" %(pair[0], pair[1]) |
|
381 | 381 | axes0 = self.axesList[i*self.__nsubplots+3] |
|
382 | 382 | axes0.pcolor(x, y, phase, |
|
383 | 383 | xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, zmin=-180, zmax=180, |
|
384 | 384 | xlabel=xlabel, ylabel=ylabel, title=title, |
|
385 | 385 | ticksize=9, colormap=phase_cmap, cblabel='') |
|
386 | 386 | |
|
387 | 387 | |
|
388 | 388 | |
|
389 | 389 | self.draw() |
|
390 | 390 | |
|
391 | 391 | self.save(figpath=figpath, |
|
392 | 392 | figfile=figfile, |
|
393 | 393 | save=save, |
|
394 | 394 | ftp=ftp, |
|
395 | 395 | wr_period=wr_period, |
|
396 | 396 | thisDatetime=thisDatetime) |
|
397 | 397 | |
|
398 | 398 | |
|
399 | 399 | class RTIPlot(Figure): |
|
400 | 400 | |
|
401 | 401 | __isConfig = None |
|
402 | 402 | __nsubplots = None |
|
403 | 403 | |
|
404 | 404 | WIDTHPROF = None |
|
405 | 405 | HEIGHTPROF = None |
|
406 | 406 | PREFIX = 'rti' |
|
407 | 407 | |
|
408 | 408 | def __init__(self): |
|
409 | 409 | |
|
410 | 410 | self.timerange = None |
|
411 | 411 | self.__isConfig = False |
|
412 | 412 | self.__nsubplots = 1 |
|
413 | 413 | |
|
414 | 414 | self.WIDTH = 800 |
|
415 | 415 | self.HEIGHT = 150 |
|
416 | 416 | self.WIDTHPROF = 120 |
|
417 | 417 | self.HEIGHTPROF = 0 |
|
418 | 418 | self.counter_imagwr = 0 |
|
419 | 419 | |
|
420 | 420 | self.PLOT_CODE = RTI_CODE |
|
421 | 421 | |
|
422 | 422 | self.FTP_WEI = None |
|
423 | 423 | self.EXP_CODE = None |
|
424 | 424 | self.SUB_EXP_CODE = None |
|
425 | 425 | self.PLOT_POS = None |
|
426 | 426 | self.tmin = None |
|
427 | 427 | self.tmax = None |
|
428 | 428 | |
|
429 | 429 | self.xmin = None |
|
430 | 430 | self.xmax = None |
|
431 | 431 | |
|
432 | 432 | self.figfile = None |
|
433 | 433 | |
|
434 | 434 | def getSubplots(self): |
|
435 | 435 | |
|
436 | 436 | ncol = 1 |
|
437 | 437 | nrow = self.nplots |
|
438 | 438 | |
|
439 | 439 | return nrow, ncol |
|
440 | 440 | |
|
441 | 441 | def setup(self, id, nplots, wintitle, showprofile=True, show=True): |
|
442 | 442 | |
|
443 | 443 | self.__showprofile = showprofile |
|
444 | 444 | self.nplots = nplots |
|
445 | 445 | |
|
446 | 446 | ncolspan = 1 |
|
447 | 447 | colspan = 1 |
|
448 | 448 | if showprofile: |
|
449 | 449 | ncolspan = 7 |
|
450 | 450 | colspan = 6 |
|
451 | 451 | self.__nsubplots = 2 |
|
452 | 452 | |
|
453 | 453 | self.createFigure(id = id, |
|
454 | 454 | wintitle = wintitle, |
|
455 | 455 | widthplot = self.WIDTH + self.WIDTHPROF, |
|
456 | 456 | heightplot = self.HEIGHT + self.HEIGHTPROF, |
|
457 | 457 | show=show) |
|
458 | 458 | |
|
459 | 459 | nrow, ncol = self.getSubplots() |
|
460 | 460 | |
|
461 | 461 | counter = 0 |
|
462 | 462 | for y in range(nrow): |
|
463 | 463 | for x in range(ncol): |
|
464 | 464 | |
|
465 | 465 | if counter >= self.nplots: |
|
466 | 466 | break |
|
467 | 467 | |
|
468 | 468 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan, colspan, 1) |
|
469 | 469 | |
|
470 | 470 | if showprofile: |
|
471 | 471 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan+colspan, 1, 1) |
|
472 | 472 | |
|
473 | 473 | counter += 1 |
|
474 | 474 | |
|
475 | 475 | def run(self, dataOut, id, wintitle="", channelList=None, showprofile='True', |
|
476 | 476 | xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None, |
|
477 | 477 | timerange=None, |
|
478 | 478 | save=False, figpath='./', lastone=0,figfile=None, ftp=False, wr_period=1, show=True, |
|
479 | 479 | server=None, folder=None, username=None, password=None, |
|
480 | 480 | ftp_wei=0, exp_code=0, sub_exp_code=0, plot_pos=0): |
|
481 | 481 | |
|
482 | 482 | """ |
|
483 | 483 | |
|
484 | 484 | Input: |
|
485 | 485 | dataOut : |
|
486 | 486 | id : |
|
487 | 487 | wintitle : |
|
488 | 488 | channelList : |
|
489 | 489 | showProfile : |
|
490 | 490 | xmin : None, |
|
491 | 491 | xmax : None, |
|
492 | 492 | ymin : None, |
|
493 | 493 | ymax : None, |
|
494 | 494 | zmin : None, |
|
495 | 495 | zmax : None |
|
496 | 496 | """ |
|
497 | 497 | |
|
498 | 498 | if channelList == None: |
|
499 | 499 | channelIndexList = dataOut.channelIndexList |
|
500 | 500 | else: |
|
501 | 501 | channelIndexList = [] |
|
502 | 502 | for channel in channelList: |
|
503 | 503 | if channel not in dataOut.channelList: |
|
504 | 504 | raise ValueError, "Channel %d is not in dataOut.channelList" |
|
505 | 505 | channelIndexList.append(dataOut.channelList.index(channel)) |
|
506 | 506 | |
|
507 | 507 | # if timerange != None: |
|
508 | 508 | # self.timerange = timerange |
|
509 | 509 | |
|
510 | 510 | #tmin = None |
|
511 | 511 | #tmax = None |
|
512 | 512 | factor = dataOut.normFactor |
|
513 | 513 | x = dataOut.getTimeRange() |
|
514 | 514 | y = dataOut.getHeiRange() |
|
515 | 515 | |
|
516 | 516 | z = dataOut.data_spc[channelIndexList,:,:]/factor |
|
517 | 517 | z = numpy.where(numpy.isfinite(z), z, numpy.NAN) |
|
518 | 518 | avg = numpy.average(z, axis=1) |
|
519 | 519 | |
|
520 | 520 | avgdB = 10.*numpy.log10(avg) |
|
521 | 521 | |
|
522 | 522 | |
|
523 | 523 | # thisDatetime = dataOut.datatime |
|
524 | 524 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
525 | 525 | title = wintitle + " RTI" #: %s" %(thisDatetime.strftime("%d-%b-%Y")) |
|
526 | 526 | xlabel = "" |
|
527 | 527 | ylabel = "Range (Km)" |
|
528 | 528 | |
|
529 | 529 | if not self.__isConfig: |
|
530 | 530 | |
|
531 | 531 | nplots = len(channelIndexList) |
|
532 | 532 | |
|
533 | 533 | self.setup(id=id, |
|
534 | 534 | nplots=nplots, |
|
535 | 535 | wintitle=wintitle, |
|
536 | 536 | showprofile=showprofile, |
|
537 | 537 | show=show) |
|
538 | 538 | |
|
539 | 539 | if timerange != None: |
|
540 | 540 | self.timerange = timerange |
|
541 | 541 | |
|
542 | 542 | self.xmin, self.xmax = self.getTimeLim(x, xmin, xmax, timerange) |
|
543 | 543 | |
|
544 | 544 | noise = dataOut.noise/factor |
|
545 | 545 | noisedB = 10*numpy.log10(noise) |
|
546 | 546 | |
|
547 | 547 | if ymin == None: ymin = numpy.nanmin(y) |
|
548 | 548 | if ymax == None: ymax = numpy.nanmax(y) |
|
549 | 549 | if zmin == None: zmin = numpy.floor(numpy.nanmin(noisedB)) - 3 |
|
550 | 550 | if zmax == None: zmax = numpy.ceil(numpy.nanmax(avgdB)) + 3 |
|
551 | 551 | |
|
552 | 552 | self.FTP_WEI = ftp_wei |
|
553 | 553 | self.EXP_CODE = exp_code |
|
554 | 554 | self.SUB_EXP_CODE = sub_exp_code |
|
555 | 555 | self.PLOT_POS = plot_pos |
|
556 | 556 | |
|
557 | 557 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
558 | 558 | self.__isConfig = True |
|
559 | 559 | self.figfile = figfile |
|
560 | 560 | |
|
561 | 561 | self.setWinTitle(title) |
|
562 | 562 | |
|
563 | 563 | if ((self.xmax - x[1]) < (x[1]-x[0])): |
|
564 | 564 | x[1] = self.xmax |
|
565 | 565 | |
|
566 | 566 | for i in range(self.nplots): |
|
567 | 567 | title = "Channel %d: %s" %(dataOut.channelList[i]+1, thisDatetime.strftime("%Y/%m/%d %H:%M:%S")) |
|
568 | 568 | if ((dataOut.azimuth!=None) and (dataOut.zenith!=None)): |
|
569 | 569 | title = title + '_' + 'azimuth,zenith=%2.2f,%2.2f'%(dataOut.azimuth, dataOut.zenith) |
|
570 | 570 | axes = self.axesList[i*self.__nsubplots] |
|
571 | 571 | zdB = avgdB[i].reshape((1,-1)) |
|
572 | 572 | axes.pcolorbuffer(x, y, zdB, |
|
573 | 573 | xmin=self.xmin, xmax=self.xmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, |
|
574 | 574 | xlabel=xlabel, ylabel=ylabel, title=title, rti=True, XAxisAsTime=True, |
|
575 | 575 | ticksize=9, cblabel='', cbsize="1%") |
|
576 | 576 | |
|
577 | 577 | if self.__showprofile: |
|
578 | 578 | axes = self.axesList[i*self.__nsubplots +1] |
|
579 | 579 | axes.pline(avgdB[i], y, |
|
580 | 580 | xmin=zmin, xmax=zmax, ymin=ymin, ymax=ymax, |
|
581 | 581 | xlabel='dB', ylabel='', title='', |
|
582 | 582 | ytick_visible=False, |
|
583 | 583 | grid='x') |
|
584 | 584 | |
|
585 | 585 | self.draw() |
|
586 | 586 | |
|
587 | 587 | if x[1] >= self.axesList[0].xmax: |
|
588 | 588 | self.counter_imagwr = wr_period |
|
589 | 589 | self.__isConfig = False |
|
590 | 590 | self.figfile = None |
|
591 | 591 | |
|
592 | 592 | self.save(figpath=figpath, |
|
593 | 593 | figfile=figfile, |
|
594 | 594 | save=save, |
|
595 | 595 | ftp=ftp, |
|
596 | 596 | wr_period=wr_period, |
|
597 | 597 | thisDatetime=thisDatetime, |
|
598 | 598 | update_figfile=False) |
|
599 | 599 | |
|
600 | 600 | class CoherenceMap(Figure): |
|
601 | 601 | isConfig = None |
|
602 | 602 | __nsubplots = None |
|
603 | 603 | |
|
604 | 604 | WIDTHPROF = None |
|
605 | 605 | HEIGHTPROF = None |
|
606 | 606 | PREFIX = 'cmap' |
|
607 | 607 | |
|
608 | 608 | def __init__(self): |
|
609 | 609 | self.timerange = 2*60*60 |
|
610 | 610 | self.isConfig = False |
|
611 | 611 | self.__nsubplots = 1 |
|
612 | 612 | |
|
613 | 613 | self.WIDTH = 800 |
|
614 | 614 | self.HEIGHT = 150 |
|
615 | 615 | self.WIDTHPROF = 120 |
|
616 | 616 | self.HEIGHTPROF = 0 |
|
617 | 617 | self.counter_imagwr = 0 |
|
618 | 618 | |
|
619 | 619 | self.PLOT_CODE = COH_CODE |
|
620 | 620 | |
|
621 | 621 | self.FTP_WEI = None |
|
622 | 622 | self.EXP_CODE = None |
|
623 | 623 | self.SUB_EXP_CODE = None |
|
624 | 624 | self.PLOT_POS = None |
|
625 | 625 | self.counter_imagwr = 0 |
|
626 | 626 | |
|
627 | 627 | self.xmin = None |
|
628 | 628 | self.xmax = None |
|
629 | 629 | |
|
630 | 630 | def getSubplots(self): |
|
631 | 631 | ncol = 1 |
|
632 | 632 | nrow = self.nplots*2 |
|
633 | 633 | |
|
634 | 634 | return nrow, ncol |
|
635 | 635 | |
|
636 | 636 | def setup(self, id, nplots, wintitle, showprofile=True, show=True): |
|
637 | 637 | self.__showprofile = showprofile |
|
638 | 638 | self.nplots = nplots |
|
639 | 639 | |
|
640 | 640 | ncolspan = 1 |
|
641 | 641 | colspan = 1 |
|
642 | 642 | if showprofile: |
|
643 | 643 | ncolspan = 7 |
|
644 | 644 | colspan = 6 |
|
645 | 645 | self.__nsubplots = 2 |
|
646 | 646 | |
|
647 | 647 | self.createFigure(id = id, |
|
648 | 648 | wintitle = wintitle, |
|
649 | 649 | widthplot = self.WIDTH + self.WIDTHPROF, |
|
650 | 650 | heightplot = self.HEIGHT + self.HEIGHTPROF, |
|
651 | 651 | show=True) |
|
652 | 652 | |
|
653 | 653 | nrow, ncol = self.getSubplots() |
|
654 | 654 | |
|
655 | 655 | for y in range(nrow): |
|
656 | 656 | for x in range(ncol): |
|
657 | 657 | |
|
658 | 658 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan, colspan, 1) |
|
659 | 659 | |
|
660 | 660 | if showprofile: |
|
661 | 661 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan+colspan, 1, 1) |
|
662 | 662 | |
|
663 | 663 | def run(self, dataOut, id, wintitle="", pairsList=None, showprofile='True', |
|
664 | 664 | xmin=None, xmax=None, ymin=None, ymax=None, zmin=None, zmax=None, |
|
665 | 665 | timerange=None, |
|
666 | 666 | save=False, figpath='./', figfile=None, ftp=False, wr_period=1, |
|
667 | 667 | coherence_cmap='jet', phase_cmap='RdBu_r', show=True, |
|
668 | 668 | server=None, folder=None, username=None, password=None, |
|
669 | 669 | ftp_wei=0, exp_code=0, sub_exp_code=0, plot_pos=0): |
|
670 | 670 | |
|
671 | 671 | if pairsList == None: |
|
672 | 672 | pairsIndexList = dataOut.pairsIndexList |
|
673 | 673 | else: |
|
674 | 674 | pairsIndexList = [] |
|
675 | 675 | for pair in pairsList: |
|
676 | 676 | if pair not in dataOut.pairsList: |
|
677 | 677 | raise ValueError, "Pair %s is not in dataOut.pairsList" %(pair) |
|
678 | 678 | pairsIndexList.append(dataOut.pairsList.index(pair)) |
|
679 | 679 | |
|
680 | 680 | if pairsIndexList == []: |
|
681 | 681 | return |
|
682 | 682 | |
|
683 | 683 | if len(pairsIndexList) > 4: |
|
684 | 684 | pairsIndexList = pairsIndexList[0:4] |
|
685 | 685 | |
|
686 | 686 | # tmin = None |
|
687 | 687 | # tmax = None |
|
688 | 688 | x = dataOut.getTimeRange() |
|
689 | 689 | y = dataOut.getHeiRange() |
|
690 | 690 | |
|
691 | 691 | #thisDatetime = dataOut.datatime |
|
692 | 692 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
693 | 693 | title = wintitle + " CoherenceMap" #: %s" %(thisDatetime.strftime("%d-%b-%Y")) |
|
694 | 694 | xlabel = "" |
|
695 | 695 | ylabel = "Range (Km)" |
|
696 | 696 | |
|
697 | 697 | if not self.isConfig: |
|
698 | 698 | nplots = len(pairsIndexList) |
|
699 | 699 | self.setup(id=id, |
|
700 | 700 | nplots=nplots, |
|
701 | 701 | wintitle=wintitle, |
|
702 | 702 | showprofile=showprofile, |
|
703 | 703 | show=show) |
|
704 | 704 | |
|
705 | 705 | if timerange != None: |
|
706 | 706 | self.timerange = timerange |
|
707 | 707 | |
|
708 | 708 | self.xmin, self.xmax = self.getTimeLim(x, xmin, xmax, timerange) |
|
709 | 709 | |
|
710 | 710 | if ymin == None: ymin = numpy.nanmin(y) |
|
711 | 711 | if ymax == None: ymax = numpy.nanmax(y) |
|
712 | 712 | if zmin == None: zmin = 0. |
|
713 | 713 | if zmax == None: zmax = 1. |
|
714 | 714 | |
|
715 | 715 | self.FTP_WEI = ftp_wei |
|
716 | 716 | self.EXP_CODE = exp_code |
|
717 | 717 | self.SUB_EXP_CODE = sub_exp_code |
|
718 | 718 | self.PLOT_POS = plot_pos |
|
719 | 719 | |
|
720 | 720 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
721 | 721 | |
|
722 | 722 | self.isConfig = True |
|
723 | 723 | |
|
724 | 724 | self.setWinTitle(title) |
|
725 | 725 | |
|
726 | 726 | if ((self.xmax - x[1]) < (x[1]-x[0])): |
|
727 | 727 | x[1] = self.xmax |
|
728 | 728 | |
|
729 | 729 | for i in range(self.nplots): |
|
730 | 730 | |
|
731 | 731 | pair = dataOut.pairsList[pairsIndexList[i]] |
|
732 | 732 | |
|
733 | 733 | ccf = numpy.average(dataOut.data_cspc[pairsIndexList[i],:,:],axis=0) |
|
734 | 734 | powa = numpy.average(dataOut.data_spc[pair[0],:,:],axis=0) |
|
735 | 735 | powb = numpy.average(dataOut.data_spc[pair[1],:,:],axis=0) |
|
736 | 736 | |
|
737 | 737 | |
|
738 | 738 | avgcoherenceComplex = ccf/numpy.sqrt(powa*powb) |
|
739 | 739 | coherence = numpy.abs(avgcoherenceComplex) |
|
740 | 740 | |
|
741 | 741 | z = coherence.reshape((1,-1)) |
|
742 | 742 | |
|
743 | 743 | counter = 0 |
|
744 | 744 | |
|
745 | 745 | title = "Coherence %d%d: %s" %(pair[0], pair[1], thisDatetime.strftime("%d-%b-%Y %H:%M:%S")) |
|
746 | 746 | axes = self.axesList[i*self.__nsubplots*2] |
|
747 | 747 | axes.pcolorbuffer(x, y, z, |
|
748 | 748 | xmin=self.xmin, xmax=self.xmax, ymin=ymin, ymax=ymax, zmin=zmin, zmax=zmax, |
|
749 | 749 | xlabel=xlabel, ylabel=ylabel, title=title, rti=True, XAxisAsTime=True, |
|
750 | 750 | ticksize=9, cblabel='', colormap=coherence_cmap, cbsize="1%") |
|
751 | 751 | |
|
752 | 752 | if self.__showprofile: |
|
753 | 753 | counter += 1 |
|
754 | 754 | axes = self.axesList[i*self.__nsubplots*2 + counter] |
|
755 | 755 | axes.pline(coherence, y, |
|
756 | 756 | xmin=zmin, xmax=zmax, ymin=ymin, ymax=ymax, |
|
757 | 757 | xlabel='', ylabel='', title='', ticksize=7, |
|
758 | 758 | ytick_visible=False, nxticks=5, |
|
759 | 759 | grid='x') |
|
760 | 760 | |
|
761 | 761 | counter += 1 |
|
762 | 762 | |
|
763 | 763 | phase = numpy.arctan2(avgcoherenceComplex.imag, avgcoherenceComplex.real)*180/numpy.pi |
|
764 | 764 | |
|
765 | 765 | z = phase.reshape((1,-1)) |
|
766 | 766 | |
|
767 | 767 | title = "Phase %d%d: %s" %(pair[0], pair[1], thisDatetime.strftime("%d-%b-%Y %H:%M:%S")) |
|
768 | 768 | axes = self.axesList[i*self.__nsubplots*2 + counter] |
|
769 | 769 | axes.pcolorbuffer(x, y, z, |
|
770 | 770 | xmin=self.xmin, xmax=self.xmax, ymin=ymin, ymax=ymax, zmin=-180, zmax=180, |
|
771 | 771 | xlabel=xlabel, ylabel=ylabel, title=title, rti=True, XAxisAsTime=True, |
|
772 | 772 | ticksize=9, cblabel='', colormap=phase_cmap, cbsize="1%") |
|
773 | 773 | |
|
774 | 774 | if self.__showprofile: |
|
775 | 775 | counter += 1 |
|
776 | 776 | axes = self.axesList[i*self.__nsubplots*2 + counter] |
|
777 | 777 | axes.pline(phase, y, |
|
778 | 778 | xmin=-180, xmax=180, ymin=ymin, ymax=ymax, |
|
779 | 779 | xlabel='', ylabel='', title='', ticksize=7, |
|
780 | 780 | ytick_visible=False, nxticks=4, |
|
781 | 781 | grid='x') |
|
782 | 782 | |
|
783 | 783 | self.draw() |
|
784 | 784 | |
|
785 | 785 | if x[1] >= self.axesList[0].xmax: |
|
786 | 786 | self.counter_imagwr = wr_period |
|
787 | 787 | self.__isConfig = False |
|
788 | 788 | self.figfile = None |
|
789 | 789 | |
|
790 | 790 | self.save(figpath=figpath, |
|
791 | 791 | figfile=figfile, |
|
792 | 792 | save=save, |
|
793 | 793 | ftp=ftp, |
|
794 | 794 | wr_period=wr_period, |
|
795 | 795 | thisDatetime=thisDatetime, |
|
796 | 796 | update_figfile=False) |
|
797 | 797 | |
|
798 | 798 | class PowerProfilePlot(Figure): |
|
799 | 799 | |
|
800 | 800 | isConfig = None |
|
801 | 801 | __nsubplots = None |
|
802 | 802 | |
|
803 | 803 | WIDTHPROF = None |
|
804 | 804 | HEIGHTPROF = None |
|
805 | 805 | PREFIX = 'spcprofile' |
|
806 | 806 | |
|
807 | 807 | def __init__(self): |
|
808 | 808 | self.isConfig = False |
|
809 | 809 | self.__nsubplots = 1 |
|
810 | 810 | |
|
811 | 811 | self.PLOT_CODE = POWER_CODE |
|
812 | 812 | |
|
813 | 813 | self.WIDTH = 300 |
|
814 | 814 | self.HEIGHT = 500 |
|
815 | 815 | self.counter_imagwr = 0 |
|
816 | 816 | |
|
817 | 817 | def getSubplots(self): |
|
818 | 818 | ncol = 1 |
|
819 | 819 | nrow = 1 |
|
820 | 820 | |
|
821 | 821 | return nrow, ncol |
|
822 | 822 | |
|
823 | 823 | def setup(self, id, nplots, wintitle, show): |
|
824 | 824 | |
|
825 | 825 | self.nplots = nplots |
|
826 | 826 | |
|
827 | 827 | ncolspan = 1 |
|
828 | 828 | colspan = 1 |
|
829 | 829 | |
|
830 | 830 | self.createFigure(id = id, |
|
831 | 831 | wintitle = wintitle, |
|
832 | 832 | widthplot = self.WIDTH, |
|
833 | 833 | heightplot = self.HEIGHT, |
|
834 | 834 | show=show) |
|
835 | 835 | |
|
836 | 836 | nrow, ncol = self.getSubplots() |
|
837 | 837 | |
|
838 | 838 | counter = 0 |
|
839 | 839 | for y in range(nrow): |
|
840 | 840 | for x in range(ncol): |
|
841 | 841 | self.addAxes(nrow, ncol*ncolspan, y, x*ncolspan, colspan, 1) |
|
842 | 842 | |
|
843 | 843 | def run(self, dataOut, id, wintitle="", channelList=None, |
|
844 | 844 | xmin=None, xmax=None, ymin=None, ymax=None, |
|
845 | 845 | save=False, figpath='./', figfile=None, show=True, |
|
846 | 846 | ftp=False, wr_period=1, server=None, |
|
847 | 847 | folder=None, username=None, password=None): |
|
848 | 848 | |
|
849 | 849 | |
|
850 | 850 | if channelList == None: |
|
851 | 851 | channelIndexList = dataOut.channelIndexList |
|
852 | 852 | channelList = dataOut.channelList |
|
853 | 853 | else: |
|
854 | 854 | channelIndexList = [] |
|
855 | 855 | for channel in channelList: |
|
856 | 856 | if channel not in dataOut.channelList: |
|
857 | 857 | raise ValueError, "Channel %d is not in dataOut.channelList" |
|
858 | 858 | channelIndexList.append(dataOut.channelList.index(channel)) |
|
859 | 859 | |
|
860 | 860 | factor = dataOut.normFactor |
|
861 | 861 | |
|
862 | 862 | y = dataOut.getHeiRange() |
|
863 | 863 | |
|
864 | 864 | #for voltage |
|
865 | 865 | if dataOut.type == 'Voltage': |
|
866 | 866 | x = dataOut.data[channelIndexList,:] * numpy.conjugate(dataOut.data[channelIndexList,:]) |
|
867 | 867 | x = x.real |
|
868 | 868 | x = numpy.where(numpy.isfinite(x), x, numpy.NAN) |
|
869 | 869 | |
|
870 | 870 | #for spectra |
|
871 | 871 | if dataOut.type == 'Spectra': |
|
872 | 872 | x = dataOut.data_spc[channelIndexList,:,:]/factor |
|
873 | 873 | x = numpy.where(numpy.isfinite(x), x, numpy.NAN) |
|
874 | 874 | x = numpy.average(x, axis=1) |
|
875 | 875 | |
|
876 | 876 | |
|
877 | 877 | xdB = 10*numpy.log10(x) |
|
878 | 878 | |
|
879 | 879 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
880 | 880 | title = wintitle + " Power Profile %s" %(thisDatetime.strftime("%d-%b-%Y")) |
|
881 | 881 | xlabel = "dB" |
|
882 | 882 | ylabel = "Range (Km)" |
|
883 | 883 | |
|
884 | 884 | if not self.isConfig: |
|
885 | 885 | |
|
886 | 886 | nplots = 1 |
|
887 | 887 | |
|
888 | 888 | self.setup(id=id, |
|
889 | 889 | nplots=nplots, |
|
890 | 890 | wintitle=wintitle, |
|
891 | 891 | show=show) |
|
892 | 892 | |
|
893 | 893 | if ymin == None: ymin = numpy.nanmin(y) |
|
894 | 894 | if ymax == None: ymax = numpy.nanmax(y) |
|
895 | 895 | if xmin == None: xmin = numpy.nanmin(xdB)*0.9 |
|
896 | 896 | if xmax == None: xmax = numpy.nanmax(xdB)*1.1 |
|
897 | 897 | |
|
898 | 898 | self.__isConfig = True |
|
899 | 899 | |
|
900 | 900 | self.setWinTitle(title) |
|
901 | 901 | |
|
902 | 902 | title = "Power Profile: %s" %(thisDatetime.strftime("%d-%b-%Y %H:%M:%S")) |
|
903 | 903 | axes = self.axesList[0] |
|
904 | 904 | |
|
905 | 905 | legendlabels = ["channel %d"%x for x in channelList] |
|
906 | 906 | axes.pmultiline(xdB, y, |
|
907 | 907 | xmin=xmin, xmax=xmax, ymin=ymin, ymax=ymax, |
|
908 | 908 | xlabel=xlabel, ylabel=ylabel, title=title, legendlabels=legendlabels, |
|
909 | 909 | ytick_visible=True, nxticks=5, |
|
910 | 910 | grid='x') |
|
911 | 911 | |
|
912 | 912 | self.draw() |
|
913 | 913 | |
|
914 | 914 | self.save(figpath=figpath, |
|
915 | 915 | figfile=figfile, |
|
916 | 916 | save=save, |
|
917 | 917 | ftp=ftp, |
|
918 | 918 | wr_period=wr_period, |
|
919 | 919 | thisDatetime=thisDatetime) |
|
920 | 920 | |
|
921 | 921 | class Noise(Figure): |
|
922 | 922 | |
|
923 | 923 | isConfig = None |
|
924 | 924 | __nsubplots = None |
|
925 | 925 | |
|
926 | 926 | PREFIX = 'noise' |
|
927 | 927 | |
|
928 | 928 | def __init__(self): |
|
929 | 929 | |
|
930 | 930 | self.timerange = 24*60*60 |
|
931 | 931 | self.isConfig = False |
|
932 | 932 | self.__nsubplots = 1 |
|
933 | 933 | self.counter_imagwr = 0 |
|
934 | 934 | self.WIDTH = 600 |
|
935 | 935 | self.HEIGHT = 300 |
|
936 | 936 | self.WIDTHPROF = 120 |
|
937 | 937 | self.HEIGHTPROF = 0 |
|
938 | 938 | self.xdata = None |
|
939 | 939 | self.ydata = None |
|
940 | 940 | |
|
941 | 941 | self.PLOT_CODE = NOISE_CODE |
|
942 | 942 | |
|
943 | 943 | self.FTP_WEI = None |
|
944 | 944 | self.EXP_CODE = None |
|
945 | 945 | self.SUB_EXP_CODE = None |
|
946 | 946 | self.PLOT_POS = None |
|
947 | 947 | self.figfile = None |
|
948 | 948 | |
|
949 | 949 | self.xmin = None |
|
950 | 950 | self.xmax = None |
|
951 | 951 | |
|
952 | 952 | def getSubplots(self): |
|
953 | 953 | |
|
954 | 954 | ncol = 1 |
|
955 | 955 | nrow = 1 |
|
956 | 956 | |
|
957 | 957 | return nrow, ncol |
|
958 | 958 | |
|
959 | 959 | def openfile(self, filename): |
|
960 | 960 | dirname = os.path.dirname(filename) |
|
961 | 961 | |
|
962 | 962 | if not os.path.exists(dirname): |
|
963 | 963 | os.mkdir(dirname) |
|
964 | 964 | |
|
965 | 965 | f = open(filename,'w+') |
|
966 | 966 | f.write('\n\n') |
|
967 | 967 | f.write('JICAMARCA RADIO OBSERVATORY - Noise \n') |
|
968 | 968 | f.write('DD MM YYYY HH MM SS Channel0 Channel1 Channel2 Channel3\n\n' ) |
|
969 | 969 | f.close() |
|
970 | 970 | |
|
971 | 971 | def save_data(self, filename_phase, data, data_datetime): |
|
972 | 972 | f=open(filename_phase,'a') |
|
973 | 973 | timetuple_data = data_datetime.timetuple() |
|
974 | 974 | day = str(timetuple_data.tm_mday) |
|
975 | 975 | month = str(timetuple_data.tm_mon) |
|
976 | 976 | year = str(timetuple_data.tm_year) |
|
977 | 977 | hour = str(timetuple_data.tm_hour) |
|
978 | 978 | minute = str(timetuple_data.tm_min) |
|
979 | 979 | second = str(timetuple_data.tm_sec) |
|
980 | 980 | |
|
981 | 981 | data_msg = '' |
|
982 | 982 | for i in range(len(data)): |
|
983 | 983 | data_msg += str(data[i]) + ' ' |
|
984 | 984 | |
|
985 | 985 | f.write(day+' '+month+' '+year+' '+hour+' '+minute+' '+second+' ' + data_msg + '\n') |
|
986 | 986 | f.close() |
|
987 | 987 | |
|
988 | 988 | |
|
989 | 989 | def setup(self, id, nplots, wintitle, showprofile=True, show=True): |
|
990 | 990 | |
|
991 | 991 | self.__showprofile = showprofile |
|
992 | 992 | self.nplots = nplots |
|
993 | 993 | |
|
994 | 994 | ncolspan = 7 |
|
995 | 995 | colspan = 6 |
|
996 | 996 | self.__nsubplots = 2 |
|
997 | 997 | |
|
998 | 998 | self.createFigure(id = id, |
|
999 | 999 | wintitle = wintitle, |
|
1000 | 1000 | widthplot = self.WIDTH+self.WIDTHPROF, |
|
1001 | 1001 | heightplot = self.HEIGHT+self.HEIGHTPROF, |
|
1002 | 1002 | show=show) |
|
1003 | 1003 | |
|
1004 | 1004 | nrow, ncol = self.getSubplots() |
|
1005 | 1005 | |
|
1006 | 1006 | self.addAxes(nrow, ncol*ncolspan, 0, 0, colspan, 1) |
|
1007 | 1007 | |
|
1008 | 1008 | |
|
1009 | 1009 | def run(self, dataOut, id, wintitle="", channelList=None, showprofile='True', |
|
1010 | 1010 | xmin=None, xmax=None, ymin=None, ymax=None, |
|
1011 | 1011 | timerange=None, |
|
1012 | 1012 | save=False, figpath='./', figfile=None, show=True, ftp=False, wr_period=1, |
|
1013 | 1013 | server=None, folder=None, username=None, password=None, |
|
1014 | 1014 | ftp_wei=0, exp_code=0, sub_exp_code=0, plot_pos=0): |
|
1015 | 1015 | |
|
1016 | 1016 | if channelList == None: |
|
1017 | 1017 | channelIndexList = dataOut.channelIndexList |
|
1018 | 1018 | channelList = dataOut.channelList |
|
1019 | 1019 | else: |
|
1020 | 1020 | channelIndexList = [] |
|
1021 | 1021 | for channel in channelList: |
|
1022 | 1022 | if channel not in dataOut.channelList: |
|
1023 | 1023 | raise ValueError, "Channel %d is not in dataOut.channelList" |
|
1024 | 1024 | channelIndexList.append(dataOut.channelList.index(channel)) |
|
1025 | 1025 | |
|
1026 | 1026 | x = dataOut.getTimeRange() |
|
1027 | 1027 | #y = dataOut.getHeiRange() |
|
1028 | 1028 | factor = dataOut.normFactor |
|
1029 | 1029 | noise = dataOut.noise/factor |
|
1030 | 1030 | noisedB = 10*numpy.log10(noise) |
|
1031 | 1031 | |
|
1032 | 1032 | #thisDatetime = dataOut.datatime |
|
1033 | 1033 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
1034 | 1034 | title = wintitle + " Noise" # : %s" %(thisDatetime.strftime("%d-%b-%Y")) |
|
1035 | 1035 | xlabel = "" |
|
1036 | 1036 | ylabel = "Intensity (dB)" |
|
1037 | 1037 | |
|
1038 | 1038 | if not self.isConfig: |
|
1039 | 1039 | |
|
1040 | 1040 | nplots = 1 |
|
1041 | 1041 | |
|
1042 | 1042 | self.setup(id=id, |
|
1043 | 1043 | nplots=nplots, |
|
1044 | 1044 | wintitle=wintitle, |
|
1045 | 1045 | showprofile=showprofile, |
|
1046 | 1046 | show=show) |
|
1047 | 1047 | |
|
1048 | 1048 | if timerange != None: |
|
1049 | 1049 | self.timerange = timerange |
|
1050 | 1050 | |
|
1051 | 1051 | self.xmin, self.xmax = self.getTimeLim(x, xmin, xmax, timerange) |
|
1052 | 1052 | |
|
1053 | 1053 | if ymin == None: ymin = numpy.floor(numpy.nanmin(noisedB)) - 10.0 |
|
1054 | 1054 | if ymax == None: ymax = numpy.nanmax(noisedB) + 10.0 |
|
1055 | 1055 | |
|
1056 | 1056 | self.FTP_WEI = ftp_wei |
|
1057 | 1057 | self.EXP_CODE = exp_code |
|
1058 | 1058 | self.SUB_EXP_CODE = sub_exp_code |
|
1059 | 1059 | self.PLOT_POS = plot_pos |
|
1060 | 1060 | |
|
1061 | 1061 | |
|
1062 | 1062 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
1063 | 1063 | self.isConfig = True |
|
1064 | 1064 | self.figfile = figfile |
|
1065 | 1065 | self.xdata = numpy.array([]) |
|
1066 | 1066 | self.ydata = numpy.array([]) |
|
1067 | 1067 | |
|
1068 | 1068 | #open file beacon phase |
|
1069 | 1069 | path = '%s%03d' %(self.PREFIX, self.id) |
|
1070 | 1070 | noise_file = os.path.join(path,'%s.txt'%self.name) |
|
1071 | 1071 | self.filename_noise = os.path.join(figpath,noise_file) |
|
1072 | 1072 | if save: |
|
1073 | 1073 | self.openfile(self.filename_noise) |
|
1074 | 1074 | |
|
1075 | 1075 | |
|
1076 | 1076 | #store data beacon phase |
|
1077 | 1077 | if save: |
|
1078 | 1078 | self.save_data(self.filename_noise, noisedB, thisDatetime) |
|
1079 | 1079 | |
|
1080 | 1080 | |
|
1081 | 1081 | self.setWinTitle(title) |
|
1082 | 1082 | |
|
1083 | 1083 | |
|
1084 | 1084 | title = "Noise %s" %(thisDatetime.strftime("%Y/%m/%d %H:%M:%S")) |
|
1085 | 1085 | |
|
1086 | 1086 | legendlabels = ["channel %d"%(idchannel+1) for idchannel in channelList] |
|
1087 | 1087 | axes = self.axesList[0] |
|
1088 | 1088 | |
|
1089 | 1089 | self.xdata = numpy.hstack((self.xdata, x[0:1])) |
|
1090 | 1090 | |
|
1091 | 1091 | if len(self.ydata)==0: |
|
1092 | 1092 | self.ydata = noisedB[channelIndexList].reshape(-1,1) |
|
1093 | 1093 | else: |
|
1094 | 1094 | self.ydata = numpy.hstack((self.ydata, noisedB[channelIndexList].reshape(-1,1))) |
|
1095 | 1095 | |
|
1096 | 1096 | |
|
1097 | 1097 | axes.pmultilineyaxis(x=self.xdata, y=self.ydata, |
|
1098 | 1098 | xmin=self.xmin, xmax=self.xmax, ymin=ymin, ymax=ymax, |
|
1099 | 1099 | xlabel=xlabel, ylabel=ylabel, title=title, legendlabels=legendlabels, marker='x', markersize=8, linestyle="solid", |
|
1100 | 1100 | XAxisAsTime=True, grid='both' |
|
1101 | 1101 | ) |
|
1102 | 1102 | |
|
1103 | 1103 | self.draw() |
|
1104 | 1104 | |
|
1105 | 1105 | if x[1] >= self.axesList[0].xmax: |
|
1106 | 1106 | self.counter_imagwr = wr_period |
|
1107 | 1107 | del self.xdata |
|
1108 | 1108 | del self.ydata |
|
1109 | 1109 | self.__isConfig = False |
|
1110 | 1110 | self.figfile = None |
|
1111 | 1111 | |
|
1112 | 1112 | self.save(figpath=figpath, |
|
1113 | 1113 | figfile=figfile, |
|
1114 | 1114 | save=save, |
|
1115 | 1115 | ftp=ftp, |
|
1116 | 1116 | wr_period=wr_period, |
|
1117 | 1117 | thisDatetime=thisDatetime, |
|
1118 | 1118 | update_figfile=False) |
|
1119 | 1119 | |
|
1120 | 1120 | |
|
1121 | 1121 | class BeaconPhase(Figure): |
|
1122 | 1122 | |
|
1123 | 1123 | __isConfig = None |
|
1124 | 1124 | __nsubplots = None |
|
1125 | 1125 | |
|
1126 | 1126 | PREFIX = 'beacon_phase' |
|
1127 | 1127 | |
|
1128 | 1128 | def __init__(self): |
|
1129 | 1129 | |
|
1130 | 1130 | self.timerange = 24*60*60 |
|
1131 | 1131 | self.__isConfig = False |
|
1132 | 1132 | self.__nsubplots = 1 |
|
1133 | 1133 | self.counter_imagwr = 0 |
|
1134 | 1134 | self.WIDTH = 600 |
|
1135 | 1135 | self.HEIGHT = 300 |
|
1136 | 1136 | self.WIDTHPROF = 120 |
|
1137 | 1137 | self.HEIGHTPROF = 0 |
|
1138 | 1138 | self.xdata = None |
|
1139 | 1139 | self.ydata = None |
|
1140 | 1140 | |
|
1141 | 1141 | self.PLOT_CODE = BEACON_CODE |
|
1142 | 1142 | |
|
1143 | 1143 | self.FTP_WEI = None |
|
1144 | 1144 | self.EXP_CODE = None |
|
1145 | 1145 | self.SUB_EXP_CODE = None |
|
1146 | 1146 | self.PLOT_POS = None |
|
1147 | 1147 | |
|
1148 | 1148 | self.filename_phase = None |
|
1149 | 1149 | |
|
1150 | 1150 | self.figfile = None |
|
1151 | 1151 | |
|
1152 | 1152 | self.xmin = None |
|
1153 | 1153 | self.xmax = None |
|
1154 | 1154 | |
|
1155 | 1155 | def getSubplots(self): |
|
1156 | 1156 | |
|
1157 | 1157 | ncol = 1 |
|
1158 | 1158 | nrow = 1 |
|
1159 | 1159 | |
|
1160 | 1160 | return nrow, ncol |
|
1161 | 1161 | |
|
1162 | 1162 | def setup(self, id, nplots, wintitle, showprofile=True, show=True): |
|
1163 | 1163 | |
|
1164 | 1164 | self.__showprofile = showprofile |
|
1165 | 1165 | self.nplots = nplots |
|
1166 | 1166 | |
|
1167 | 1167 | ncolspan = 7 |
|
1168 | 1168 | colspan = 6 |
|
1169 | 1169 | self.__nsubplots = 2 |
|
1170 | 1170 | |
|
1171 | 1171 | self.createFigure(id = id, |
|
1172 | 1172 | wintitle = wintitle, |
|
1173 | 1173 | widthplot = self.WIDTH+self.WIDTHPROF, |
|
1174 | 1174 | heightplot = self.HEIGHT+self.HEIGHTPROF, |
|
1175 | 1175 | show=show) |
|
1176 | 1176 | |
|
1177 | 1177 | nrow, ncol = self.getSubplots() |
|
1178 | 1178 | |
|
1179 | 1179 | self.addAxes(nrow, ncol*ncolspan, 0, 0, colspan, 1) |
|
1180 | 1180 | |
|
1181 | 1181 | def save_phase(self, filename_phase): |
|
1182 | 1182 | f = open(filename_phase,'w+') |
|
1183 | 1183 | f.write('\n\n') |
|
1184 | 1184 | f.write('JICAMARCA RADIO OBSERVATORY - Beacon Phase \n') |
|
1185 | 1185 | f.write('DD MM YYYY HH MM SS pair(2,0) pair(2,1) pair(2,3) pair(2,4)\n\n' ) |
|
1186 | 1186 | f.close() |
|
1187 | 1187 | |
|
1188 | 1188 | def save_data(self, filename_phase, data, data_datetime): |
|
1189 | 1189 | f=open(filename_phase,'a') |
|
1190 | 1190 | timetuple_data = data_datetime.timetuple() |
|
1191 | 1191 | day = str(timetuple_data.tm_mday) |
|
1192 | 1192 | month = str(timetuple_data.tm_mon) |
|
1193 | 1193 | year = str(timetuple_data.tm_year) |
|
1194 | 1194 | hour = str(timetuple_data.tm_hour) |
|
1195 | 1195 | minute = str(timetuple_data.tm_min) |
|
1196 | 1196 | second = str(timetuple_data.tm_sec) |
|
1197 | 1197 | f.write(day+' '+month+' '+year+' '+hour+' '+minute+' '+second+' '+str(data[0])+' '+str(data[1])+' '+str(data[2])+' '+str(data[3])+'\n') |
|
1198 | 1198 | f.close() |
|
1199 | 1199 | |
|
1200 | 1200 | |
|
1201 | 1201 | def run(self, dataOut, id, wintitle="", pairsList=None, showprofile='True', |
|
1202 | 1202 | xmin=None, xmax=None, ymin=None, ymax=None, |
|
1203 | 1203 | timerange=None, |
|
1204 | 1204 | save=False, figpath='./', figfile=None, show=True, ftp=False, wr_period=1, |
|
1205 | 1205 | server=None, folder=None, username=None, password=None, |
|
1206 | 1206 | ftp_wei=0, exp_code=0, sub_exp_code=0, plot_pos=0): |
|
1207 | 1207 | |
|
1208 | 1208 | if pairsList == None: |
|
1209 | 1209 | pairsIndexList = dataOut.pairsIndexList |
|
1210 | 1210 | else: |
|
1211 | 1211 | pairsIndexList = [] |
|
1212 | 1212 | for pair in pairsList: |
|
1213 | 1213 | if pair not in dataOut.pairsList: |
|
1214 | 1214 | raise ValueError, "Pair %s is not in dataOut.pairsList" %(pair) |
|
1215 | 1215 | pairsIndexList.append(dataOut.pairsList.index(pair)) |
|
1216 | 1216 | |
|
1217 | 1217 | if pairsIndexList == []: |
|
1218 | 1218 | return |
|
1219 | 1219 | |
|
1220 | 1220 | # if len(pairsIndexList) > 4: |
|
1221 | 1221 | # pairsIndexList = pairsIndexList[0:4] |
|
1222 | 1222 | |
|
1223 | 1223 | x = dataOut.getTimeRange() |
|
1224 | 1224 | #y = dataOut.getHeiRange() |
|
1225 | 1225 | |
|
1226 | 1226 | |
|
1227 | 1227 | #thisDatetime = dataOut.datatime |
|
1228 | 1228 | thisDatetime = datetime.datetime.utcfromtimestamp(dataOut.getTimeRange()[0]) |
|
1229 | 1229 | title = wintitle + " Phase of Beacon Signal" # : %s" %(thisDatetime.strftime("%d-%b-%Y")) |
|
1230 | 1230 | xlabel = "Local Time" |
|
1231 | 1231 | ylabel = "Phase" |
|
1232 | 1232 | |
|
1233 | 1233 | nplots = len(pairsIndexList) |
|
1234 | 1234 | #phase = numpy.zeros((len(pairsIndexList),len(dataOut.beacon_heiIndexList))) |
|
1235 | 1235 | phase_beacon = numpy.zeros(len(pairsIndexList)) |
|
1236 | 1236 | for i in range(nplots): |
|
1237 | 1237 | pair = dataOut.pairsList[pairsIndexList[i]] |
|
1238 | 1238 | ccf = numpy.average(dataOut.data_cspc[pairsIndexList[i],:,:],axis=0) |
|
1239 | 1239 | powa = numpy.average(dataOut.data_spc[pair[0],:,:],axis=0) |
|
1240 | 1240 | powb = numpy.average(dataOut.data_spc[pair[1],:,:],axis=0) |
|
1241 | 1241 | avgcoherenceComplex = ccf/numpy.sqrt(powa*powb) |
|
1242 | 1242 | phase = numpy.arctan2(avgcoherenceComplex.imag, avgcoherenceComplex.real)*180/numpy.pi |
|
1243 | 1243 | |
|
1244 | 1244 | #print "Phase %d%d" %(pair[0], pair[1]) |
|
1245 | 1245 | #print phase[dataOut.beacon_heiIndexList] |
|
1246 | 1246 | |
|
1247 | 1247 | phase_beacon[i] = numpy.average(phase[dataOut.beacon_heiIndexList]) |
|
1248 | 1248 | |
|
1249 | 1249 | if not self.__isConfig: |
|
1250 | 1250 | |
|
1251 | 1251 | nplots = len(pairsIndexList) |
|
1252 | 1252 | |
|
1253 | 1253 | self.setup(id=id, |
|
1254 | 1254 | nplots=nplots, |
|
1255 | 1255 | wintitle=wintitle, |
|
1256 | 1256 | showprofile=showprofile, |
|
1257 | 1257 | show=show) |
|
1258 | 1258 | |
|
1259 | 1259 | if timerange != None: |
|
1260 | 1260 | self.timerange = timerange |
|
1261 | 1261 | |
|
1262 | 1262 | self.xmin, self.xmax = self.getTimeLim(x, xmin, xmax, timerange) |
|
1263 | 1263 | |
|
1264 | 1264 | if ymin == None: ymin = numpy.nanmin(phase_beacon) - 10.0 |
|
1265 | 1265 | if ymax == None: ymax = numpy.nanmax(phase_beacon) + 10.0 |
|
1266 | 1266 | |
|
1267 | 1267 | self.FTP_WEI = ftp_wei |
|
1268 | 1268 | self.EXP_CODE = exp_code |
|
1269 | 1269 | self.SUB_EXP_CODE = sub_exp_code |
|
1270 | 1270 | self.PLOT_POS = plot_pos |
|
1271 | 1271 | |
|
1272 | 1272 | self.name = thisDatetime.strftime("%Y%m%d_%H%M%S") |
|
1273 | 1273 | self.__isConfig = True |
|
1274 | 1274 | self.figfile = figfile |
|
1275 | 1275 | self.xdata = numpy.array([]) |
|
1276 | 1276 | self.ydata = numpy.array([]) |
|
1277 | 1277 | |
|
1278 | 1278 | #open file beacon phase |
|
1279 | 1279 | path = '%s%03d' %(self.PREFIX, self.id) |
|
1280 | 1280 | beacon_file = os.path.join(path,'%s.txt'%self.name) |
|
1281 | 1281 | self.filename_phase = os.path.join(figpath,beacon_file) |
|
1282 | 1282 | #self.save_phase(self.filename_phase) |
|
1283 | 1283 | |
|
1284 | 1284 | |
|
1285 | 1285 | #store data beacon phase |
|
1286 | 1286 | #self.save_data(self.filename_phase, phase_beacon, thisDatetime) |
|
1287 | 1287 | |
|
1288 | 1288 | self.setWinTitle(title) |
|
1289 | 1289 | |
|
1290 | 1290 | |
|
1291 | 1291 | title = "Beacon Signal %s" %(thisDatetime.strftime("%Y/%m/%d %H:%M:%S")) |
|
1292 | 1292 | |
|
1293 | 1293 | legendlabels = ["pairs %d%d"%(pair[0], pair[1]) for pair in dataOut.pairsList] |
|
1294 | 1294 | |
|
1295 | 1295 | axes = self.axesList[0] |
|
1296 | 1296 | |
|
1297 | 1297 | self.xdata = numpy.hstack((self.xdata, x[0:1])) |
|
1298 | 1298 | |
|
1299 | 1299 | if len(self.ydata)==0: |
|
1300 | 1300 | self.ydata = phase_beacon.reshape(-1,1) |
|
1301 | 1301 | else: |
|
1302 | 1302 | self.ydata = numpy.hstack((self.ydata, phase_beacon.reshape(-1,1))) |
|
1303 | 1303 | |
|
1304 | 1304 | |
|
1305 | 1305 | axes.pmultilineyaxis(x=self.xdata, y=self.ydata, |
|
1306 | 1306 | xmin=self.xmin, xmax=self.xmax, ymin=ymin, ymax=ymax, |
|
1307 | 1307 | xlabel=xlabel, ylabel=ylabel, title=title, legendlabels=legendlabels, marker='x', markersize=8, linestyle="solid", |
|
1308 | 1308 | XAxisAsTime=True, grid='both' |
|
1309 | 1309 | ) |
|
1310 | 1310 | |
|
1311 | 1311 | self.draw() |
|
1312 | 1312 | |
|
1313 | 1313 | if x[1] >= self.axesList[0].xmax: |
|
1314 | 1314 | self.counter_imagwr = wr_period |
|
1315 | 1315 | del self.xdata |
|
1316 | 1316 | del self.ydata |
|
1317 | 1317 | self.__isConfig = False |
|
1318 | 1318 | self.figfile = None |
|
1319 | 1319 | |
|
1320 | 1320 | self.save(figpath=figpath, |
|
1321 | 1321 | figfile=figfile, |
|
1322 | 1322 | save=save, |
|
1323 | 1323 | ftp=ftp, |
|
1324 | 1324 | wr_period=wr_period, |
|
1325 | 1325 | thisDatetime=thisDatetime, |
|
1326 | 1326 | update_figfile=False) |
|
1 | NO CONTENT: file renamed from schainpy/test/150km_January_longPulse.py to schainpy/scripts/150km_January_longPulse.py |
|
1 | NO CONTENT: file renamed from schainpy/test/150km_January_shortPulse.py to schainpy/scripts/150km_January_shortPulse.py |
|
1 | NO CONTENT: file renamed from schainpy/test/150km_january_1.py to schainpy/scripts/150km_january_1.py |
|
1 | NO CONTENT: file renamed from schainpy/test/150km_january_3.py to schainpy/scripts/150km_january_3.py |
|
1 | NO CONTENT: file renamed from schainpy/test/150km_jicamarca.xml to schainpy/scripts/150km_jicamarca.xml |
|
1 | NO CONTENT: file renamed from schainpy/test/EWDrifts_estimation01.py to schainpy/scripts/EWDrifts_estimation01.py |
|
1 | NO CONTENT: file renamed from schainpy/test/EWDrifts_estimation02.py to schainpy/scripts/EWDrifts_estimation02.py |
|
1 | NO CONTENT: file renamed from schainpy/test/Meteor_JASMET30MHz_Winds.py to schainpy/scripts/Meteor_JASMET30MHz_Winds.py |
|
1 | NO CONTENT: file renamed from schainpy/test/Meteor_JASMET30Mhz_Beacon.py to schainpy/scripts/Meteor_JASMET30Mhz_Beacon.py |
|
1 | NO CONTENT: file renamed from schainpy/test/Meteor_JASMET50MHz_Winds.py to schainpy/scripts/Meteor_JASMET50MHz_Winds.py |
|
1 | NO CONTENT: file renamed from schainpy/test/Meteor_JASMET50Mhz_Beacon.py to schainpy/scripts/Meteor_JASMET50Mhz_Beacon.py |
|
1 | NO CONTENT: file renamed from schainpy/test/WindProfiler_DBS01.py to schainpy/scripts/WindProfiler_DBS01.py |
|
1 | NO CONTENT: file renamed from schainpy/test/WindProfiler_SA01.py to schainpy/scripts/WindProfiler_SA01.py |
|
1 | NO CONTENT: file renamed from schainpy/test/__init__.py to schainpy/scripts/__init__.py |
|
1 | NO CONTENT: file renamed from schainpy/test/amisr_EEJ.py to schainpy/scripts/amisr_EEJ.py |
|
1 | NO CONTENT: file renamed from schainpy/test/amisr_proc.py to schainpy/scripts/amisr_proc.py |
|
1 | NO CONTENT: file renamed from schainpy/test/amisr_reader.py to schainpy/scripts/amisr_reader.py |
|
1 | NO CONTENT: file renamed from schainpy/test/amisr_reader_exp.py to schainpy/scripts/amisr_reader_exp.py |
|
1 | NO CONTENT: file renamed from schainpy/test/amisr_reader_exp_ex2.py to schainpy/scripts/amisr_reader_exp_ex2.py |
|
1 | NO CONTENT: file renamed from schainpy/test/amisr_spreadF.py to schainpy/scripts/amisr_spreadF.py |
|
1 | NO CONTENT: file renamed from schainpy/test/amisr_windEstimation.py to schainpy/scripts/amisr_windEstimation.py |
|
1 | NO CONTENT: file renamed from schainpy/test/beacon_phase.py to schainpy/scripts/beacon_phase.py |
|
1 | NO CONTENT: file renamed from schainpy/test/hf_plot_pdata.py to schainpy/scripts/hf_plot_pdata.py |
|
1 | NO CONTENT: file renamed from schainpy/test/hf_test.py to schainpy/scripts/hf_test.py |
|
1 | NO CONTENT: file renamed from schainpy/test/hf_write_pdata.py to schainpy/scripts/hf_write_pdata.py |
|
1 | NO CONTENT: file renamed from schainpy/test/jasmet30_16april.py to schainpy/scripts/jasmet30_16april.py |
|
1 | NO CONTENT: file renamed from schainpy/test/jasmet50_16april.py to schainpy/scripts/jasmet50_16april.py |
|
1 | NO CONTENT: file renamed from schainpy/test/mst_isr_eej_blocks.py to schainpy/scripts/mst_isr_eej_blocks.py |
|
1 | NO CONTENT: file renamed from schainpy/test/mst_isr_eej_processing.py to schainpy/scripts/mst_isr_eej_processing.py |
|
1 | NO CONTENT: file renamed from schainpy/test/plot_eej.py to schainpy/scripts/plot_eej.py |
|
1 | NO CONTENT: file renamed from schainpy/test/plot_isr.py to schainpy/scripts/plot_isr.py |
|
1 | NO CONTENT: file renamed from schainpy/test/plot_mst.py to schainpy/scripts/plot_mst.py |
|
1 | NO CONTENT: file renamed from schainpy/test/sousy.py to schainpy/scripts/sousy.py |
|
1 | NO CONTENT: file renamed from schainpy/test/testRawData.py to schainpy/scripts/testRawData.py |
|
1 | NO CONTENT: file renamed from schainpy/test/test_eej_blocks.py to schainpy/scripts/test_eej_blocks.py |
|
1 | NO CONTENT: file renamed from schainpy/test/test_isr_blocks.py to schainpy/scripts/test_isr_blocks.py |
|
1 | NO CONTENT: file renamed from schainpy/test/test_mst_blocks.py to schainpy/scripts/test_mst_blocks.py |
@@ -1,31 +1,31 | |||
|
1 | 1 | ''' |
|
2 | 2 | Created on Jul 16, 2014 |
|
3 | 3 | |
|
4 | 4 | @author: roj-idl71 |
|
5 | 5 | ''' |
|
6 | 6 | |
|
7 | 7 | from distutils.core import setup, Extension |
|
8 | 8 | |
|
9 | 9 | setup(name="schainpy", |
|
10 | 10 | version="2.0", |
|
11 | 11 | description="Python tools to read, write and process Jicamarca data", |
|
12 | 12 | author="Miguel Urco", |
|
13 | 13 | author_email="miguel.urco@jro.igp.gob.pe", |
|
14 | 14 | url="http://jro.igp.gob.pe", |
|
15 | 15 | packages = {'schainpy', |
|
16 | 16 | 'schainpy.model', |
|
17 | 17 | 'schainpy.model.data', |
|
18 | 18 | 'schainpy.model.graphics', |
|
19 | 19 | 'schainpy.model.io', |
|
20 | 20 | 'schainpy.model.proc', |
|
21 | 21 | 'schainpy.model.utils', |
|
22 | 22 | 'schainpy.gui', |
|
23 | 'schainpy.gui.figure', | |
|
23 | 'schainpy.gui.figures', | |
|
24 | 24 | 'schainpy.gui.viewcontroller', |
|
25 | 25 | 'schainpy.gui.viewer', |
|
26 | 26 | 'schainpy.gui.viewer.windows'}, |
|
27 | 27 | py_modules=['schainpy.serializer.DataTranslate', |
|
28 | 28 | 'schainpy.serializer.JROSerializer'], |
|
29 | package_data={'schainpy.gui.figure': ['*.jpg', '*.png', '*.gif']}, | |
|
29 | package_data={'schainpy.gui.figures': ['*.jpg', '*.jpeg', '*.png', '*.gif']}, | |
|
30 | 30 | include_package_data=True, |
|
31 |
scripts =['schainpy/gui/schain |
|
|
31 | scripts =['schainpy/gui/schainGUI']) No newline at end of file |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now