Changeset 25710
- Timestamp:
- Oct 1, 2009, 9:32:14 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/src/ppstampMakeStamp.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/src/ppstampMakeStamp.c
r25701 r25710 48 48 } 49 49 50 static bool copyMetadata(pmFPAfile *output, pmFPAfile *input, pmChip *inChip, ppstampOptions *options )50 static bool copyMetadata(pmFPAfile *output, pmFPAfile *input, pmChip *inChip, ppstampOptions *options, pmAstromObj *center) 51 51 { 52 52 pmChip *outChip; … … 109 109 } 110 110 111 psMetadataAddF64(outHDU->header, PS_LIST_TAIL, "RA_DEG", PS_META_REPLACE, "Right Ascension of stamp center", RAD_TO_DEG(center->sky->r)); 112 psMetadataAddF64(outHDU->header, PS_LIST_TAIL, "DEC_DEG", PS_META_REPLACE, "Declination of stamp center", RAD_TO_DEG(center->sky->d)); 113 111 114 ppstampVersionMetadata(outHDU->header, options); 112 115 … … 194 197 195 198 static int makeStamp(pmConfig *config, ppstampOptions *options, pmFPAfile *input, 196 pmChip *inChip, pmFPAview *view )199 pmChip *inChip, pmFPAview *view, pmAstromObj *center) 197 200 { 198 201 int status = false; … … 301 304 302 305 if (status) { 303 status = copyMetadata(output, input, inChip, options );306 status = copyMetadata(output, input, inChip, options, center); 304 307 } 305 308 return status ? PS_EXIT_SUCCESS : PS_EXIT_UNKNOWN_ERROR; … … 376 379 { 377 380 pmAstromObj *pt = pmAstromObjAlloc(); 378 379 if (!options->roip.celestialCenter) {380 // Center was specified in chip coordinates, transform to the sky and the TP381 chipToSky(center, fpa, chip);382 }383 381 384 382 // calculate the four corners of the bounding box in sky coordinates, translate them to … … 486 484 center->chip->yErr = 0; 487 485 onChip = true; 486 chipToSky(center, input->fpa, chip); 488 487 } 489 488 } … … 589 588 case PPSTAMP_ON: 590 589 case PPSTAMP_PARTIALLY_ON: 591 returnval = makeStamp(config, options, input, chip, view );590 returnval = makeStamp(config, options, input, chip, view, center); 592 591 allDone = true; 593 592 foundOverlap = true;
Note:
See TracChangeset
for help on using the changeset viewer.
