Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CONVERT: Fix bug preventing creation of some primitive object in exte…
…nsions. This relates to importing FITS files that were once converted from an NDF. Primitive components at the top level of the NDF were being propagated correctly, but not ones lower down, such as for a FITS airlock of an NDF that itself is an extension. Such a case has arisen recently for an NELP extension, presumably created by a SCUBA-2/PICARD recipe.
- Loading branch information
1 parent
352a8ce
commit 2093fab
Showing
1 changed file
with
39 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2093fab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I do fits2ndf on the file jcmts20130128_00015_450_healpix017716_obs_000.fits downloaded from CADC (this is the problem file with the swapped RA and Dec axes that Russell spotted), I get a seg fault in cfitsio. This is caused by a previous untrapped error in DAT_NEW:
!! HDS locator invalid for import: value==0x7fff8fae05c0 (possible programming
! error).
! DAT_NEW: Error creating a new HDS component.
! An error occurred when transferring column TFORM1 of the FITS table.
! FITS2NDF: Error converting a FITS file into an NDF.
! Application exit status DAT__LOCIN, Locator invalid
If I revert cof_ft2ne back to how it was before this commit the HDS error goes away, and the resulting NDF looks OK.
2093fab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Those error messages look like what was seen before this commit. My changes were incomplete
for the case of a top-level primitive previously working, while fixing the same thing but in an
extension of an extension. I've made a one-line fix in Commit 2335aca.