Changeset 7717 for trunk/psModules/src/camera/pmHDU.c
- Timestamp:
- Jun 27, 2006, 7:12:19 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/camera/pmHDU.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/camera/pmHDU.c
r7604 r7717 15 15 { 16 16 // Deal with the PHU case 17 if ( strcasecmp(hdu->extname, "PHU") == 0 || hdu->phu) {18 if (! psFitsMoveExtNum(fits, 0, false)) {17 if (hdu->blankPHU) { 18 if (!psFitsMoveExtNum(fits, 0, false)) { 19 19 psError(PS_ERR_IO, false, "Unable to move to primary header!\n"); 20 20 return false; 21 21 } 22 hdu->phu = true; 23 return true; 24 } 25 26 if (! psFitsMoveExtName(fits, hdu->extname)) { 22 return true; 23 } 24 25 if (!psFitsMoveExtName(fits, hdu->extname)) { 27 26 psError(PS_ERR_IO, false, "Unable to move to extension %s\n", hdu->extname); 28 27 return false; 29 }30 // Now, just in case for some reason the PHU has an extension name that we've moved to....31 if (psFitsGetExtNum(fits) == 0) {32 hdu->phu = true;33 } else {34 hdu->phu = false;35 28 } 36 29 … … 61 54 62 55 if (!extname || strlen(extname) == 0) { 63 hdu-> phu= true;64 hdu->extname = psStringCopy("PHU");56 hdu->blankPHU = true; 57 hdu->extname = NULL; 65 58 } else { 66 if (strcasecmp(extname, "PHU") == 0) { 67 hdu->phu = true; 68 } else { 69 hdu->phu = false; 70 } 59 hdu->blankPHU = false; 71 60 hdu->extname = psStringCopy(extname); 72 61 }
Note:
See TracChangeset
for help on using the changeset viewer.
