Changeset 41833
- Timestamp:
- Oct 11, 2021, 11:36:17 AM (5 years ago)
- Location:
- branches/eam_branches/ipp-dev-20210817/psastro/src
- Files:
-
- 9 edited
-
psastroAstromGuess.c (modified) (1 diff)
-
psastroFixChips.c (modified) (2 diffs)
-
psastroMosaicAstrom.c (modified) (1 diff)
-
psastroMosaicCorrectDistortion.c (modified) (1 diff)
-
psastroMosaicFPtoTP.c (modified) (1 diff)
-
psastroMosaicGradients.c (modified) (1 diff)
-
psastroMosaicOneChip.c (modified) (1 diff)
-
psastroOneChipFit.c (modified) (1 diff)
-
psastroUtils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroAstromGuess.c
r39926 r41833 397 397 } 398 398 399 psPlaneTransform *map = psPlaneTransformAlloc (1, 1 );399 psPlaneTransform *map = psPlaneTransformAlloc (1, 1, PS_POLYNOMIAL_ORD); 400 400 map->x->coeffMask[1][1] = PS_POLY_MASK_SET; 401 401 map->y->coeffMask[1][1] = PS_POLY_MASK_SET; -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroFixChips.c
r41536 r41833 170 170 if (DEBUG) fclose (f); 171 171 172 psPlaneTransform *map = psPlaneTransformAlloc (1, 1 );172 psPlaneTransform *map = psPlaneTransformAlloc (1, 1, PS_POLYNOMIAL_ORD); 173 173 174 174 psVector *mask = psVectorAlloc (nPts, PS_TYPE_VECTOR_MASK); … … 289 289 // apply the exiting fromTPA transformation to make the new toFPA consistent with the toTPA layter 290 290 // XXX this only works if toTPA is at most a linear transformation 291 psPlaneTransform *toFPA = psPlaneTransformAlloc(refChip->toFPA->x->nX, refChip->toFPA->x->nY );291 psPlaneTransform *toFPA = psPlaneTransformAlloc(refChip->toFPA->x->nX, refChip->toFPA->x->nY, PS_POLYNOMIAL_ORD); 292 292 for (int i = 0; i <= refChip->toFPA->x->nX; i++) { 293 293 for (int j = 0; j <= refChip->toFPA->x->nY; j++) { -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicAstrom.c
r41536 r41833 277 277 } 278 278 279 // the original transforms are (1, 1), but we will need higher order to fit the distortions 279 // the original transforms are (1, 1), but we will need higher order to fit the distortions. 280 // forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials 280 281 psFree (fpa->toTPA); 281 282 // the original transforms are (1, 1), but we will need higher order to fit the distortions 283 fpa->toTPA = psPlaneTransformAlloc (order, order); 282 fpa->toTPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD); 284 283 for (int i = 0; i <= fpa->toTPA->x->nX; i++) { 285 284 for (int j = 0; j <= fpa->toTPA->x->nY; j++) { -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicCorrectDistortion.c
r41536 r41833 22 22 } 23 23 24 // store the new coeffs in a new structure 25 psPlaneTransform *toTPAnew = psPlaneTransformAlloc(fpa->toTPA->x->nX, fpa->toTPA->x->nY); 24 // Store the new coeffs in a new structure. Forward transformations (chip->fpa->tpa->sky) 25 // use Ordinary polynomials 26 psPlaneTransform *toTPAnew = psPlaneTransformAlloc(fpa->toTPA->x->nX, fpa->toTPA->x->nY, PS_POLYNOMIAL_ORD); 26 27 27 28 // set the new coeffs, or set the mask -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicFPtoTP.c
r26259 r41833 80 80 81 81 // linear fit without xy cross term 82 psPlaneTransform *map = psPlaneTransformAlloc (1, 1 );82 psPlaneTransform *map = psPlaneTransformAlloc (1, 1, PS_POLYNOMIAL_ORD); 83 83 map->x->coeffMask[1][1] = PS_POLY_MASK_SET; 84 84 map->y->coeffMask[1][1] = PS_POLY_MASK_SET; -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicGradients.c
r39926 r41833 84 84 return false; 85 85 } 86 87 // forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials 86 88 psFree (fpa->toTPA); 87 fpa->toTPA = psPlaneTransformAlloc (order, order );89 fpa->toTPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD); 88 90 for (int i = 0; i <= fpa->toTPA->x->nX; i++) { 89 91 for (int j = 0; j <= fpa->toTPA->x->nY; j++) { -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroMosaicOneChip.c
r41816 r41833 88 88 } 89 89 } else { 90 // Forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials 90 91 psFree (chip->toFPA); 91 chip->toFPA = psPlaneTransformAlloc (order, order );92 chip->toFPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD); 92 93 for (int i = 0; i <= chip->toFPA->x->nX; i++) { 93 94 for (int j = 0; j <= chip->toFPA->x->nY; j++) { -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroOneChipFit.c
r41816 r41833 121 121 } 122 122 123 // create output toFPA; set masks appropriate to the Elixir DVO astrometry format 123 // Create output toFPA; set masks appropriate to the Elixir DVO astrometry format. 124 // Forward transformations (chip->fpa->tpa->sky) use Ordinary polynomials 124 125 psFree (chip->toFPA); 125 chip->toFPA = psPlaneTransformAlloc (order, order );126 chip->toFPA = psPlaneTransformAlloc (order, order, PS_POLYNOMIAL_ORD); 126 127 for (int i = 0; i <= chip->toFPA->x->nX; i++) { 127 128 for (int j = 0; j <= chip->toFPA->x->nY; j++) { -
branches/eam_branches/ipp-dev-20210817/psastro/src/psastroUtils.c
r41536 r41833 215 215 psPlaneTransform *psPlaneTransformCopy (psPlaneTransform *input) { 216 216 217 psPlaneTransform *output = psPlaneTransformAlloc (input->x->nX, input->x->nY );217 psPlaneTransform *output = psPlaneTransformAlloc (input->x->nX, input->x->nY, input->x->type); 218 218 219 219 for (int i = 0; i < input->x->nX; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.
