Changeset 19509
- Timestamp:
- Sep 11, 2008, 3:05:59 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/astrom/pmAstrometryWCS.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/astrom/pmAstrometryWCS.c
r19306 r19509 7 7 * @author EAM, IfA 8 8 * 9 * @version $Revision: 1.2 8$ $Name: not supported by cvs2svn $10 * @date $Date: 2008-09- 02 19:05:33$9 * @version $Revision: 1.29 $ $Name: not supported by cvs2svn $ 10 * @date $Date: 2008-09-12 01:05:59 $ 11 11 * 12 12 * Copyright 2006 Institute for Astronomy, University of Hawaii … … 117 117 { 118 118 pmAstromWCS *wcs = pmAstromWCSBilevelChipFromFPA (chip, tol); 119 if (!wcs) { 120 psError(PS_ERR_UNKNOWN, false, "failure to determine WCS terms from fpa"); 121 return false; 122 } 123 119 124 pmAstromWCStoHeader (header, wcs); 120 125 … … 128 133 { 129 134 pmAstromWCS *wcs = pmAstromWCSBilevelMosaicFromFPA (fpa, tol); 135 if (!wcs) { 136 psError(PS_ERR_UNKNOWN, false, "failure to determine WCS terms from fpa"); 137 return false; 138 } 130 139 131 140 // we need to specify the dimensions of the FPA … … 230 239 if (cdKeys && pcKeys) { 231 240 // XXX make this an option 232 psLogMsg ("psastro", 2, "warning: both CDi_j and PC00i00j defined in headers, using PC00i00j terms\n");241 psLogMsg ("psastro", 5, "warning: both CDi_j and PC00i00j defined in headers, using PC00i00j terms\n"); 233 242 } 234 243 if (!cdKeys && !pcKeys) { … … 615 624 // given transformation, solve for coordinates which yields output coordinates of 0,0 616 625 psPlane *center = psPlaneTransformGetCenter (toTPA, tol); 626 if (!center) { 627 psError(PS_ERR_UNKNOWN, false, "Unable to solve for TPA center."); 628 psFree (toTPA); 629 psFree (wcs); 630 return NULL; 631 } 617 632 618 633 // create wcs transform from toFPA, resulting transformation has units of microns/pixel … … 671 686 // given transformation, solve for coordinates which yields output coordinates of 0,0 672 687 psPlane *center = psPlaneTransformGetCenter (chip->toFPA, tol); 688 if (!center) { 689 psError(PS_ERR_UNKNOWN, false, "Unable to solve for TPA center."); 690 psFree (wcs); 691 return NULL; 692 } 673 693 674 694 // adjust wcs transform to use center as reference coordinate … … 707 727 // given transformation, solve for coordinates which yields output coordinates of 0,0 708 728 psPlane *center = psPlaneTransformGetCenter (fpa->toTPA, tol); 729 if (!center) { 730 psError(PS_ERR_UNKNOWN, false, "Unable to solve for TPA center."); 731 psFree (wcs); 732 return NULL; 733 } 709 734 710 735 // adjust wcs transform to use center as reference coordinate
Note:
See TracChangeset
for help on using the changeset viewer.
