Changeset 21160
- Timestamp:
- Jan 23, 2009, 3:09:03 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/pstamp/src/ppstampMakeStamp.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/pstamp/src/ppstampMakeStamp.c
r20757 r21160 27 27 // Change the reference pixel to account for the change in origin between the stamp and 28 28 // the original image 29 // XXX: shouldn't we be using the center of the stamp instead of the corner? 29 30 outChip->toFPA = psPlaneTransformSetCenter(NULL, inChip->toFPA, (int) roi->x0, (int) roi->y0); 30 31 31 32 outChip->fromFPA = psPlaneTransformInvert(NULL, outChip->toFPA, *roi, 50); 33 34 if (outFPA->toSky->type != PS_PROJ_TAN) { 35 if (!pmAstromLinearizeTransforms(outFPA, outChip)) { 36 psError(PS_ERR_UNKNOWN, false, "Failed to linearize astrometry\n"); 37 return false; 38 } 39 } 32 40 33 41 if (!pmAstromWriteWCS(outHDU->header, outFPA, outChip, WCS_NONLIN_TOL)) {
Note:
See TracChangeset
for help on using the changeset viewer.
