Ticket #3822 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

FITS driver refuses to open files whose metadata list doesn't end with 'END'

Reported by: rouault Owned by: rouault
Priority: normal Milestone: 1.8.0
Component: default Version: unspecified
Severity: normal Keywords: fits
Cc:

Description

That's the case for  http://fits.gsfc.nasa.gov/nrao_data/tests/ftt4b/file013.fits reported in  http://lists.osgeo.org/pipermail/gdal-dev/2010-November/026637.html

Contrary to most files, it doesn't end with 'END' keyword. The solution is to use the fits_get_hdrspace() API to get the number of key/value pairs and iterate over it without relying on END being the last keyword.

Change History

Changed 3 years ago by rouault

  • status changed from new to closed
  • resolution set to fixed

Fixed in trunk in r21104

Note: See TracTickets for help on using tickets.