- Timestamp:
- Sep 29, 2021, 9:54:17 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-dev-20210817/psModules/src/astrom/pmAstrometryWCS.c
r41533 r41823 608 608 // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear) 609 609 psFree (chip->fromFPA); 610 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 4);610 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, EXTRA_ORDERS); 611 611 psFree (region); 612 612 … … 668 668 // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear) 669 669 psFree (chip->fromFPA); 670 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 4);670 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, EXTRA_ORDERS); 671 671 psFree (region); 672 672 … … 700 700 // the region defines the FPA pixels covered by the tranformation 701 701 psFree (fpa->fromTPA); 702 int additional_orders = 4; // This is the number of orders that should be added.702 int additional_orders = EXTRA_ORDERS; // This is the number of orders that should be added. 703 703 bool status = false; 704 704 int config_additional_orders = psMetadataLookupS32(&status,fpa->analysis, "ADDITIONAL_WCS_ORDERS"); … … 1032 1032 1033 1033 // NOTE: the extraOrders value (4) should be ignored since outToFPA is specified to be linear 1034 psPlaneTransform *outFromFPA = psPlaneTransformInvert(NULL, outToFPA, *outputBounds, 50, 4);1034 psPlaneTransform *outFromFPA = psPlaneTransformInvert(NULL, outToFPA, *outputBounds, 50, EXTRA_ORDERS); 1035 1035 if (!outFromFPA) { 1036 1036 psFree(outToFPA); … … 1148 1148 psFree(dst); 1149 1149 1150 // this is a linear transformation 1150 // this is a linear transformation, no extra orders are needed 1151 1151 psPlaneTransform *newFromFPA = psPlaneTransformInvert(NULL, newToFPA, *bounds, 1, 0); 1152 1152 if (!newFromFPA) {
Note:
See TracChangeset
for help on using the changeset viewer.
