Changeset 41338 for trunk/psastro/src/psastroLoadGhosts.c
- Timestamp:
- Apr 16, 2020, 1:39:13 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroLoadGhosts.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroLoadGhosts.c
r41290 r41338 110 110 psPolynomial1D *innerMinor = NULL; 111 111 112 112 113 pmFPAview *view = pmFPAviewAlloc (0); 114 115 GET_2D_POLY ("GHOST.CENTER.X", centerX); 116 GET_2D_POLY ("GHOST.CENTER.Y", centerY); 117 118 GET_1D_POLY ("GHOST.OUTER.MAJOR", outerMajor); 119 GET_1D_POLY ("GHOST.OUTER.MINOR", outerMinor); 120 GET_1D_POLY ("GHOST.INNER.MAJOR", innerMajor); 121 GET_1D_POLY ("GHOST.INNER.MINOR", innerMinor); 113 122 114 123 // select the input astrometry data (also carries the refstars) … … 119 128 } 120 129 pmFPA *fpa = astrom->fpa; 121 122 GET_2D_POLY ("GHOST.CENTER.X", centerX);123 GET_2D_POLY ("GHOST.CENTER.Y", centerY);124 125 GET_1D_POLY ("GHOST.OUTER.MAJOR", outerMajor);126 GET_1D_POLY ("GHOST.OUTER.MINOR", outerMinor);127 GET_1D_POLY ("GHOST.INNER.MAJOR", innerMajor);128 GET_1D_POLY ("GHOST.INNER.MINOR", innerMinor);129 130 130 131 // raise an error if the config is broken … … 202 203 ghostChip = psastroFindChip (&ghost->chip->x, &ghost->chip->y, fpa, ghost->FP->x, ghost->FP->y); 203 204 // fprintf (stderr, "-> model chip position: %f, %f\n", ghost->chip->x, ghost->chip->y); 205 206 psPlane coordFPA,ptCH2; 207 psPlane coordCell,ptFP2; 208 coordCell.x = ghost->chip->x; 209 coordCell.y = ghost->chip->y; 210 psPlaneTransformApply(&coordFPA,ghostChip->toFPA,&coordCell); 211 ptCH2.x = ghost->chip->x; 212 ptCH2.y = ghost->chip->y; 213 psPlaneTransformApply(&ptFP2,ghostChip->toFPA,&ptCH2); 214 215 psPlane ptCH, ptFP; 216 ptFP.x = ghost->FP->x; 217 ptFP.y = ghost->FP->y; 218 psPlaneTransformApply (&ptCH, ghostChip->fromFPA, &ptFP); 219 220 psastroUpdateChipToFPA (fpa, ghostChip); 221 psPlane ptCH3, ptFP3; 222 ptCH3.x = ghost->chip->x; 223 ptCH3.y = ghost->chip->y; 224 psPlaneTransformApply(&ptFP3,ghostChip->toFPA,&ptCH3); 225 226 227 228 psLogMsg ("psastro", 3, "Ghost refpos: %f %f %s pos: %f %f %f %f %f %f %f %f %f %f %f %f mag: %f inshape: %f %f %f outshape: %f %f %f \n", ref->FP->x,ref->FP->y,psMetadataLookupStr(NULL,chip->concepts,"CHIP.NAME"), ghost->FP->x,ghost->FP->y,coordFPA.x,coordFPA.y,ghost->chip->x, ghost->chip->y,ptCH.x,ptCH.y,ptFP2.x,ptFP2.y,ptFP3.x,ptFP3.y, ghost->Mag,ghost->inner.major,ghost->inner.minor,ghost->inner.theta/PM_RAD_DEG,ghost->outer.major,ghost->outer.minor,ghost->outer.theta/PM_RAD_DEG); 204 229 205 230 if (ghostChip) {
Note:
See TracChangeset
for help on using the changeset viewer.
