IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41536


Ignore:
Timestamp:
Apr 3, 2021, 2:26:18 PM (5 years ago)
Author:
eugene
Message:

pass in additional orders to psPlaneTransformInvert; some minor comments

Location:
trunk/psastro/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroFixChips.c

    r39926 r41536  
    307307        obsChip->toFPA   = toFPA;
    308308        // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
    309         obsChip->fromFPA = psPlaneTransformInvert(NULL, obsChip->toFPA, *region, 50);
     309        // WHY NOT?
     310        obsChip->fromFPA = psPlaneTransformInvert(NULL, obsChip->toFPA, *region, 50, 0);
    310311        psFree (region);
    311312
  • trunk/psastro/src/psastroModelAdjust.c

    r39926 r41536  
    124124        // invert the new fromFPA transform to get the new toFPA transform
    125125        // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
    126         psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50);
     126        psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 0);
    127127        psFree (chip->fromFPA);
    128128        chip->fromFPA = fromFPA;
     
    146146    psFree (output->fpa->fromTPA);
    147147    // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
    148     output->fpa->fromTPA = psPlaneTransformInvert(NULL, output->fpa->toTPA, *fpaRegion, 50);
     148    output->fpa->fromTPA = psPlaneTransformInvert(NULL, output->fpa->toTPA, *fpaRegion, 50, 0);
    149149
    150150    // the model now describes the unrotated focal-plane
     
    195195        // the region used here is the region covered by the chip in the FPA
    196196        // NOTE: when we call psPlaneTransformInvert here, we do not increase the order as in other places
    197         psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50);
     197        psPlaneTransform *fromFPA = psPlaneTransformInvert(NULL, chip->toFPA, *region, 50, 0);
    198198        psFree (chip->fromFPA);
    199199        chip->fromFPA = fromFPA;
  • trunk/psastro/src/psastroMosaicAstrom.c

    r41499 r41536  
    296296    psRegion fitRegion = psRegionSet (xMin, xMax, yMin, yMax);
    297297
    298     // psPlaneTransformInvert will generate a new fromTPA with order to match toTPA
     298    // psPlaneTransformInvert will generate a new fromTPA (order increased vs toTPA)
    299299    psFree (fpa->fromTPA);
    300     psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
    301     fpa->fromTPA = psPlaneTransformInvert (myPT, fpa->toTPA, fitRegion, 100);
    302     psFree (myPT);
     300    fpa->fromTPA = psPlaneTransformInvert (NULL, fpa->toTPA, fitRegion, 100, 4);
    303301
    304302    psFree (fpa->toSky);
  • trunk/psastro/src/psastroMosaicCorrectDistortion.c

    r39926 r41536  
    6262
    6363    psFree (fpa->fromTPA);
    64     psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
    65     fpa->fromTPA = psPlaneTransformInvert(myPT, fpa->toTPA, *region, 50);
    66     psFree (myPT);
     64    fpa->fromTPA = psPlaneTransformInvert(NULL, fpa->toTPA, *region, 50, 4);
    6765    psFree (region);
    6866
  • trunk/psastro/src/psastroUtils.c

    r41434 r41536  
    111111
    112112    psFree (chip->fromFPA);
    113     chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 50);
     113    chip->fromFPA = psPlaneTransformInvert (NULL, chip->toFPA, *region, 50, 4);
    114114    psFree (region);
    115115
Note: See TracChangeset for help on using the changeset viewer.