Skip to content

Commit

Permalink
Change display system to QGraphicsView + processing FCI L1c data
Browse files Browse the repository at this point in the history
  • Loading branch information
hvanruys committed Jul 15, 2023
1 parent 42b535c commit c061a2f
Show file tree
Hide file tree
Showing 23 changed files with 5,833 additions and 5,269 deletions.
3 changes: 0 additions & 3 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,6 @@ set(PROJECT_SOURCES_CPP
segmentlistviirsm.cpp
poi.cpp
equirectangular.cpp
infrascales.cpp
infrawidget.cpp
forminfrascales.cpp
qcustomplot.cpp
segmentlistolci.cpp
segmentolci.cpp
Expand Down
166 changes: 102 additions & 64 deletions core/avhrrsatellite.cpp

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions core/avhrrsatellite.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,8 @@ class AVHRRSatellite : public QObject

QList<SegmentListGeostationary *> seglgeo;
QList<QMap<QString, QMap<QString, QMap< int, QFileInfo > > > > segmentlistmapgeo;
QMap<QString, QMap<int, QMap< int, QFileInfo > > > segmentlistmapgeomtgi1;
QMap<int, QMap< int, QFileInfo > > segmentlistmapgeomtgi1;
QDate selectiondate;


private:
Expand All @@ -156,8 +157,8 @@ class AVHRRSatellite : public QObject
QDate seldate, int hoursbefore);
void RemoveFromList(QList<Segment*> *sl);
void CreateListfromXML(QDomDocument document);
void getFilenameParameters(int geosatindex, QString filename, QString &strspectrum, QString &strdate, int &filenbr);
void getFilenameParametersMTGI1(QString filename, QString &strdate, int &filenbr, int &seqnbr);
void getFilenameParameters(int geosatindex, QString filename, QString *strspectrum, QString *strdate, int *filenbr);
void getFilenameParametersMTGI1(QString filename, QString *strdate, int *filenbr, int *seqnbr);

DatahubAccessManager hubmanager;
QDate xmlselectdate;
Expand Down
285 changes: 265 additions & 20 deletions core/formgeostationary.cpp

Large diffs are not rendered by default.

18 changes: 11 additions & 7 deletions core/formgeostationary.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,16 @@

#include <QWidget>
#include <QTreeWidget>
#include "formmapcyl.h"
#include "satellite.h"
#include "avhrrsatellite.h"
#include "msgfileaccess.h"
#include "msgdataaccess.h"
#include "formtoolbox.h"
//#include "msgfileaccess.h"
//#include "msgdataaccess.h"
#include "formimage.h"
//#include "formtoolbox.h"

class FormImage;
class FormToolbox;

namespace Ui {
class FormGeostationary;
Expand All @@ -32,19 +34,21 @@ class FormGeostationary : public QWidget
SegmentListGeostationary *setActiveSegmentList(int geoindex);
SegmentListGeostationary *getActiveSegmentList();
int getTabWidgetGeoIndex();
//void ComposeGeoRGBRecipe(bandstorage &bs);

void getTimeFromFilenbr(int filenbr, QString *strtime);
~FormGeostationary();

private:
QStringList getGeostationarySegments(int geoindex, const QString imagetype, const QString filepath, QVector<QString> spectrumvector, QString filepattern);
QStringList getGeostationarySegmentsMTG(int geoindex, const QString imagetype, const QString filepath, int filenbr);
void PopulateTreeGeo(int geoindex);
void PopulateTreeGeoMTGI1();
void PopulateTreeGeoMTGI1(int geoindex);

void CreateGeoImageXRIT(SegmentListGeostationary *sl, QString type, QString tex, QVector<QString> spectrumvector, QVector<bool> inversevector, int histogrammethod);
void CreateGeoImageHDF(SegmentListGeostationary *sl, QString type, QString tex, QVector<QString> spectrumvector, QVector<bool> inversevector);
void CreateGeoImagenetCDF(SegmentListGeostationary *sl, QString type, QString tex, QVector<QString> spectrumvector, QVector<bool> inversevector, int histogrammethod, bool pseudocolor);

void CreateGeoImagenetCDFMTG(SegmentListGeostationary *sl, QString type, QString tex, QVector<QString> spectrumvector, QVector<bool> inversevector, int histogrammethod, bool pseudocolor);
void CreateGeoImageMSG(QString type, QVector<QString> spectrumvector, QVector<bool> inversevector, int histogrammethod, bool pseudocolor, QString tex, int geoindex);
void CreateGeoImageMTG(QString type, QVector<QString> spectrumvector, QVector<bool> inversevector,int histogrammethod, bool pseudocolor, QString tex, int geoindex);
Ui::FormGeostationary *ui;
AVHRRSatellite *segs;
SatelliteList *sats;
Expand Down
Loading

0 comments on commit c061a2f

Please sign in to comment.