From bf84d7fbf3cd388cc4cd1c0a053651a3f1d1e4c3 Mon Sep 17 00:00:00 2001 From: Nebarnix Date: Mon, 10 Oct 2016 07:00:44 -0400 Subject: [PATCH] Add files via upload Using a listviewwidget instead of a plaintextedit box really sped up HIRS raw hex frames. --- hirs.cpp | 10 +++++++++- mainwindow.ui | 9 ++++++--- ui_mainwindow.h | 15 +++++++++++---- 3 files changed, 26 insertions(+), 8 deletions(-) diff --git a/hirs.cpp b/hirs.cpp index 2c90d83..023f0d7 100644 --- a/hirs.cpp +++ b/hirs.cpp @@ -221,10 +221,15 @@ void HIRS::plotHIRSElement(int identToPlot) void HIRS::clearAll() { + Parent->ui->HIRSElemPlot->detachItems(); + Parent->ui->HIRSScanPosPlot->detachItems(); + Parent->ui->HIRSRawPlot->detachItems(); + Parent->ui->HIRSRawHex->clear(); for(int i=0; i < HIRS_WORDS_PER_FRAME; i++) { HIRSstream[i].clear(); HIRSTime[i].clear(); + } //frameQualityList.clear; //we do need this because we need to know if we can trust the contrast/brightness calc for individual pixels } @@ -275,7 +280,10 @@ void HIRS::addHIRSFrame(uchar *HIRSBytes, float *frameTime, uchar *frameChunkQua hexStr.sprintf("%04X:%04X\t",HIRSword,HIRSstream[i].last()&0x1FFF); windowContents.append(hexStr); } - Parent->ui->HIRSRawHex->appendPlainText(windowContents); + //Parent->ui->HIRSRawHex->appendPlainText(windowContents); + + Parent->ui->HIRSRawHex->addItem(windowContents); + //frameIDList.append(frameID); //frameQualityList.append(frameGood); //frameTimeList.append(frameTime); diff --git a/mainwindow.ui b/mainwindow.ui index 38998bf..29f17ce 100644 --- a/mainwindow.ui +++ b/mainwindow.ui @@ -430,10 +430,13 @@ + + + - - - QPlainTextEdit::NoWrap + + + HIRS Raw Hex Frames : sign converted data diff --git a/ui_mainwindow.h b/ui_mainwindow.h index 9579e4c..05e02c6 100644 --- a/ui_mainwindow.h +++ b/ui_mainwindow.h @@ -18,6 +18,7 @@ #include #include #include +#include #include #include #include @@ -79,7 +80,8 @@ class Ui_MainWindow QWidget *HChans; QWidget *HChanAll; QGridLayout *gridLayout_18; - QPlainTextEdit *HIRSRawHex; + QListWidget *HIRSRawHex; + QLabel *label_26; QWidget *HTlm; QGridLayout *gridLayout_17; QLabel *label_24; @@ -408,11 +410,15 @@ class Ui_MainWindow gridLayout_18->setSpacing(6); gridLayout_18->setContentsMargins(11, 11, 11, 11); gridLayout_18->setObjectName(QStringLiteral("gridLayout_18")); - HIRSRawHex = new QPlainTextEdit(HChanAll); + HIRSRawHex = new QListWidget(HChanAll); HIRSRawHex->setObjectName(QStringLiteral("HIRSRawHex")); - HIRSRawHex->setLineWrapMode(QPlainTextEdit::NoWrap); - gridLayout_18->addWidget(HIRSRawHex, 0, 0, 1, 1); + gridLayout_18->addWidget(HIRSRawHex, 1, 0, 1, 1); + + label_26 = new QLabel(HChanAll); + label_26->setObjectName(QStringLiteral("label_26")); + + gridLayout_18->addWidget(label_26, 0, 0, 1, 1); stackedWidget->addWidget(HChanAll); HTlm = new QWidget(); @@ -840,6 +846,7 @@ class Ui_MainWindow label_5->setText(QApplication::translate("MainWindow", "

Spacecraft

There are currently three operational (as of Sept 2016) NOAA POES satellites that transmit a direct sounder broadcast on 137.350 Mhz and 137.770 Mhz

NOAA-15 : 137.350 Mhz

NOAA-18 : 137.350 Mhz

NOAA-19 : 137.770 Mhz

Sometimes NOAA-15 and NOAA-18 orbits overlap significantly resulting in overlapping transmissions, which is frustrating.

Spacecraft ID: Every minor frame contains a spacecraft ID, which is needed to properly decode the fr" "ames as NOAA-15/18 is slightly different than NOAA-19

Minor Frame ID: Every minor frame contains an ID which counts between 0 and 319 and is required to properly decommutate the subcommutated instrument data. It is also a useful plot of data quality.

Timestamps: Every major frame (minor frame 0/320) contains a day number and a clock in milliseconds. The data is useful for ephemris calculations, and the T(0) time is required for initializing the DCS geolocation model.

", 0)); label_8->setText(QApplication::translate("MainWindow", "

HIRS - High Resolution Infrared Sounder

The High Resolution Infrared Sounder subsystem scans the earth view with a constant velocity scanning mirror which directs the view orthagonal to the path of travel of the spacecraft.

The HIRS instrument measures spectral intensity over 20 different wavelengths.

Channels: Displays the per-channel data.


", 0)); + label_26->setText(QApplication::translate("MainWindow", "HIRS Raw Hex Frames : sign converted data", 0)); label_24->setText(QApplication::translate("MainWindow", "Element Number", 0)); label_25->setText(QApplication::translate("MainWindow", "Mirror Scan Position", 0)); label_17->setText(QApplication::translate("MainWindow", "Element X Data", 0));