IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41897


Ignore:
Timestamp:
Nov 4, 2021, 6:11:39 PM (5 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-dev-20210817 (use new API to set extra orders from recipe))

Location:
trunk/pswarp/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/pswarp/src/pswarpLoadAstrometry.c

    r41526 r41897  
    9494        }
    9595    }
     96
    9697    // apply the bilevel astrometry elements to the target
    9798    if (bilevelAstrometry) {
    98       int additional_orders = 4;
    99       bool status = false;
    100       int config_additional_orders = psMetadataLookupS32(&status,config->arguments,"ADDITIONAL_WCS_ORDERS");
    101       if (status) {
    102         additional_orders = config_additional_orders;
    103       }
    104       psMetadataAddS32(astrom->fpa->analysis,PS_LIST_TAIL, "ADDITIONAL_WCS_ORDERS", PS_META_REPLACE,
    105                        "Additional orders for bilevel fit.", additional_orders);
    106      
    107        
    10899        if (!pmAstromReadBilevelMosaic(astrom->fpa, phu->header)) {
    109100            psError(psErrorCodeLast(), false, "Unable to read bilevel mosaic astrometry for skycell.");
  • trunk/pswarp/src/pswarpLoop.c

    r41526 r41897  
    240240
    241241    // use a map with only linear terms in x,y
    242     psPlaneTransform *map = psPlaneTransformAlloc(1,1);
     242    psPlaneTransform *map = psPlaneTransformAlloc(1, 1, PS_POLYNOMIAL_ORD);
    243243    map->x->coeffMask[1][1] = PS_POLY_MASK_BOTH;
    244244    map->y->coeffMask[1][1] = PS_POLY_MASK_BOTH;
  • trunk/pswarp/src/pswarpMapGrid.c

    r41538 r41897  
    4444    for (ni = 0, i = xMin; ni < nXpts; i += nXpix, ni++) {
    4545        for (nj = 0, j = yMin; nj < nYpts; j += nYpix, nj++) {
     46//        pswarpMapSetLocalModel (grid->maps[ni][nj], dest, src, i, j, nXpix, nYpix);
    4647            pswarpMapSetLocalModel (grid->maps[ni][nj], dest, src, i, j);
    4748        }
     
    196197 * astrometric transformations are supplied for the parent image coordinate frame.
    197198 */
     199// bool pswarpMapSetLocalModel (pswarpMap *map, pmReadout *dest, pmReadout *src, int ix, int iy, int dX, int dY) {
    198200bool pswarpMapSetLocalModel (pswarpMap *map, pmReadout *dest, pmReadout *src, int ix, int iy) {
    199201
     
    234236
    235237    /** V(1,0) position */
     238//  offset->x = ix + dX;
    236239    offset->x = ix + 1;
    237240    offset->y = iy;
     
    246249    offset->x = ix;
    247250    offset->y = iy + 1;
     251//  offset->y = iy + dY;
    248252    psPlaneTransformApply(FP, chipSrc->toFPA, offset);
    249253    psPlaneTransformApply (TP, fpaSrc->toTPA, FP);
  • trunk/pswarp/src/pswarpOptions.c

    r41526 r41897  
    104104      config_additional_orders = 0;
    105105    }
    106    
    107 
     106    pmAstrometrySetExtraOrders(config_additional_orders);
     107    // This is the number of orders that should be added to all non-linear inverse transformations
    108108   
    109109    // Set recipe values in the recipe (since we've possibly altered some)
Note: See TracChangeset for help on using the changeset viewer.