Changeset 25082 for trunk/magic/remove/src/streaksio.c
- Timestamp:
- Aug 14, 2009, 3:58:07 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/remove/src/streaksio.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/remove/src/streaksio.c
r24853 r25082 12 12 // Assumptions about the file structure of non-raw files 13 13 // The 'image' for each file (image, mask weight) is contained in the first 14 // extension. 14 // extension. 15 15 16 16 … … 625 625 streaksExit("", PS_EXIT_DATA_ERROR); 626 626 } 627 627 628 628 bool status; 629 629 in->extname = psMetadataLookupStr(&status, in->header, "EXTNAME"); … … 654 654 streaksExit("", PS_EXIT_DATA_ERROR); 655 655 } 656 psImage *image = (psImage *) (in->imagecube->data[0]);657 656 } 658 657 setDataExtent(stage, in, (stage == IPP_STAGE_RAW) && !isMask); … … 925 924 replicateOutputs(streakFiles *sfiles) 926 925 { 927 bool status = false;928 929 926 if (!replicate(sfiles->outImage, sfiles->inImage)) { 930 927 psError(PM_ERR_SYS, false, "failed to replicate outImage."); … … 973 970 974 971 if (!nebSwap(server, in->name, out->name)) { 975 psError(PM_ERR_SYS, true, "failed to swap files for : %s.",972 psError(PM_ERR_SYS, true, "failed to swap files for %s: %s.", 976 973 in->name, nebErr(server)); 977 974 return false; … … 1097 1094 setMaskedToNAN(streakFiles *sfiles, psU32 maskMask, bool printCounts) 1098 1095 { 1099 intmaskedPixels = 0;1100 intnandPixels = 0;1101 intnandWeights = 0;1096 long maskedPixels = 0; 1097 long nandPixels = 0; 1098 long nandWeights = 0; 1102 1099 1103 1100 psImage *image = sfiles->outImage->image; … … 1120 1117 psU32 maskVal; 1121 1118 if (sfiles->stage == IPP_STAGE_RAW) { 1122 int xChip, yChip;1119 unsigned int xChip, yChip; 1123 1120 cellToChipInt(&xChip, &yChip, sfiles->astrom, x, y); 1124 1121 maskVal = psImageGet(mask, xChip, yChip); … … 1144 1141 if (printCounts) { 1145 1142 psLogMsg(sfiles->program_name, PS_LOG_INFO, "time to NAN mask pixels: %f\n", psTimerClear("NAN_MASKED")); 1146 inttotalPixels = image->numRows * image->numCols;1143 long totalPixels = image->numRows * image->numCols; 1147 1144 psLogMsg(sfiles->program_name, PS_LOG_INFO, "pixels: %10ld\n", totalPixels); 1148 1145 psLogMsg(sfiles->program_name, PS_LOG_INFO, "masked pixels: %10ld %4.2f%%\n", maskedPixels, 100. * maskedPixels / totalPixels);
Note:
See TracChangeset
for help on using the changeset viewer.
