Changeset 22729
- Timestamp:
- Mar 2, 2009, 10:14:15 AM (17 years ago)
- Location:
- trunk/psLib/src/fits
- Files:
-
- 3 edited
-
psFitsHeader.c (modified) (3 diffs)
-
psFitsHeader.h (modified) (2 diffs)
-
psFitsImage.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psLib/src/fits/psFitsHeader.c
r22432 r22729 149 149 150 150 151 bool psFitsCheck SingleCompressedImagePHU(const psFits *fits, psMetadata *header)151 bool psFitsCheckCompressedImagePHU(const psFits *fits, psMetadata *header) 152 152 { 153 153 PS_ASSERT_FITS_NON_NULL(fits, false); … … 163 163 } 164 164 165 if (psFitsGetSize(fits) != 2) {166 // No second extension, or multiple extensions165 if (psFitsGetSize(fits) == 1) { 166 // No extension present 167 167 return false; 168 168 } … … 416 416 // Explore the potential case that this is an empty PHU, and the first extension contains the sole image, 417 417 // which is compressed. 418 if (psFitsCheck SingleCompressedImagePHU(fits, header)) {418 if (psFitsCheckCompressedImagePHU(fits, header)) { 419 419 // This is really what we want, not the empty PHU 420 420 psTrace("psLib.fits", 1, -
trunk/psLib/src/fits/psFitsHeader.h
r15179 r22729 20 20 21 21 22 /// Determine whether the current HDU is an empty PHU with a singlecompressed image following.22 /// Determine whether the current HDU is an empty PHU with a compressed image following. 23 23 /// 24 24 /// In that case, what should be treated as an image PHU is technically an empty PHU with a binary table … … 26 26 /// following compressed image to determine if this is the case. If so, the FITS file pointer is left 27 27 /// pointing at the compressed image. 28 bool psFitsCheck SingleCompressedImagePHU(const psFits *fits, ///< FITS file pointer29 const psMetadata *header ///< Header, or NULL28 bool psFitsCheckCompressedImagePHU(const psFits *fits, ///< FITS file pointer 29 const psMetadata *header ///< Header, or NULL 30 30 ); 31 31 -
trunk/psLib/src/fits/psFitsImage.c
r21535 r22729 219 219 PS_ASSERT_FITS_NON_NULL(fits, NULL); 220 220 221 if (psFitsCheck SingleCompressedImagePHU(fits, NULL)) {221 if (psFitsCheckCompressedImagePHU(fits, NULL)) { 222 222 // This is really what we want, not the empty PHU 223 223 psTrace("psLib.fits", 1, … … 432 432 PS_ASSERT_INT_NONNEGATIVE(z, NULL); 433 433 434 if (psFitsCheck SingleCompressedImagePHU(fits, NULL)) {434 if (psFitsCheckCompressedImagePHU(fits, NULL)) { 435 435 // This is really what we want, not the empty PHU 436 436 psTrace("psLib.fits", 1, … … 479 479 } 480 480 481 if (psFitsCheck SingleCompressedImagePHU(fits, NULL)) {481 if (psFitsCheckCompressedImagePHU(fits, NULL)) { 482 482 // This is really what we want, not the empty PHU 483 483 psTrace("psLib.fits", 1, … … 873 873 // code replication, and should be sufficient for our needs. 874 874 875 if (psFitsCheck SingleCompressedImagePHU(fits, NULL)) {875 if (psFitsCheckCompressedImagePHU(fits, NULL)) { 876 876 // This is really what we want, not the empty PHU 877 877 psTrace("psLib.fits", 1,
Note:
See TracChangeset
for help on using the changeset viewer.
