Changeset 10613 for trunk/psastro/src/psastroWCS.c
- Timestamp:
- Dec 10, 2006, 8:37:37 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroWCS.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroWCS.c
r10600 r10613 138 138 if (fpa->toSky == NULL) { 139 139 // XXX for now, use the identity for TPA <--> FPA 140 fpa->toT angentPlane= psPlaneDistortIdentity (1);141 fpa->fromT angentPlane= psPlaneDistortIdentity (1);140 fpa->toTPA = psPlaneDistortIdentity (1); 141 fpa->fromTPA = psPlaneDistortIdentity (1); 142 142 fpa->toSky = toSky; 143 143 } else { 144 if (fpa->toT angentPlane== NULL) psAbort ("wcs", "projection defined, tangent-plane not defined");145 if (fpa->fromT angentPlane== NULL) psAbort ("wcs", "projection defined, tangent-plane not defined");144 if (fpa->toTPA == NULL) psAbort ("wcs", "projection defined, tangent-plane not defined"); 145 if (fpa->fromTPA == NULL) psAbort ("wcs", "projection defined, tangent-plane not defined"); 146 146 147 147 // adjust for common toSky for mosaic: … … 154 154 155 155 psPlaneTransformApply (fp, toFPA, chip); // find the focal-plane coordinate of this chip's 0,0 coordinate 156 p _psDeproject (sky, fp, toSky); // find the RA,DEC coord of the focal-plane coordinate157 p _psProject (fp, sky, fpa->toSky); // find the focal-plane coord of this RA,DEC coord using the ref chip projection156 psDeproject (sky, fp, toSky); // find the RA,DEC coord of the focal-plane coordinate 157 psProject (fp, sky, fpa->toSky); // find the focal-plane coord of this RA,DEC coord using the ref chip projection 158 158 159 159 toFPA->x->coeff[0][0] = fp->x;
Note:
See TracChangeset
for help on using the changeset viewer.
