IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Opened 22 years ago

Closed 22 years ago

Last modified 21 years ago

#257 closed defect (fixed)

psImageReadSection fails on bitpix=16, bzero=32768

Reported by: Paul Price Owned by: Paul Price
Priority: high Milestone:
Component: imageops Version: 0.3.0
Severity: normal Keywords:
Cc:

Description

Attempting to read an image with bitpix=16 and bzero=32768 produces the
following error:

2005:01:04 01:04:49Z|mithrandir |E|psLib.image.psImageReadSection

FITS image type, BITPIX=20, in file GRB041219c-001V.fit is not supported.

Of course, the FITS file isn't really bitpix=20, but cfitsio calls it that
internally when using fits_get_img_equivtype (see fitsio.h, search for
USHORT_IMG). However, this fools psImageReadSection into thinking that the file
has an unsupported value of bitpix, and so it fails unnecessarily.

Example FITS files can be provided on request.

Attachments (1)

psImageIO.c​ (12.9 KB ) - added by robert.desonia@… 22 years ago.
uncommented support for all datatypes

Download all attachments as: .zip

Change History (7)

by robert.desonia@…, 22 years ago

Attachment: psImageIO.c​ added

uncommented support for all datatypes

comment:1 by robert.desonia@…, 22 years ago

Resolution: → fixed
Status: new → closed

Looks like a mistake was made in commenting out some lines that support that
type of data.

Attached is the src/image/psImageIO.c file with the "Not a Requirement" marked
lines uncommented.

comment:2 by robert.desonia@…, 22 years ago

Owner: changed from robert.desonia@… to Paul Price
Status: closed → new

Paul, let me know if this fixes your problem.

comment:3 by Paul Price, 22 years ago

Status: new → assigned

Changes to psError mean that I'm having trouble building it (I'm guessing the
attachment is from the mainline, not rel3). I'll test it later in rel4.

comment:4 by Paul Price, 22 years ago

Status: assigned → closed

Verified with rel5.

comment:5 by Paul Price, 22 years ago

Keywords: VERIFIED added

comment:6 by Paul Price, 21 years ago

Keywords: VERIFIED removed
Note: See TracTickets for help on using tickets.