Changeset 41536
- Timestamp:
- Apr 3, 2021, 2:26:18 PM (5 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 5 edited
-
psastroFixChips.c (modified) (1 diff)
-
psastroModelAdjust.c (modified) (3 diffs)
-
psastroMosaicAstrom.c (modified) (1 diff)
-
psastroMosaicCorrectDistortion.c (modified) (1 diff)
-
psastroUtils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroFixChips.c
r39926 r41536 307 307 obsChip->toFPA = toFPA; 308 308 // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places 309 obsChip->fromFPA = psPlaneTransformInvert(NULL, obsChip->toFPA, *region, 50); 309 // WHY NOT? 310 obsChip->fromFPA = psPlaneTransformInvert(NULL, obsChip->toFPA, *region, 50, 0); 310 311 psFree (region); 311 312 -
trunk/psastro/src/psastroModelAdjust.c
r39926 r41536 124 124 // invert the new fromFPA transform to get the new toFPA transform 125 125 // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places 126 psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50 );126 psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 0); 127 127 psFree (chip->fromFPA); 128 128 chip->fromFPA = fromFPA; … … 146 146 psFree (output->fpa->fromTPA); 147 147 // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places 148 output->fpa->fromTPA = psPlaneTransformInvert(NULL, output->fpa->toTPA, *fpaRegion, 50 );148 output->fpa->fromTPA = psPlaneTransformInvert(NULL, output->fpa->toTPA, *fpaRegion, 50, 0); 149 149 150 150 // the model now describes the unrotated focal-plane … … 195 195 // the region used here is the region covered by the chip in the FPA 196 196 // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places 197 psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50 );197 psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 0); 198 198 psFree (chip->fromFPA); 199 199 chip->fromFPA = fromFPA; -
trunk/psastro/src/psastroMosaicAstrom.c
r41499 r41536 296 296 psRegion fitRegion = psRegionSet (xMin, xMax, yMin, yMax); 297 297 298 // psPlaneTransformInvert will generate a new fromTPA with order to match toTPA298 // psPlaneTransformInvert will generate a new fromTPA (order increased vs toTPA) 299 299 psFree (fpa->fromTPA); 300 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4); 301 fpa->fromTPA = psPlaneTransformInvert (myPT, fpa->toTPA, fitRegion, 100); 302 psFree (myPT); 300 fpa->fromTPA = psPlaneTransformInvert (NULL, fpa->toTPA, fitRegion, 100, 4); 303 301 304 302 psFree (fpa->toSky); -
trunk/psastro/src/psastroMosaicCorrectDistortion.c
r39926 r41536 62 62 63 63 psFree (fpa->fromTPA); 64 psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4); 65 fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, *region, 50); 66 psFree (myPT); 64 fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50, 4); 67 65 psFree (region); 68 66 -
trunk/psastro/src/psastroUtils.c
r41434 r41536 111 111 112 112 psFree (chip->fromFPA); 113 chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 50 );113 chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 50, 4); 114 114 psFree (region); 115 115
Note:
See TracChangeset
for help on using the changeset viewer.
