From 46215c7a7d84c8d33ae0285377803944f6125bf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Du=C5=A1an=20Poizl?= Date: Thu, 16 Jun 2022 23:46:54 +0200 Subject: [PATCH] Workaround for incorect handling of PV1_2 --- loadrunable.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/loadrunable.cpp b/loadrunable.cpp index 02513c0..b5e3298 100644 --- a/loadrunable.cpp +++ b/loadrunable.cpp @@ -174,7 +174,8 @@ int loadFITSHeader(fitsfile *file, ImageInfoData &info) char *header = nullptr; 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) { info.wcs = std::make_shared(naxes[0], naxes[1], header, nrec);