#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)
Change History (7)
by , 22 years ago
| Attachment: | psImageIO.c added |
|---|
comment:1 by , 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 , 22 years ago
| Owner: | changed from to |
|---|---|
| Status: | closed → new |
Paul, let me know if this fixes your problem.
comment:3 by , 21 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:5 by , 21 years ago
| Keywords: | VERIFIED added |
|---|
comment:6 by , 21 years ago
| Keywords: | VERIFIED removed |
|---|

uncommented support for all datatypes