IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41903 for trunk/psModules


Ignore:
Timestamp:
Nov 5, 2021, 10:59:21 AM (5 years ago)
Author:
eugene
Message:

drop all use of ADDITIONAL_WCS_ORDERS in psModules: calling programs (pswarp, ppCoords) use pmAstrometrySetExtraOrders to pass this in

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryWCS.c

    r41892 r41903  
    697697    }
    698698
    699     // XXX the way this is coded, updates will NOT have the same behavior as with the
    700     // original code: the if ADDITIONAL_WCS_ORDERS is not found, the default
    701     // should be 0 (or else we need some way to detect the update version)
    702 
    703699    // the transformation used the region to define the inversion grid
    704700    // the region defines the FPA pixels covered by the tranformation
    705701    psFree (fpa->fromTPA);
    706     int additional_orders = pmAstrometryGetExtraOrders();  // This is the number of orders that should be added.
    707     bool status = false;
    708     int config_additional_orders = psMetadataLookupS32(&status,fpa->analysis, "ADDITIONAL_WCS_ORDERS");
    709     if (status) { // If this keyword is found, then use that number of orders instead
    710       additional_orders = config_additional_orders;
    711     }
    712     fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, region, 50, additional_orders);
     702    int ExtraOrders = pmAstrometryGetExtraOrders();  // This is the number of orders that should be added.
     703    fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, region, 50, ExtraOrders);
    713704    return true;
    714705}
Note: See TracChangeset for help on using the changeset viewer.