- Timestamp:
- Oct 11, 2021, 11:35:13 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-dev-20210817/psModules/src/astrom/pmAstrometryWCS.c
r41826 r41832 554 554 // apply the exiting fromTPA transformation to make the new toFPA consistent with the toTPA layter 555 555 // XXX this only works if toTPA is at most a linear transformation 556 psPlaneTransform *toFPAnew = psPlaneTransformAlloc(toFPA->x->nX, toFPA->x->nY );556 psPlaneTransform *toFPAnew = psPlaneTransformAlloc(toFPA->x->nX, toFPA->x->nY, PS_POLYNOMIAL_ORD); 557 557 for (int i = 0; i <= toFPA->x->nX; i++) { 558 558 for (int j = 0; j <= toFPA->x->nY; j++) { … … 656 656 chip->toFPA = psPlaneTransformSetCenter (NULL, wcs->trans, -wcs->crpix1, -wcs->crpix2); 657 657 } else { 658 chip->toFPA = psPlaneTransformAlloc(wcs->trans->x->nX, wcs->trans->x->nY );658 chip->toFPA = psPlaneTransformAlloc(wcs->trans->x->nX, wcs->trans->x->nY, PS_POLYNOMIAL_ORD); 659 659 660 660 // copy the toFPA x,y, transformations to the wcs version … … 743 743 // XXX require fpa->toTPA->nX == 1 744 744 745 psPlaneTransform *toTPA = psPlaneTransformAlloc(chip->toFPA->x->nX, chip->toFPA->x->nY );745 psPlaneTransform *toTPA = psPlaneTransformAlloc(chip->toFPA->x->nX, chip->toFPA->x->nY, PS_POLYNOMIAL_ORD); 746 746 747 747 for (int i = 0; i <= toTPA->x->nX; i++) { … … 962 962 } 963 963 964 psPlaneTransform *newTrans = psPlaneTransformAlloc(1, 1 );964 psPlaneTransform *newTrans = psPlaneTransformAlloc(1, 1, PS_POLYNOMIAL_ORD); 965 965 966 966 if (!psPlaneTransformFit(newTrans, src, dst, 0, 0)) { … … 1122 1122 } 1123 1123 1124 psPlaneTransform *newToFPA = psPlaneTransformAlloc(1, 1 );1124 psPlaneTransform *newToFPA = psPlaneTransformAlloc(1, 1, PS_POLYNOMIAL_ORD); 1125 1125 newToFPA->x->coeffMask[1][1] = 1; 1126 1126 newToFPA->y->coeffMask[1][1] = 1; … … 1193 1193 psMemSetDeallocator(wcs, (psFreeFunc) pmAstromWCSFree); 1194 1194 1195 wcs->trans = psPlaneTransformAlloc (nXorder, nYorder); 1195 // note: WCS transforms are always defined as chip to sky 1196 wcs->trans = psPlaneTransformAlloc (nXorder, nYorder, PS_POLYNOMIAL_ORD); 1196 1197 wcs->toSky = NULL; 1197 1198 wcs->wcsCDkeys = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
