Workaround for incorect handling of PV1_2

This commit is contained in:
2022-06-16 23:46:54 +02:00
parent c346487504
commit 46215c7a7d
+2 -1
View File
@@ -174,7 +174,8 @@ int loadFITSHeader(fitsfile *file, ImageInfoData &info)
char *header = nullptr; char *header = nullptr;
int nrec = 0; int nrec = 0;
fits_hdr2str(file, TRUE, nullptr, 0, &header, &nrec, &status); const char *exclist[] = {"PV1_1", "PV1_2"};
fits_hdr2str(file, TRUE, (char**)exclist, 2, &header, &nrec, &status);
if(status == 0) if(status == 0)
{ {
info.wcs = std::make_shared<WCSData>(naxes[0], naxes[1], header, nrec); info.wcs = std::make_shared<WCSData>(naxes[0], naxes[1], header, nrec);