Adding platesolving

This commit is contained in:
2024-09-30 18:39:35 +02:00
parent dccb2e88da
commit 32973c54ce
16 changed files with 1075 additions and 210 deletions
+13
View File
@@ -31,8 +31,19 @@ public:
SkyPoint(double ra, double dec);
void set(double ra, double dec);
double RA() const { return ra; }
double RAHour() const { return ra / 15.0; }
double DEC() const { return dec; }
QString toString() const;
static double fromHMS(const QString &hms);
static double fromDMS(const QString &dms);
};
struct SkyPointScale
{
SkyPoint point;
//arcsec per pixel
double scaleLow = 0.0;
double scaleHigh = 10000.0;
};
class WCSDataT
@@ -51,6 +62,7 @@ public:
bool worldToPixel(const SkyPoint &point, QPointF &pixel) const;
void calculateBounds(double &minRa, double &maxRa, double &minDec, double &maxDec, double &crVal1, double &crVal2) const;
bool valid() const { return wcs; };
SkyPointScale getRaDecScale() const;
};
struct ImageInfoData
@@ -58,6 +70,7 @@ struct ImageInfoData
QVector<FITSRecord> fitsHeader;
QVector<QPair<QString, QString>> info;
std::shared_ptr<WCSDataT> wcs;
SkyPointScale getCenterRaDec() const;
};
Q_DECLARE_METATYPE(ImageInfoData);