Changeset 17052 for trunk/pstamp/src/ppstampMakeStamp.c
- Timestamp:
- Mar 18, 2008, 4:08:40 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/src/ppstampMakeStamp.c (modified) (11 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/src/ppstampMakeStamp.c
r17047 r17052 2 2 #include <config.h> 3 3 #endif 4 #include <strings.h> 4 5 5 6 #include "ppstamp.h" … … 122 123 lastY = image->row0 + image->numRows; 123 124 } 124 125 125 126 int leftBlank = 0; 126 127 int dstX = 0; … … 173 174 // Build the postage stamp output file 174 175 175 static bool makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input, 176 static bool makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input, 176 177 pmChip *inChip, pmFPAview *view) 177 178 { … … 194 195 195 196 // psMetadataPrint(stderr, inChip->concepts, 0); 196 197 197 198 // These default to zero. would that be ok? 198 199 psMetadataAddS32(target->concepts, PS_LIST_TAIL, "CELL.XBIN", PS_META_REPLACE, "Binning in x", 1); … … 236 237 if (ppstampMegacamWorkaround) { 237 238 // the coordinates of the mosaic are shifted 32 pixels from the chip 238 // TODO does this always apply? For example I doubt that applies to 239 // TODO does this always apply? For example I doubt that applies to 239 240 // skycells. 240 241 extractRegion.x0 -= 32; … … 345 346 options->roi.y0 = INFINITY; 346 347 options->roi.y1 = -INFINITY; 347 348 348 349 pt->sky->rErr = 0; 349 350 pt->sky->dErr = 0; … … 422 423 423 424 if (regionContainsPoint(chipBounds, center->chip)) { 424 psLogMsg("ppstampMakeStamp", 2, "Found center (%f %f) on chip: %s\n", 425 psLogMsg("ppstampMakeStamp", 2, "Found center (%f %f) on chip: %s\n", 425 426 center->chip->x, center->chip->y, chipName); 426 427 onChip = true; 427 428 } 428 429 } else { 429 // center specified in pixels. 430 // center specified in pixels. 430 431 // If the user specified a name of a chip name wait until we get to that one. 431 432 // If no chip name was specified, select this one (the first one that had data) … … 499 500 pmChip *chip; 500 501 while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) { 501 bool allDone = false;502 bool allDone = false; 502 503 503 504 if (!chip->process || !chip->file_exists) { … … 518 519 break; 519 520 case PPSTAMP_ON: 520 case PPSTAMP_PARTIALLY_ON:521 case PPSTAMP_PARTIALLY_ON: 521 522 returnval = makeStamp(config, options, input, chip, view); 522 523 allDone = true; … … 532 533 } 533 534 534 pmFPAfileIOChecks(config, view, PM_FPA_AFTER);535 pmFPAfileIOChecks(config, view, PM_FPA_AFTER); 535 536 536 537 if (allDone) { … … 538 539 break; 539 540 } 540 } 541 } 541 542 pmFPAfileIOChecks(config, view, PM_FPA_AFTER); 542 543
Note:
See TracChangeset
for help on using the changeset viewer.
