IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 29, 2021, 9:54:17 AM (5 years ago)
Author:
eugene
Message:

replace 4 with EXTRA_ORDERS macro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-dev-20210817/psModules/src/astrom/pmAstrometryWCS.c

    r41533 r41823  
    608608    // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear)
    609609    psFree (chip->fromFPA);
    610     chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 4);
     610    chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, EXTRA_ORDERS);
    611611    psFree (region);
    612612
     
    668668    // as of r40806, psPlaneTransformInvert supplies the extra order (if non-linear)
    669669    psFree (chip->fromFPA);
    670     chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 4);
     670    chip->fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, EXTRA_ORDERS);
    671671    psFree (region);
    672672
     
    700700    // the region defines the FPA pixels covered by the tranformation
    701701    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.
    703703    bool status = false;
    704704    int config_additional_orders = psMetadataLookupS32(&status,fpa->analysis, "ADDITIONAL_WCS_ORDERS");
     
    10321032
    10331033    // 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);
    10351035    if (!outFromFPA) {
    10361036        psFree(outToFPA);
     
    11481148    psFree(dst);
    11491149
    1150     // this is a linear transformation
     1150    // this is a linear transformation, no extra orders are needed
    11511151    psPlaneTransform *newFromFPA = psPlaneTransformInvert(NULL, newToFPA, *bounds, 1, 0);
    11521152    if (!newFromFPA) {
Note: See TracChangeset for help on using the changeset viewer.