- Timestamp:
- Oct 1, 2021, 9:50:01 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-dev-20210817/psModules/src/astrom/pmAstrometryWCS.c
r41823 r41826 501 501 psPlaneTransform *toFPA; 502 502 503 int ExtraOrders = pmAstrometryGetExtraOrders(); 504 503 505 // create transformation with 0,0 reference pixel and units of degrees/pixel 504 506 toFPA = psPlaneTransformSetCenter (NULL, wcs->trans, -wcs->crpix1, -wcs->crpix2); … … 608 610 // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear) 609 611 psFree (chip->fromFPA); 610 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, E XTRA_ORDERS);612 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, ExtraOrders); 611 613 psFree (region); 612 614 … … 648 650 */ 649 651 652 int ExtraOrders = pmAstrometryGetExtraOrders(); 653 650 654 psFree (chip->toFPA); 651 655 if ((fabs(wcs->crpix1) > 0.01) || (fabs(wcs->crpix2) > 0.01)) { … … 668 672 // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear) 669 673 psFree (chip->fromFPA); 670 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, E XTRA_ORDERS);674 chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, ExtraOrders); 671 675 psFree (region); 672 676 … … 700 704 // the region defines the FPA pixels covered by the tranformation 701 705 psFree (fpa->fromTPA); 702 int additional_orders = EXTRA_ORDERS; // This is the number of orders that should be added.706 int additional_orders = pmAstrometryGetExtraOrders(); // This is the number of orders that should be added. 703 707 bool status = false; 704 708 int config_additional_orders = psMetadataLookupS32(&status,fpa->analysis, "ADDITIONAL_WCS_ORDERS"); … … 997 1001 PS_ASSERT_PTR_NON_NULL(inChip, NULL); 998 1002 1003 int ExtraOrders = pmAstrometryGetExtraOrders(); 1004 999 1005 if (outFPA == NULL) { 1000 1006 outFPA = inFPA; … … 1032 1038 1033 1039 // NOTE: the extraOrders value (4) should be ignored since outToFPA is specified to be linear 1034 psPlaneTransform *outFromFPA = psPlaneTransformInvert(NULL, outToFPA, *outputBounds, 50, E XTRA_ORDERS);1040 psPlaneTransform *outFromFPA = psPlaneTransformInvert(NULL, outToFPA, *outputBounds, 50, ExtraOrders); 1035 1041 if (!outFromFPA) { 1036 1042 psFree(outToFPA);
Note:
See TracChangeset
for help on using the changeset viewer.
