IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39981 for trunk/psModules


Ignore:
Timestamp:
Feb 23, 2017, 4:22:35 PM (9 years ago)
Author:
watersc1
Message:

Add code to allow the number of additional polynomial terms in the WCS solution to be modified. This should allow updates to look like the original run.

File:
1 edited

Legend:

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

    r39979 r39981  
    695695    // the region defines the FPA pixels covered by the tranformation
    696696    psFree (fpa->fromTPA);
    697     psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
     697
     698    int additional_orders = 4;  // This is the number of orders that should be added.
     699    bool status = false;
     700    int config_additional_orders = psMetadataLookupS32(&status,fpa->analysis, "ADDITIONAL_WCS_ORDERS");
     701    if (status) { // If this keyword is found, then use that number of orders instead
     702      additional_orders = config_additional_orders;
     703    }
     704   
     705    psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+additional_orders, fpa->toTPA->x->nY+additional_orders);
    698706    fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, region, 50);
    699707    psFree (myPT);
Note: See TracChangeset for help on using the changeset viewer.