-
Notifications
You must be signed in to change notification settings - Fork 1
/
PreferencesWindow.ui
575 lines (575 loc) · 18.5 KB
/
PreferencesWindow.ui
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
<?xml version="1.0" encoding="UTF-8"?>
<ui version="4.0">
<class>Dialog</class>
<widget class="QDialog" name="Dialog">
<property name="geometry">
<rect>
<x>0</x>
<y>0</y>
<width>894</width>
<height>529</height>
</rect>
</property>
<property name="minimumSize">
<size>
<width>894</width>
<height>529</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>894</width>
<height>529</height>
</size>
</property>
<property name="windowTitle">
<string>Preferences</string>
</property>
<layout class="QGridLayout" name="gridLayout_6">
<item row="0" column="0">
<widget class="QGroupBox" name="groupBox_3">
<property name="minimumSize">
<size>
<width>431</width>
<height>261</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>431</width>
<height>9999</height>
</size>
</property>
<property name="title">
<string>Pre-Calibration of Flat Files</string>
</property>
<layout class="QGridLayout" name="gridLayout_4">
<property name="verticalSpacing">
<number>8</number>
</property>
<item row="9" column="0" colspan="2">
<widget class="QLabel" name="precalibrationPathDisplay">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="text">
<string><html><head/><body><p><span style=" font-size:9pt;">File name is echoed here<br/>second line</span></p></body></html></string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="3" column="3">
<spacer name="horizontalSpacer_2">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>31</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item row="8" column="0" colspan="2">
<widget class="QRadioButton" name="FixedPreCalFileRB">
<property name="toolTip">
<string>Use fixed bias file specified here for precalibration</string>
</property>
<property name="text">
<string>Fixed Bias or Flat File:</string>
</property>
</widget>
</item>
<item row="1" column="0" colspan="3">
<widget class="QRadioButton" name="fixedPedestalRB">
<property name="toolTip">
<string>Precalibrate by subtracting given constant pedestal value from every pixel</string>
</property>
<property name="text">
<string>Subtract fixed pedestal amount:</string>
</property>
</widget>
</item>
<item row="1" column="4">
<widget class="QLineEdit" name="fixedPedestalAmount">
<property name="toolTip">
<string>Pedestal value to subtract</string>
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="horizontalSpacer_6">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>48</width>
<height>19</height>
</size>
</property>
</spacer>
</item>
<item row="2" column="0" colspan="3">
<widget class="QRadioButton" name="autoPreCalibrationRB">
<property name="toolTip">
<string>Automatically choose a matching Bias or Flat file from a directory of Bias files</string>
</property>
<property name="text">
<string>Best Bias or Flat from Directory</string>
</property>
</widget>
</item>
<item row="3" column="0">
<spacer name="horizontalSpacer_5">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>48</width>
<height>19</height>
</size>
</property>
</spacer>
</item>
<item row="4" column="2">
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>45</width>
<height>19</height>
</size>
</property>
</spacer>
</item>
<item row="8" column="4">
<widget class="QPushButton" name="selectPreCalFile">
<property name="text">
<string>Set File</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QRadioButton" name="noPreClalibrationRB">
<property name="toolTip">
<string>No precalibration</string>
</property>
<property name="text">
<string>No pre-calibration</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QCheckBox" name="autoBiasOnly">
<property name="text">
<string>Dark && Bias files only</string>
</property>
</widget>
</item>
<item row="7" column="0" colspan="2">
<widget class="QLabel" name="autoDirectoryName">
<property name="text">
<string><html><head/><body><p><span style=" font-size:9pt;">Directory name echoed here<br/>second line</span></p></body></html></string>
</property>
<property name="alignment">
<set>Qt::AlignLeading|Qt::AlignLeft|Qt::AlignTop</set>
</property>
<property name="wordWrap">
<bool>true</bool>
</property>
</widget>
</item>
<item row="2" column="4">
<widget class="QPushButton" name="setAutoDirectory">
<property name="toolTip">
<string>Set the directory containing the calibration Bias files</string>
</property>
<property name="text">
<string>Set Directory</string>
</property>
<property name="autoDefault">
<bool>false</bool>
</property>
</widget>
</item>
<item row="3" column="1" colspan="2">
<widget class="QCheckBox" name="autoRecursive">
<property name="text">
<string>Include sub-directories</string>
</property>
</widget>
</item>
<item row="6" column="0">
<spacer name="horizontalSpacer_7">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeType">
<enum>QSizePolicy::Fixed</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>48</width>
<height>19</height>
</size>
</property>
</spacer>
</item>
<item row="6" column="1">
<widget class="QCheckBox" name="displayAutoResultsCB">
<property name="toolTip">
<string>Display, in the console, the exposure and temperature match of the selected best calibration file.</string>
</property>
<property name="text">
<string>Display specs of selected file</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="0" column="1">
<widget class="QGroupBox" name="groupBox">
<property name="minimumSize">
<size>
<width>431</width>
<height>281</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>431</width>
<height>281</height>
</size>
</property>
<property name="title">
<string>Process Multiple Files at Once, Grouped by Attribute</string>
</property>
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="1">
<widget class="QLineEdit" name="temperatureGroupBandwidth">
<property name="maximumSize">
<size>
<width>41</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>Make groups where temperatures are within this much on either side of the group centre.</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QCheckBox" name="groupByTemperatureCB">
<property name="toolTip">
<string>Process sets of files having different CCD temperatures</string>
</property>
<property name="text">
<string>Group by Temperature, width:</string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLineEdit" name="minimumGroupSize">
<property name="maximumSize">
<size>
<width>41</width>
<height>21</height>
</size>
</property>
<property name="toolTip">
<string>Minimum number of files to be processed in a group.</string>
</property>
</widget>
</item>
<item row="0" column="0" colspan="2">
<widget class="QCheckBox" name="groupBySizeCB">
<property name="toolTip">
<string>Process sets of files having different dimensions or binnings</string>
</property>
<property name="text">
<string>Group by Size (dimensions and binning)</string>
</property>
</widget>
</item>
<item row="3" column="0">
<widget class="QCheckBox" name="ignoreSmallGroupsCB">
<property name="toolTip">
<string>Don't process groups that have fewer than the given number of members.</string>
</property>
<property name="text">
<string>Ignore groups with fewer than:</string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLabel" name="label_9">
<property name="text">
<string>files</string>
</property>
</widget>
</item>
<item row="4" column="0">
<spacer name="verticalSpacer">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>51</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="0">
<widget class="QCheckBox" name="groupByFilterCB">
<property name="toolTip">
<string>Process all files with the same filter name in a group</string>
</property>
<property name="text">
<string>Group by Filter</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="0">
<widget class="QGroupBox" name="CombineMethod">
<property name="minimumSize">
<size>
<width>428</width>
<height>150</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>428</width>
<height>150</height>
</size>
</property>
<property name="title">
<string>Default Combination Algorithm</string>
</property>
<layout class="QGridLayout" name="gridLayout">
<item row="0" column="0">
<widget class="QRadioButton" name="combineMeanRB">
<property name="toolTip">
<string>Simple mean. Best signal-to-noise, but outliers (satellites etc) will show up.</string>
</property>
<property name="text">
<string>Mean</string>
</property>
<attribute name="buttonGroup">
<string notr="true">combineMethodGroup</string>
</attribute>
</widget>
</item>
<item row="2" column="2">
<widget class="QLineEdit" name="minMaxNumDropped">
<property name="toolTip">
<string><html><head/><body><p>How many min and max values are dropped? (1 = drop all instances of the max and all instances of the min; 2 = all instances of max and next-to-max and all instances of 2 min values, etc.)</p></body></html></string>
</property>
</widget>
</item>
<item row="3" column="2">
<widget class="QLineEdit" name="sigmaThreshold">
<property name="toolTip">
<string><html><head/><body><p>Sigma ratio (how many standard deviations the value is from the mean) beyond which data are dropped. Try 2.0 then experiment.</p></body></html></string>
</property>
</widget>
</item>
<item row="3" column="1">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Sigma rejection threshold</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QRadioButton" name="combineMedianRB">
<property name="toolTip">
<string>Simple median. Rejects outliers, but signal-to-noise not as good as with Mean.</string>
</property>
<property name="text">
<string>Median</string>
</property>
<attribute name="buttonGroup">
<string notr="true">combineMethodGroup</string>
</attribute>
</widget>
</item>
<item row="2" column="1">
<widget class="QLabel" name="label_2">
<property name="text">
<string># Dropped from each end</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QRadioButton" name="combineMinMaxRB">
<property name="toolTip">
<string>Drop min and max values, then Mean. Works well when outliers are hot or black pixels.</string>
</property>
<property name="text">
<string>Min/Max Clip</string>
</property>
<attribute name="buttonGroup">
<string notr="true">combineMethodGroup</string>
</attribute>
</widget>
</item>
<item row="3" column="0">
<widget class="QRadioButton" name="combineSigmaRB">
<property name="toolTip">
<string>Drop pixels more than a given sigma ratio from the mean, then mean the rest. Good rejection of anomalous data.</string>
</property>
<property name="text">
<string>Sigma Clip</string>
</property>
<attribute name="buttonGroup">
<string notr="true">combineMethodGroup</string>
</attribute>
</widget>
</item>
</layout>
</widget>
</item>
<item row="1" column="1">
<widget class="QGroupBox" name="groupBox_2">
<property name="minimumSize">
<size>
<width>431</width>
<height>95</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>431</width>
<height>151</height>
</size>
</property>
<property name="title">
<string>Disposition of Input Files after Successful Combine</string>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="1" column="0">
<widget class="QRadioButton" name="dispositionSubFolderRB">
<property name="toolTip">
<string>Move the input files to a sub-folder (in the same directory as the input files) with the given name</string>
</property>
<property name="text">
<string>Move to Sub-Folder Named:</string>
</property>
<attribute name="buttonGroup">
<string notr="true">dispositionGroup</string>
</attribute>
</widget>
</item>
<item row="2" column="0">
<spacer name="verticalSpacer_2">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>42</height>
</size>
</property>
</spacer>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="subFolderName">
<property name="toolTip">
<string><html><head/><body><p>Name for the folder to move the processed files. Optionally this name can contain %d, %t, or %f, which will be replaced by the date, time, and filter name, respectively.</p></body></html></string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QRadioButton" name="dispositionNothingRB">
<property name="toolTip">
<string>Leave the input files alone.</string>
</property>
<property name="text">
<string>Do Nothing</string>
</property>
<attribute name="buttonGroup">
<string notr="true">dispositionGroup</string>
</attribute>
</widget>
</item>
</layout>
</widget>
</item>
<item row="2" column="0">
<widget class="QWidget" name="widget" native="true">
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="0">
<widget class="QPushButton" name="closeButton">
<property name="text">
<string>Close</string>
</property>
</widget>
</item>
<item row="0" column="1">
<spacer name="horizontalSpacer">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>335</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</widget>
</item>
<item row="2" column="1">
<widget class="QCheckBox" name="displayAverageADUs">
<property name="toolTip">
<string>Display the ADU level for each flat frame.</string>
</property>
<property name="text">
<string>Display average ADUs value of files (slows down opening)</string>
</property>
</widget>
</item>
</layout>
</widget>
<resources/>
<connections/>
<buttongroups>
<buttongroup name="dispositionGroup"/>
<buttongroup name="combineMethodGroup"/>
</buttongroups>
</ui>