IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 25, 2016, 6:47:47 PM (10 years ago)
Author:
eugene
Message:

distortion map inverse needs to have higher order than forward transform

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809/psastro/src/psastroMosaicAstrom.c

    r39699 r39724  
    280280
    281281    // psPlaneTransformInvert will generate a new fromTPA with order to match toTPA
    282     fpa->fromTPA = psPlaneTransformInvert (fpa->fromTPA, fpa->toTPA, fitRegion, 100);
     282    psFree (fpa->fromTPA);
     283    psPlaneTransform *myPT = psPlaneTransformAlloc(fpa->toTPA->x->nX+4, fpa->toTPA->x->nY+4);
     284
     285    fpa->fromTPA = psPlaneTransformInvert (myPT, fpa->toTPA, fitRegion, 100);
     286    psFree (myPT);
    283287
    284288    psFree (fpa->toSky);
     
    291295
    292296    psFree (view);
     297
     298    if (!psastroMosaicSetAstrom (fpa)) {
     299        psError(PSASTRO_ERR_UNKNOWN, false, "failed to apply mosaic distortion terms\n");
     300        return false;
     301    }
     302
    293303    return true;
    294304}
Note: See TracChangeset for help on using the changeset viewer.