astrodatagui: rework plot options

This commit is contained in:
2024-03-14 14:13:02 +01:00
parent b1dafb1ca2
commit 0c6963aded
+672 -267
View File
@@ -161,16 +161,22 @@
<layout class="QVBoxLayout" name="verticalLayout_2"> <layout class="QVBoxLayout" name="verticalLayout_2">
<item> <item>
<widget class="QListWidget" name="listSequences"> <widget class="QListWidget" name="listSequences">
<property name="sizePolicy">
<sizepolicy hsizetype="Expanding" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize"> <property name="minimumSize">
<size> <size>
<width>200</width> <width>200</width>
<height>200</height> <height>0</height>
</size> </size>
</property> </property>
<property name="maximumSize"> <property name="maximumSize">
<size> <size>
<width>200</width> <width>200</width>
<height>1000</height> <height>500</height>
</size> </size>
</property> </property>
</widget> </widget>
@@ -224,247 +230,646 @@
</property> </property>
<layout class="QVBoxLayout" name="verticalLayout_6"> <layout class="QVBoxLayout" name="verticalLayout_6">
<item> <item>
<widget class="QCheckBox" name="cbEnableNormalize"> <layout class="QHBoxLayout" name="horizontalLayout_4">
<property name="text"> <item>
<string>Normalize</string> <layout class="QVBoxLayout" name="verticalLayout_10">
</property> <item>
</widget> <layout class="QHBoxLayout" name="horizontalLayout_7">
</item> <item>
<item> <widget class="QLabel" name="label_19">
<widget class="QCheckBox" name="cbEnableFlattenPlot"> <property name="sizePolicy">
<property name="text"> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<string>Flatten</string> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
</widget> </sizepolicy>
</item> </property>
<item> <property name="text">
<widget class="QCheckBox" name="cbEnableRemoveOutliers"> <string>Flux: </string>
<property name="text"> </property>
<string>Remove outliers</string> </widget>
</property> </item>
</widget> <item>
</item> <widget class="QComboBox" name="comboPlotFluxType">
<item> <property name="sizePolicy">
<widget class="QCheckBox" name="cbEnableRemoveNans"> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<property name="text"> <horstretch>0</horstretch>
<string>Remove nans/infs</string> <verstretch>0</verstretch>
</property> </sizepolicy>
</widget> </property>
</item> <item>
<item> <property name="text">
<widget class="QGroupBox" name="groupBox_5"> <string>sap_flux</string>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> </item>
<horstretch>0</horstretch> <item>
<verstretch>0</verstretch> <property name="text">
</sizepolicy> <string>pdcsap_flux</string>
</property> </property>
<property name="title"> </item>
<string>Fold</string> </widget>
</property> </item>
<property name="checkable"> </layout>
<bool>false</bool> </item>
</property> <item>
<property name="checked"> <spacer name="verticalSpacer_6">
<bool>false</bool> <property name="orientation">
</property> <enum>Qt::Vertical</enum>
<layout class="QGridLayout" name="gridLayout_3"> </property>
<item row="0" column="0"> <property name="sizeHint" stdset="0">
<layout class="QGridLayout" name="gridLayout_2"> <size>
<item row="2" column="0"> <width>20</width>
<widget class="QLabel" name="label_8"> <height>0</height>
<property name="sizePolicy"> </size>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> </property>
<horstretch>0</horstretch> </spacer>
<verstretch>0</verstretch> </item>
</sizepolicy> </layout>
</property> </item>
<property name="minimumSize"> <item>
<size> <widget class="Line" name="line_2">
<width>60</width> <property name="orientation">
<height>0</height> <enum>Qt::Vertical</enum>
</size> </property>
</property> </widget>
<property name="maximumSize"> </item>
<size> <item>
<width>60</width> <layout class="QVBoxLayout" name="verticalLayout_7">
<height>16777215</height> <item>
</size> <widget class="QGroupBox" name="groupBox_7">
</property> <property name="sizePolicy">
<property name="text"> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<string>Epoch Time: </string> <horstretch>0</horstretch>
</property> <verstretch>0</verstretch>
</widget> </sizepolicy>
</item> </property>
<item row="1" column="0"> <property name="title">
<widget class="QLabel" name="label_7"> <string>Normalize</string>
<property name="sizePolicy"> </property>
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <layout class="QGridLayout" name="gridLayout_6">
<horstretch>0</horstretch> <item row="0" column="1">
<verstretch>0</verstretch> <widget class="QLabel" name="label_12">
</sizepolicy> <property name="text">
</property> <string>Enable</string>
<property name="minimumSize"> </property>
<size> </widget>
<width>60</width> </item>
<height>0</height> <item row="0" column="0">
</size> <widget class="QCheckBox" name="cbPlotNormalizeEnable">
</property> <property name="text">
<property name="maximumSize"> <string/>
<size> </property>
<width>60</width> </widget>
<height>16777215</height> </item>
</size> <item row="1" column="0">
</property> <widget class="QLabel" name="label_13">
<property name="text"> <property name="sizePolicy">
<string>Period: </string> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
</property> <horstretch>0</horstretch>
</widget> <verstretch>0</verstretch>
</item> </sizepolicy>
<item row="1" column="1"> </property>
<widget class="QLineEdit" name="edFoldPeriod"> <property name="text">
<property name="sizePolicy"> <string>Unit:</string>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> </property>
<horstretch>0</horstretch> </widget>
<verstretch>0</verstretch> </item>
</sizepolicy> <item row="1" column="1">
</property> <widget class="QComboBox" name="comboPlotNormalizeUnit">
<property name="minimumSize"> <item>
<size> <property name="text">
<width>60</width> <string>unscaled</string>
<height>0</height> </property>
</size> </item>
</property> <item>
<property name="maximumSize"> <property name="text">
<size> <string>percent</string>
<width>60</width> </property>
<height>16777215</height> </item>
</size> <item>
</property> <property name="text">
</widget> <string>ppt</string>
</item> </property>
<item row="2" column="1"> </item>
<widget class="QLineEdit" name="edFoldEpochTime"> <item>
<property name="sizePolicy"> <property name="text">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> <string>ppm</string>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </item>
</sizepolicy> </widget>
</property> </item>
<property name="minimumSize"> </layout>
<size> </widget>
<width>60</width> </item>
<height>0</height> <item>
</size> <widget class="QGroupBox" name="groupBox_9">
</property> <property name="sizePolicy">
<property name="maximumSize"> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<size> <horstretch>0</horstretch>
<width>60</width> <verstretch>0</verstretch>
<height>16777215</height> </sizepolicy>
</size> </property>
</property> <property name="title">
</widget> <string>Remove Outliers</string>
</item> </property>
<item row="0" column="0"> <layout class="QGridLayout" name="gridLayout_8">
<widget class="QCheckBox" name="cbEnableFold"> <item row="0" column="0">
<property name="text"> <widget class="QCheckBox" name="cbPlotRemoveOutliersEnable">
<string/> <property name="text">
</property> <string/>
</widget> </property>
</item> </widget>
<item row="0" column="1"> </item>
<widget class="QLabel" name="label_10"> <item row="0" column="1">
<property name="text"> <widget class="QLabel" name="label_17">
<string>Enable</string> <property name="text">
</property> <string>Enable</string>
</widget> </property>
</item> </widget>
</layout> </item>
</item> <item row="1" column="0">
</layout> <widget class="QLabel" name="label_18">
</widget> <property name="text">
</item> <string>Sigma: </string>
<item> </property>
<widget class="QGroupBox" name="groupBox_6"> </widget>
<property name="sizePolicy"> </item>
<sizepolicy hsizetype="Preferred" vsizetype="Preferred"> <item row="1" column="1">
<horstretch>0</horstretch> <widget class="QDoubleSpinBox" name="sbRemoveOutliersSigma">
<verstretch>0</verstretch> <property name="decimals">
</sizepolicy> <number>1</number>
</property> </property>
<property name="title"> <property name="maximum">
<string>Bin</string> <double>10.000000000000000</double>
</property> </property>
<property name="checkable"> <property name="singleStep">
<bool>false</bool> <double>0.100000000000000</double>
</property> </property>
<property name="checked"> <property name="value">
<bool>false</bool> <double>5.000000000000000</double>
</property> </property>
<layout class="QGridLayout" name="gridLayout_5"> </widget>
<item row="1" column="1"> </item>
<widget class="QLineEdit" name="edBinSize"> </layout>
<property name="sizePolicy"> </widget>
<sizepolicy hsizetype="Fixed" vsizetype="Fixed"> </item>
<horstretch>0</horstretch> <item>
<verstretch>0</verstretch> <widget class="QGroupBox" name="groupBox_11">
</sizepolicy> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<property name="minimumSize"> <horstretch>0</horstretch>
<size> <verstretch>0</verstretch>
<width>60</width> </sizepolicy>
<height>0</height> </property>
</size> <property name="title">
</property> <string>Remove nans/infs</string>
<property name="maximumSize"> </property>
<size> <layout class="QGridLayout" name="gridLayout_10">
<width>60</width> <item row="0" column="0">
<height>16777215</height> <widget class="QCheckBox" name="cbPlotRemoveNansEnable">
</size> <property name="sizePolicy">
</property> <sizepolicy hsizetype="Minimum" vsizetype="Maximum">
</widget> <horstretch>0</horstretch>
</item> <verstretch>0</verstretch>
<item row="1" column="0"> </sizepolicy>
<widget class="QLabel" name="label_9"> </property>
<property name="sizePolicy"> <property name="text">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred"> <string/>
<horstretch>0</horstretch> </property>
<verstretch>0</verstretch> </widget>
</sizepolicy> </item>
</property> <item row="0" column="1">
<property name="minimumSize"> <widget class="QLabel" name="label_22">
<size> <property name="text">
<width>60</width> <string>Enable</string>
<height>0</height> </property>
</size> </widget>
</property> </item>
<property name="maximumSize"> </layout>
<size> </widget>
<width>60</width> </item>
<height>16777215</height> <item>
</size> <spacer name="verticalSpacer_3">
</property> <property name="orientation">
<property name="text"> <enum>Qt::Vertical</enum>
<string>Bin Size:</string> </property>
</property> <property name="sizeHint" stdset="0">
</widget> <size>
</item> <width>20</width>
<item row="0" column="1"> <height>0</height>
<widget class="QLabel" name="label_11"> </size>
<property name="text"> </property>
<string>Enable</string> </spacer>
</property> </item>
</widget> </layout>
</item> </item>
<item row="0" column="0"> <item>
<widget class="QCheckBox" name="cbEnableBin"> <layout class="QVBoxLayout" name="verticalLayout_12">
<property name="text"> <item>
<string/> <widget class="QGroupBox" name="groupBox_6">
</property> <property name="sizePolicy">
</widget> <sizepolicy hsizetype="Preferred" vsizetype="Maximum">
</item> <horstretch>0</horstretch>
</layout> <verstretch>0</verstretch>
</widget> </sizepolicy>
</property>
<property name="title">
<string>Bin</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout_5">
<item row="0" column="1">
<widget class="QLabel" name="label_11">
<property name="text">
<string>Enable</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="cbPlotBinEnable">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="edBinSize">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_9">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Bin Size:</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_7">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<widget class="Line" name="line">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
</widget>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_8">
<item>
<widget class="QGroupBox" name="groupBox_8">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Flatten</string>
</property>
<layout class="QGridLayout" name="gridLayout_7">
<item row="0" column="1">
<widget class="QLabel" name="label_14">
<property name="text">
<string>Enable</string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="edPlotFlattenWL">
<property name="maximumSize">
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>101</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="cbPlotFlattenPlotEnable">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_15">
<property name="toolTip">
<string notr="true">Window Length</string>
</property>
<property name="text">
<string>WL:</string>
</property>
</widget>
</item>
<item row="2" column="0">
<widget class="QLabel" name="label_16">
<property name="toolTip">
<string notr="true">Polynomial Order</string>
</property>
<property name="text">
<string>PO:</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="edPlotFlattenPO">
<property name="maximumSize">
<size>
<width>50</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>2</string>
</property>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<widget class="QGroupBox" name="groupBox_5">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Fold</string>
</property>
<property name="checkable">
<bool>false</bool>
</property>
<property name="checked">
<bool>false</bool>
</property>
<layout class="QGridLayout" name="gridLayout_3">
<item row="0" column="0">
<layout class="QGridLayout" name="gridLayout_2">
<item row="2" column="0">
<widget class="QLabel" name="label_8">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Epoch Time: </string>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_7">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>Period: </string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QLineEdit" name="edPlotFoldPeriod">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>1</string>
</property>
</widget>
</item>
<item row="2" column="1">
<widget class="QLineEdit" name="edPlotFoldEpochTime">
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Fixed">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="minimumSize">
<size>
<width>60</width>
<height>0</height>
</size>
</property>
<property name="maximumSize">
<size>
<width>60</width>
<height>16777215</height>
</size>
</property>
<property name="text">
<string>0</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="cbPlotFoldEnable">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="0" column="1">
<widget class="QLabel" name="label_10">
<property name="text">
<string>Enable</string>
</property>
</widget>
</item>
</layout>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_4">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
<item>
<layout class="QVBoxLayout" name="verticalLayout_9">
<item>
<widget class="QGroupBox" name="groupBox_10">
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Maximum">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="title">
<string>Periodogram</string>
</property>
<layout class="QGridLayout" name="gridLayout_9">
<item row="0" column="1">
<widget class="QLabel" name="label_20">
<property name="text">
<string>Enable</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QCheckBox" name="cbPlotPeriodogramEnable">
<property name="text">
<string/>
</property>
</widget>
</item>
<item row="1" column="0">
<widget class="QLabel" name="label_21">
<property name="text">
<string>Method: </string>
</property>
</widget>
</item>
<item row="1" column="1">
<widget class="QComboBox" name="comboPlotPeriodogramMethod">
<item>
<property name="text">
<string>lombscargle</string>
</property>
</item>
<item>
<property name="text">
<string>boxleastsquares</string>
</property>
</item>
</widget>
</item>
</layout>
</widget>
</item>
<item>
<spacer name="verticalSpacer_5">
<property name="orientation">
<enum>Qt::Vertical</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>20</width>
<height>0</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</item> </item>
<item> <item>
<spacer name="verticalSpacer_2"> <spacer name="verticalSpacer_2">
@@ -503,10 +908,17 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0"> <item row="3" column="1">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="lbRotVel">
<property name="text"> <property name="text">
<string>Alt. IDs:</string> <string>-</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="lbDistance">
<property name="text">
<string>-</string>
</property> </property>
</widget> </widget>
</item> </item>
@@ -517,13 +929,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Main ID: </string>
</property>
</widget>
</item>
<item row="4" column="0"> <item row="4" column="0">
<widget class="QLabel" name="label_6"> <widget class="QLabel" name="label_6">
<property name="text"> <property name="text">
@@ -531,6 +936,20 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="1" column="0">
<widget class="QLabel" name="label_3">
<property name="text">
<string>Alt. IDs:</string>
</property>
</widget>
</item>
<item row="0" column="0">
<widget class="QLabel" name="label_2">
<property name="text">
<string>Main ID: </string>
</property>
</widget>
</item>
<item row="0" column="1"> <item row="0" column="1">
<widget class="QLabel" name="lbMainID"> <widget class="QLabel" name="lbMainID">
<property name="text"> <property name="text">
@@ -555,20 +974,6 @@
</property> </property>
</widget> </widget>
</item> </item>
<item row="3" column="1">
<widget class="QLabel" name="lbRotVel">
<property name="text">
<string>-</string>
</property>
</widget>
</item>
<item row="4" column="1">
<widget class="QLabel" name="lbDistance">
<property name="text">
<string>-</string>
</property>
</widget>
</item>
</layout> </layout>
</item> </item>
</layout> </layout>