Browse Source

Work towards loop info

add-license-1
Trevor Irons 7 years ago
parent
commit
3605e27258
2 changed files with 221 additions and 155 deletions
  1. 38
    20
      akvo/gui/akvoGUI.py
  2. 183
    135
      akvo/gui/main.ui

+ 38
- 20
akvo/gui/akvoGUI.py View File

173
 
173
 
174
         ##########################################################################
174
         ##########################################################################
175
         # modelling Table 
175
         # modelling Table 
176
-        self.ui.loopTableWidget.setRowCount(40)       
177
-        self.ui.loopTableWidget.setColumnCount(5)      
178
-        self.ui.loopTableWidget.setHorizontalHeaderLabels( ["ch. tag", "Northing [m]","Easting [m]","Height [m]", "Radius"] )
179
-        self.ui.loopTableWidget.cellChanged.connect(self.cellChanged) 
176
+        self.ui.loopTableWidget.setRowCount(80)       
177
+        self.ui.loopTableWidget.setColumnCount(6)      
178
+        self.ui.loopTableWidget.setHorizontalHeaderLabels( ["ch. tag", "Northing [m]","Easting [m]","Height [m]", "Radius","Tx"] )
179
+        
180
+        for ir in range(1, self.ui.loopTableWidget.rowCount() ):
181
+            for ic in range( self.ui.loopTableWidget.columnCount() ):
182
+                pCell = QtWidgets.QTableWidgetItem()
183
+                #pCell.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable)
184
+                pCell.setFlags(QtCore.Qt.NoItemFlags) # not selectable 
185
+                pCell.setBackground( QtGui.QColor("lightgrey").lighter(110) )
186
+                self.ui.loopTableWidget.setItem(ir, ic, pCell)
180
 
187
 
188
+        self.ui.loopTableWidget.cellChanged.connect(self.loopCellChanged) 
181
         self.ui.loopTableWidget.setDragDropOverwriteMode(False)
189
         self.ui.loopTableWidget.setDragDropOverwriteMode(False)
182
         self.ui.loopTableWidget.setDragEnabled(True)
190
         self.ui.loopTableWidget.setDragEnabled(True)
183
         self.ui.loopTableWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
191
         self.ui.loopTableWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
188
         self.ui.layerTableWidget.setColumnCount(3)      
196
         self.ui.layerTableWidget.setColumnCount(3)      
189
         self.ui.layerTableWidget.setHorizontalHeaderLabels( [r"top [m]", r"bottom [m]", "σ [ Ωm]" ] )
197
         self.ui.layerTableWidget.setHorizontalHeaderLabels( [r"top [m]", r"bottom [m]", "σ [ Ωm]" ] )
190
 
198
 
191
-
192
         self.ui.layerTableWidget.setDragDropOverwriteMode(False)
199
         self.ui.layerTableWidget.setDragDropOverwriteMode(False)
193
         self.ui.layerTableWidget.setDragEnabled(True)
200
         self.ui.layerTableWidget.setDragEnabled(True)
194
         self.ui.layerTableWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
201
         self.ui.layerTableWidget.setDragDropMode(QtWidgets.QAbstractItemView.InternalMove)
195
         
202
         
196
         pCell = QtWidgets.QTableWidgetItem()
203
         pCell = QtWidgets.QTableWidgetItem()
197
-        #pCell.setFlags(QtCore.Qt.ItemIsEnabled | QtCore.Qt.ItemIsSelectable)
198
         pCell.setFlags(QtCore.Qt.NoItemFlags) # not selectable 
204
         pCell.setFlags(QtCore.Qt.NoItemFlags) # not selectable 
199
-        #pCell.setBackground( QtGui.QColor("lightblue").lighter(125) )
200
         pCell.setBackground( QtGui.QColor("lightgrey").lighter(110) )
205
         pCell.setBackground( QtGui.QColor("lightgrey").lighter(110) )
201
         self.ui.layerTableWidget.setItem(0, 1, pCell)
206
         self.ui.layerTableWidget.setItem(0, 1, pCell)
202
         for ir in range(1, 80):
207
         for ir in range(1, 80):
259
                     self.ui.layerTableWidget.cellChanged.connect(self.sigmaCellChanged) 
264
                     self.ui.layerTableWidget.cellChanged.connect(self.sigmaCellChanged) 
260
                     return
265
                     return
261
 
266
 
262
-            print("I'm here joey")
263
             # enable next layer
267
             # enable next layer
264
             pCell4 = self.ui.layerTableWidget.item(ii+1, jj)
268
             pCell4 = self.ui.layerTableWidget.item(ii+1, jj)
265
             pCell4.setBackground( QtGui.QColor("lightblue") ) #.lighter(110))
269
             pCell4.setBackground( QtGui.QColor("lightblue") ) #.lighter(110))
278
         self.ui.layerTableWidget.cellChanged.connect(self.sigmaCellChanged) 
282
         self.ui.layerTableWidget.cellChanged.connect(self.sigmaCellChanged) 
279
 
283
 
280
 
284
 
281
-    def cellChanged(self):
285
+    def loopCellChanged(self):
282
         # TODO consider building the model whenever this is called. Would be nice to be able to 
286
         # TODO consider building the model whenever this is called. Would be nice to be able to 
283
         # do that. Would require instead dist of T2 I guess. 
287
         # do that. Would require instead dist of T2 I guess. 
284
         jj = self.ui.loopTableWidget.currentColumn()
288
         jj = self.ui.loopTableWidget.currentColumn()
287
         #if self.ui.loopTableWidget.item(ii, jj) == None:
291
         #if self.ui.loopTableWidget.item(ii, jj) == None:
288
         #    return
292
         #    return
289
 
293
 
290
-        try:
291
-            eval (str( self.ui.loopTableWidget.item(ii, jj).text() ))
292
-        except:
293
-            if jj != 0:
294
-                Error = QtWidgets.QMessageBox()
295
-                Error.setWindowTitle("Error!")
296
-                Error.setText("Non-numeric value encountered")
297
-                Error.setDetailedText("Modelling parameters must be able to be cast into numeric values.")
298
-                Error.exec_()
294
+        if jj == 5:
295
+            pass
296
+            #pCell = QtWidgets.QTableWidgetItem()
297
+            #pCell.setFlags(QtCore.Qt.ItemIsEnabled)
298
+            #pCell.setBackground( QtGui.QColor("lightblue") ) #.lighter(110))
299
+            #self.ui.loopTableWidget.setItem(ii, jj, pCell)
300
+            #pCell4 = self.ui.layerTableWidget.item(ii, jj)
301
+            #print(pCell4)
302
+            #pCell4.setFlags( QtCore.Qt.ItemIsSelectable | QtCore.Qt.ItemIsEditable | QtCore.Qt.ItemIsEnabled )
303
+            #pCell4.setBackground( QtGui.QColor("lightblue") ) #.lighter(110))
304
+#         try:
305
+#             eval (str( self.ui.loopTableWidget.item(ii, jj).text() ))
306
+#         except:
307
+#             if jj != 0:
308
+#                 Error = QtWidgets.QMessageBox()
309
+#                 Error.setWindowTitle("Error!")
310
+#                 Error.setText("Non-numeric value encountered")
311
+#                 Error.setDetailedText("Modelling parameters must be able to be cast into numeric values.")
312
+#                 Error.exec_()
299
             
313
             
300
         self.plotLoops()
314
         self.plotLoops()
301
 
315
 
310
         for ii in range( self.ui.loopTableWidget.rowCount() ):
324
         for ii in range( self.ui.loopTableWidget.rowCount() ):
311
             for jj in range( self.ui.loopTableWidget.columnCount() ):
325
             for jj in range( self.ui.loopTableWidget.columnCount() ):
312
                 tp = type(self.ui.loopTableWidget.item(ii, jj))
326
                 tp = type(self.ui.loopTableWidget.item(ii, jj))
313
-                if str(tp) == "<class 'NoneType'>":  # ugly hack needed by PySide for some strange reason.
314
-                    pass #print ("NONE")
327
+                if str(tp) == "<class 'NoneType'>":  
328
+                    pass 
329
+                elif not len(self.ui.loopTableWidget.item(ii, jj).text()): 
330
+                    pass
315
                 else:
331
                 else:
316
                     if jj == 0: 
332
                     if jj == 0: 
317
                         idx = self.ui.loopTableWidget.item(ii, 0).text()
333
                         idx = self.ui.loopTableWidget.item(ii, 0).text()
331
                 self.ui.mplwidget_3.ax1.plot(  np.array(nor[ii]), np.array(eas[ii])  )
347
                 self.ui.mplwidget_3.ax1.plot(  np.array(nor[ii]), np.array(eas[ii])  )
332
             except:
348
             except:
333
                 pass 
349
                 pass 
350
+        #self.ui.mplwidget_3.figure.axes().set
351
+        plt.gca().set_aspect('equal') #, adjustable='box')
334
         self.ui.mplwidget_3.draw()
352
         self.ui.mplwidget_3.draw()
335
 
353
 
336
     def about(self):
354
     def about(self):

+ 183
- 135
akvo/gui/main.ui View File

73
         <rect>
73
         <rect>
74
          <x>0</x>
74
          <x>0</x>
75
          <y>0</y>
75
          <y>0</y>
76
-         <width>982</width>
77
-         <height>921</height>
76
+         <width>967</width>
77
+         <height>922</height>
78
         </rect>
78
         </rect>
79
        </property>
79
        </property>
80
        <layout class="QHBoxLayout" name="horizontalLayout_2">
80
        <layout class="QHBoxLayout" name="horizontalLayout_2">
96
            <enum>Qt::LeftToRight</enum>
96
            <enum>Qt::LeftToRight</enum>
97
           </property>
97
           </property>
98
           <property name="currentIndex">
98
           <property name="currentIndex">
99
-           <number>0</number>
99
+           <number>2</number>
100
           </property>
100
           </property>
101
           <widget class="QWidget" name="tab">
101
           <widget class="QWidget" name="tab">
102
            <property name="minimumSize">
102
            <property name="minimumSize">
801
               <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
801
               <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
802
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
802
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
803
 p, li { white-space: pre-wrap; }
803
 p, li { white-space: pre-wrap; }
804
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:8pt; font-weight:400; font-style:italic;&quot;&gt;
804
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:8pt; font-weight:400; font-style:italic;&quot;&gt;
805
 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Serif'; font-size:9pt;&quot;&gt;Load supported RAW Dataset header from file menu&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
805
 &lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'DejaVu Serif'; font-size:9pt;&quot;&gt;Load supported RAW Dataset header from file menu&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
806
              </property>
806
              </property>
807
             </widget>
807
             </widget>
854
               <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
854
               <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
855
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
855
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
856
 p, li { white-space: pre-wrap; }
856
 p, li { white-space: pre-wrap; }
857
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:italic;&quot;&gt;
857
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:italic;&quot;&gt;
858
 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Serif'; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
858
 &lt;p style=&quot;-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; font-family:'DejaVu Serif'; font-size:10pt;&quot;&gt;&lt;br /&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
859
              </property>
859
              </property>
860
             </widget>
860
             </widget>
2489
                 <rect>
2489
                 <rect>
2490
                  <x>20</x>
2490
                  <x>20</x>
2491
                  <y>37</y>
2491
                  <y>37</y>
2492
-                 <width>111</width>
2492
+                 <width>121</width>
2493
                  <height>16</height>
2493
                  <height>16</height>
2494
                 </rect>
2494
                 </rect>
2495
                </property>
2495
                </property>
2513
               <widget class="QLabel" name="label_36">
2513
               <widget class="QLabel" name="label_36">
2514
                <property name="geometry">
2514
                <property name="geometry">
2515
                 <rect>
2515
                 <rect>
2516
-                 <x>560</x>
2517
-                 <y>40</y>
2516
+                 <x>10</x>
2517
+                 <y>190</y>
2518
                  <width>61</width>
2518
                  <width>61</width>
2519
                  <height>16</height>
2519
                  <height>16</height>
2520
                 </rect>
2520
                 </rect>
2526
               <widget class="QLineEdit" name="locEdit">
2526
               <widget class="QLineEdit" name="locEdit">
2527
                <property name="geometry">
2527
                <property name="geometry">
2528
                 <rect>
2528
                 <rect>
2529
-                 <x>560</x>
2530
-                 <y>60</y>
2531
-                 <width>351</width>
2532
-                 <height>81</height>
2529
+                 <x>10</x>
2530
+                 <y>210</y>
2531
+                 <width>441</width>
2532
+                 <height>51</height>
2533
                 </rect>
2533
                 </rect>
2534
                </property>
2534
                </property>
2535
               </widget>
2535
               </widget>
2536
-              <widget class="QDoubleSpinBox" name="decSpinBox">
2536
+              <widget class="Line" name="line">
2537
                <property name="geometry">
2537
                <property name="geometry">
2538
                 <rect>
2538
                 <rect>
2539
-                 <x>420</x>
2540
-                 <y>70</y>
2541
-                 <width>101</width>
2542
-                 <height>31</height>
2539
+                 <x>20</x>
2540
+                 <y>160</y>
2541
+                 <width>371</width>
2542
+                 <height>16</height>
2543
                 </rect>
2543
                 </rect>
2544
                </property>
2544
                </property>
2545
-               <property name="decimals">
2546
-                <number>1</number>
2545
+               <property name="orientation">
2546
+                <enum>Qt::Horizontal</enum>
2547
                </property>
2547
                </property>
2548
-               <property name="minimum">
2549
-                <double>-90.000000000000000</double>
2548
+              </widget>
2549
+              <widget class="QLabel" name="label_52">
2550
+               <property name="geometry">
2551
+                <rect>
2552
+                 <x>0</x>
2553
+                 <y>260</y>
2554
+                 <width>191</width>
2555
+                 <height>31</height>
2556
+                </rect>
2550
                </property>
2557
                </property>
2551
-               <property name="maximum">
2552
-                <double>90.000000000000000</double>
2558
+               <property name="text">
2559
+                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Comments and field notes&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
2553
                </property>
2560
                </property>
2554
-               <property name="value">
2555
-                <double>0.000000000000000</double>
2561
+              </widget>
2562
+              <widget class="QTextBrowser" name="txtComments">
2563
+               <property name="geometry">
2564
+                <rect>
2565
+                 <x>10</x>
2566
+                 <y>300</y>
2567
+                 <width>441</width>
2568
+                 <height>221</height>
2569
+                </rect>
2570
+               </property>
2571
+               <property name="readOnly">
2572
+                <bool>false</bool>
2556
                </property>
2573
                </property>
2557
               </widget>
2574
               </widget>
2558
-              <widget class="QDoubleSpinBox" name="incSpinBox">
2575
+              <widget class="QTimeEdit" name="timeEdit">
2559
                <property name="geometry">
2576
                <property name="geometry">
2560
                 <rect>
2577
                 <rect>
2561
-                 <x>420</x>
2562
-                 <y>30</y>
2563
-                 <width>101</width>
2564
-                 <height>31</height>
2578
+                 <x>150</x>
2579
+                 <y>110</y>
2580
+                 <width>118</width>
2581
+                 <height>29</height>
2565
                 </rect>
2582
                 </rect>
2566
                </property>
2583
                </property>
2567
-               <property name="decimals">
2568
-                <number>1</number>
2584
+               <property name="calendarPopup">
2585
+                <bool>true</bool>
2569
                </property>
2586
                </property>
2570
-               <property name="minimum">
2571
-                <double>-90.000000000000000</double>
2587
+              </widget>
2588
+              <widget class="QDateEdit" name="dateEdit">
2589
+               <property name="geometry">
2590
+                <rect>
2591
+                 <x>150</x>
2592
+                 <y>70</y>
2593
+                 <width>112</width>
2594
+                 <height>29</height>
2595
+                </rect>
2572
                </property>
2596
                </property>
2573
-               <property name="maximum">
2574
-                <double>90.000000000000000</double>
2597
+               <property name="calendarPopup">
2598
+                <bool>true</bool>
2575
                </property>
2599
                </property>
2576
-               <property name="value">
2577
-                <double>45.000000000000000</double>
2600
+              </widget>
2601
+              <widget class="QLabel" name="label_50">
2602
+               <property name="geometry">
2603
+                <rect>
2604
+                 <x>24</x>
2605
+                 <y>117</y>
2606
+                 <width>81</width>
2607
+                 <height>16</height>
2608
+                </rect>
2609
+               </property>
2610
+               <property name="text">
2611
+                <string>Survey time</string>
2578
                </property>
2612
                </property>
2579
               </widget>
2613
               </widget>
2580
-              <widget class="QLabel" name="label_37">
2614
+              <widget class="QDoubleSpinBox" name="tempSpinBox">
2581
                <property name="geometry">
2615
                <property name="geometry">
2582
                 <rect>
2616
                 <rect>
2583
-                 <x>300</x>
2617
+                 <x>150</x>
2584
                  <y>30</y>
2618
                  <y>30</y>
2585
                  <width>111</width>
2619
                  <width>111</width>
2586
-                 <height>20</height>
2620
+                 <height>29</height>
2587
                 </rect>
2621
                 </rect>
2588
                </property>
2622
                </property>
2589
-               <property name="text">
2590
-                <string>B Inclination [°]</string>
2623
+               <property name="value">
2624
+                <double>20.000000000000000</double>
2591
                </property>
2625
                </property>
2592
               </widget>
2626
               </widget>
2593
-              <widget class="QLabel" name="label_38">
2627
+              <widget class="QTableWidget" name="loopTableWidget">
2594
                <property name="geometry">
2628
                <property name="geometry">
2595
                 <rect>
2629
                 <rect>
2596
-                 <x>300</x>
2597
-                 <y>75</y>
2598
-                 <width>111</width>
2599
-                 <height>20</height>
2630
+                 <x>10</x>
2631
+                 <y>560</y>
2632
+                 <width>641</width>
2633
+                 <height>291</height>
2634
+                </rect>
2635
+               </property>
2636
+               <property name="toolTip">
2637
+                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This table is used to enter coil geometries the format is as follows: each row specifies a single point on a coil. The first column is the coil index (using the GMR channel is useful), the next three colums specify the point in Northing, Easting, and Elevation. These can either be local coordinates or global ones. The final column specifies the loop radius if it is a circle or figure 8, for non circular or figure 8 loops leave this column blank. For figure-8 loops the coils do not need to be touching (see Irons and Kass, 2017). If a given index has 1 row it will be a circular loop, two rows will be a figure 8, and more than that will be a polygonal representation of the points, linearlly interpolated between them. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
2638
+               </property>
2639
+              </widget>
2640
+              <widget class="QLabel" name="label_54">
2641
+               <property name="geometry">
2642
+                <rect>
2643
+                 <x>10</x>
2644
+                 <y>540</y>
2645
+                 <width>91</width>
2646
+                 <height>16</height>
2600
                 </rect>
2647
                 </rect>
2601
                </property>
2648
                </property>
2602
                <property name="text">
2649
                <property name="text">
2603
-                <string>B Declination [°] </string>
2650
+                <string>Surface loops</string>
2651
+               </property>
2652
+              </widget>
2653
+              <widget class="MyDynamicMplCanvas" name="mplwidget_3" native="true">
2654
+               <property name="geometry">
2655
+                <rect>
2656
+                 <x>460</x>
2657
+                 <y>0</y>
2658
+                 <width>500</width>
2659
+                 <height>500</height>
2660
+                </rect>
2661
+               </property>
2662
+               <property name="sizePolicy">
2663
+                <sizepolicy hsizetype="Fixed" vsizetype="Fixed">
2664
+                 <horstretch>0</horstretch>
2665
+                 <verstretch>0</verstretch>
2666
+                </sizepolicy>
2667
+               </property>
2668
+               <property name="minimumSize">
2669
+                <size>
2670
+                 <width>500</width>
2671
+                 <height>500</height>
2672
+                </size>
2604
                </property>
2673
                </property>
2605
               </widget>
2674
               </widget>
2606
               <widget class="QDoubleSpinBox" name="intensitySpinBox">
2675
               <widget class="QDoubleSpinBox" name="intensitySpinBox">
2607
                <property name="geometry">
2676
                <property name="geometry">
2608
                 <rect>
2677
                 <rect>
2609
-                 <x>420</x>
2610
-                 <y>110</y>
2678
+                 <x>790</x>
2679
+                 <y>675</y>
2611
                  <width>101</width>
2680
                  <width>101</width>
2612
                  <height>31</height>
2681
                  <height>31</height>
2613
                 </rect>
2682
                 </rect>
2622
                 <double>50000.000000000000000</double>
2691
                 <double>50000.000000000000000</double>
2623
                </property>
2692
                </property>
2624
               </widget>
2693
               </widget>
2625
-              <widget class="QLabel" name="label_51">
2694
+              <widget class="QLabel" name="label_38">
2626
                <property name="geometry">
2695
                <property name="geometry">
2627
                 <rect>
2696
                 <rect>
2628
-                 <x>300</x>
2629
-                 <y>115</y>
2697
+                 <x>670</x>
2698
+                 <y>640</y>
2630
                  <width>111</width>
2699
                  <width>111</width>
2631
                  <height>20</height>
2700
                  <height>20</height>
2632
                 </rect>
2701
                 </rect>
2633
                </property>
2702
                </property>
2634
                <property name="text">
2703
                <property name="text">
2635
-                <string>B Intensity [nT]</string>
2704
+                <string>B Declination [°] </string>
2636
                </property>
2705
                </property>
2637
               </widget>
2706
               </widget>
2638
-              <widget class="Line" name="line">
2707
+              <widget class="QLabel" name="label_37">
2639
                <property name="geometry">
2708
                <property name="geometry">
2640
                 <rect>
2709
                 <rect>
2641
-                 <x>20</x>
2642
-                 <y>160</y>
2643
-                 <width>901</width>
2644
-                 <height>16</height>
2710
+                 <x>670</x>
2711
+                 <y>600</y>
2712
+                 <width>111</width>
2713
+                 <height>20</height>
2645
                 </rect>
2714
                 </rect>
2646
                </property>
2715
                </property>
2647
-               <property name="orientation">
2648
-                <enum>Qt::Horizontal</enum>
2716
+               <property name="text">
2717
+                <string>B Inclination [°]</string>
2649
                </property>
2718
                </property>
2650
               </widget>
2719
               </widget>
2651
-              <widget class="QLabel" name="label_52">
2720
+              <widget class="QDoubleSpinBox" name="decSpinBox">
2652
                <property name="geometry">
2721
                <property name="geometry">
2653
                 <rect>
2722
                 <rect>
2654
-                 <x>10</x>
2655
-                 <y>180</y>
2656
-                 <width>191</width>
2723
+                 <x>790</x>
2724
+                 <y>635</y>
2725
+                 <width>101</width>
2657
                  <height>31</height>
2726
                  <height>31</height>
2658
                 </rect>
2727
                 </rect>
2659
                </property>
2728
                </property>
2660
-               <property name="text">
2661
-                <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Comments and field notes&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
2729
+               <property name="decimals">
2730
+                <number>1</number>
2662
                </property>
2731
                </property>
2663
-              </widget>
2664
-              <widget class="QTextBrowser" name="txtComments">
2665
-               <property name="geometry">
2666
-                <rect>
2667
-                 <x>30</x>
2668
-                 <y>220</y>
2669
-                 <width>881</width>
2670
-                 <height>631</height>
2671
-                </rect>
2732
+               <property name="minimum">
2733
+                <double>-90.000000000000000</double>
2672
                </property>
2734
                </property>
2673
-               <property name="readOnly">
2674
-                <bool>false</bool>
2735
+               <property name="maximum">
2736
+                <double>90.000000000000000</double>
2737
+               </property>
2738
+               <property name="value">
2739
+                <double>0.000000000000000</double>
2675
                </property>
2740
                </property>
2676
               </widget>
2741
               </widget>
2677
-              <widget class="QTimeEdit" name="timeEdit">
2742
+              <widget class="QDoubleSpinBox" name="incSpinBox">
2678
                <property name="geometry">
2743
                <property name="geometry">
2679
                 <rect>
2744
                 <rect>
2680
-                 <x>140</x>
2681
-                 <y>110</y>
2682
-                 <width>118</width>
2683
-                 <height>29</height>
2745
+                 <x>790</x>
2746
+                 <y>595</y>
2747
+                 <width>101</width>
2748
+                 <height>31</height>
2684
                 </rect>
2749
                 </rect>
2685
                </property>
2750
                </property>
2686
-               <property name="calendarPopup">
2687
-                <bool>true</bool>
2751
+               <property name="decimals">
2752
+                <number>1</number>
2753
+               </property>
2754
+               <property name="minimum">
2755
+                <double>-90.000000000000000</double>
2756
+               </property>
2757
+               <property name="maximum">
2758
+                <double>90.000000000000000</double>
2759
+               </property>
2760
+               <property name="value">
2761
+                <double>45.000000000000000</double>
2688
                </property>
2762
                </property>
2689
               </widget>
2763
               </widget>
2690
-              <widget class="QDateEdit" name="dateEdit">
2764
+              <widget class="QLabel" name="label_51">
2691
                <property name="geometry">
2765
                <property name="geometry">
2692
                 <rect>
2766
                 <rect>
2693
-                 <x>140</x>
2694
-                 <y>70</y>
2695
-                 <width>112</width>
2696
-                 <height>29</height>
2767
+                 <x>670</x>
2768
+                 <y>680</y>
2769
+                 <width>111</width>
2770
+                 <height>20</height>
2697
                 </rect>
2771
                 </rect>
2698
                </property>
2772
                </property>
2699
-               <property name="calendarPopup">
2700
-                <bool>true</bool>
2773
+               <property name="text">
2774
+                <string>B Intensity [nT]</string>
2701
                </property>
2775
                </property>
2702
               </widget>
2776
               </widget>
2703
-              <widget class="QLabel" name="label_50">
2777
+              <widget class="QLabel" name="label_57">
2704
                <property name="geometry">
2778
                <property name="geometry">
2705
                 <rect>
2779
                 <rect>
2706
-                 <x>24</x>
2707
-                 <y>117</y>
2708
-                 <width>81</width>
2780
+                 <x>670</x>
2781
+                 <y>560</y>
2782
+                 <width>121</width>
2709
                  <height>16</height>
2783
                  <height>16</height>
2710
                 </rect>
2784
                 </rect>
2711
                </property>
2785
                </property>
2712
                <property name="text">
2786
                <property name="text">
2713
-                <string>Survey time</string>
2787
+                <string>Magnetic field</string>
2714
                </property>
2788
                </property>
2715
               </widget>
2789
               </widget>
2716
-              <widget class="QDoubleSpinBox" name="tempSpinBox">
2790
+              <widget class="Line" name="line_3">
2717
                <property name="geometry">
2791
                <property name="geometry">
2718
                 <rect>
2792
                 <rect>
2719
-                 <x>140</x>
2720
-                 <y>30</y>
2721
-                 <width>111</width>
2722
-                 <height>29</height>
2793
+                 <x>670</x>
2794
+                 <y>540</y>
2795
+                 <width>251</width>
2796
+                 <height>20</height>
2723
                 </rect>
2797
                 </rect>
2724
                </property>
2798
                </property>
2725
-               <property name="value">
2726
-                <double>20.000000000000000</double>
2799
+               <property name="orientation">
2800
+                <enum>Qt::Horizontal</enum>
2727
                </property>
2801
                </property>
2728
               </widget>
2802
               </widget>
2729
              </widget>
2803
              </widget>
2734
            <attribute name="title">
2808
            <attribute name="title">
2735
             <string>Kernel calc</string>
2809
             <string>Kernel calc</string>
2736
            </attribute>
2810
            </attribute>
2737
-           <widget class="QTableWidget" name="loopTableWidget">
2738
-            <property name="geometry">
2739
-             <rect>
2740
-              <x>20</x>
2741
-              <y>70</y>
2742
-              <width>441</width>
2743
-              <height>271</height>
2744
-             </rect>
2745
-            </property>
2746
-            <property name="toolTip">
2747
-             <string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;This table is used to enter coil geometries the format is as follows: each row specifies a single point on a coil. The first column is the coil index (using the GMR channel is useful), the next three colums specify the point in Northing, Easting, and Elevation. These can either be local coordinates or global ones. The final column specifies the loop radius if it is a circle or figure 8, for non circular or figure 8 loops leave this column blank. For figure-8 loops the coils do not need to be touching (see Irons and Kass, 2017). If a given index has 1 row it will be a circular loop, two rows will be a figure 8, and more than that will be a polygonal representation of the points, linearlly interpolated between them. &lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
2748
-            </property>
2749
-           </widget>
2750
            <widget class="Line" name="line_2">
2811
            <widget class="Line" name="line_2">
2751
             <property name="geometry">
2812
             <property name="geometry">
2752
              <rect>
2813
              <rect>
2760
              <enum>Qt::Horizontal</enum>
2821
              <enum>Qt::Horizontal</enum>
2761
             </property>
2822
             </property>
2762
            </widget>
2823
            </widget>
2763
-           <widget class="QLabel" name="label_54">
2764
-            <property name="geometry">
2765
-             <rect>
2766
-              <x>20</x>
2767
-              <y>40</y>
2768
-              <width>91</width>
2769
-              <height>16</height>
2770
-             </rect>
2771
-            </property>
2772
-            <property name="text">
2773
-             <string>Surface loops</string>
2774
-            </property>
2775
-           </widget>
2776
-           <widget class="MyDynamicMplCanvas" name="mplwidget_3" native="true">
2824
+           <widget class="MyDynamicMplCanvas" name="mplwidget_4" native="true">
2777
             <property name="geometry">
2825
             <property name="geometry">
2778
              <rect>
2826
              <rect>
2779
               <x>480</x>
2827
               <x>480</x>
3098
              <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
3146
              <string>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.0//EN&quot; &quot;http://www.w3.org/TR/REC-html40/strict.dtd&quot;&gt;
3099
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
3147
 &lt;html&gt;&lt;head&gt;&lt;meta name=&quot;qrichtext&quot; content=&quot;1&quot; /&gt;&lt;style type=&quot;text/css&quot;&gt;
3100
 p, li { white-space: pre-wrap; }
3148
 p, li { white-space: pre-wrap; }
3101
-&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Sans Serif'; font-size:9pt; font-weight:400; font-style:normal;&quot;&gt;
3102
-&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;All processing steps are recorded here for your records&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
3149
+&lt;/style&gt;&lt;/head&gt;&lt;body style=&quot; font-family:'Ubuntu'; font-size:11pt; font-weight:400; font-style:normal;&quot;&gt;
3150
+&lt;p style=&quot; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;&quot;&gt;&lt;span style=&quot; font-family:'Sans Serif'; font-size:9pt;&quot;&gt;All processing steps are recorded here for your records&lt;/span&gt;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
3103
             </property>
3151
             </property>
3104
            </widget>
3152
            </widget>
3105
            <widget class="QLabel" name="label_53">
3153
            <widget class="QLabel" name="label_53">
3130
      <x>0</x>
3178
      <x>0</x>
3131
      <y>0</y>
3179
      <y>0</y>
3132
      <width>1000</width>
3180
      <width>1000</width>
3133
-     <height>19</height>
3181
+     <height>25</height>
3134
     </rect>
3182
     </rect>
3135
    </property>
3183
    </property>
3136
    <widget class="QMenu" name="menuFile">
3184
    <widget class="QMenu" name="menuFile">

Loading…
Cancel
Save