Workaround for incorect handling of PV1_2
This commit is contained in:
+2
-1
@@ -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<WCSData>(naxes[0], naxes[1], header, nrec);
|
||||
|
||||
Reference in New Issue
Block a user