IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 27, 2013, 1:11:37 PM (13 years ago)
Author:
eugene
Message:

fix so we can warp from skycell to camera as well as vice versa

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpLoadAstrometry.c

    r35434 r35449  
    9898    }
    9999    // for pswarpLocalFrame, I need transformations and HDUs on a single fpa (so set on astrom as well as target)
    100     target->fpa->toTPA = psMemIncrRefCounter (astrom->fpa->toTPA);
    101     target->fpa->fromTPA = psMemIncrRefCounter (astrom->fpa->fromTPA);
    102     target->fpa->toSky = psMemIncrRefCounter (astrom->fpa->toSky);
     100    // target->fpa->toTPA = psMemIncrRefCounter (astrom->fpa->toTPA);
     101    // target->fpa->fromTPA = psMemIncrRefCounter (astrom->fpa->fromTPA);
     102    // target->fpa->toSky = psMemIncrRefCounter (astrom->fpa->toSky);
    103103
    104104    while ((chip = pmFPAviewNextChip (view, astrom->fpa, 1)) != NULL) {
     
    126126        } else {
    127127            // we use a default FPA pixel scale of 1.0
    128             if (!pmAstromReadWCS(target->fpa, chip, hdu->header, 1.0)) {
     128            if (!pmAstromReadWCS(astrom->fpa, chip, hdu->header, 1.0)) {
    129129                psError(psErrorCodeLast(), false, "Unable to read WCS astrometry for skycell.");
    130130                psFree(view);
     
    136136    }
    137137
     138    // for pswarpLocalFrame, I need transformations and HDUs on a single fpa (so set on astrom as well as target)
     139    target->fpa->toTPA = psMemIncrRefCounter (astrom->fpa->toTPA);
     140    target->fpa->fromTPA = psMemIncrRefCounter (astrom->fpa->fromTPA);
     141    target->fpa->toSky = psMemIncrRefCounter (astrom->fpa->toSky);
     142
    138143    // reset the type to the original value
    139144    astrom->type = saveType;
Note: See TracChangeset for help on using the changeset viewer.