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

Location:
branches/eam_branches/ipp-20130419/pswarp
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130419/pswarp/doc/notes.20130406.txt

    r35434 r35449  
    11
    2 examinging pswarp to handle inverse transformations or more general transformations:
     2examining pswarp to handle inverse transformations or more general transformations:
    33
    44pswarp:
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarp.h

    r35434 r35449  
    9494bool pswarpDefineBackground (pmConfig *config);
    9595bool pswarpLoop (pmConfig *config, psMetadata *stats);
     96bool pswarpLoopSkycell (pmConfig *config, psMetadata *stats);
    9697bool pswarpLoopBackground (pmConfig *config, psMetadata *stats);
    9798psExit pswarpExitCode(psExit exitValue);
  • 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;
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpLoopSkycell.c

    r35434 r35449  
    1818
    1919// Loop over the inputs, warp them to the output skycell and then write out the output.
    20 bool pswarpLoop(pmConfig *config, psMetadata *stats)
     20bool pswarpLoopSkycell(pmConfig *config, psMetadata *stats)
    2121{
    2222    bool status;
  • branches/eam_branches/ipp-20130419/pswarp/src/pswarpParseCamera.c

    r35434 r35449  
    7878        }
    7979    }
    80     if ((astrom->type != PM_FPA_FILE_CMF) && (astrom->type != PM_FPA_FILE_WCS)) {
     80    if (astrom && (astrom->type != PM_FPA_FILE_CMF) && (astrom->type != PM_FPA_FILE_WCS)) {
    8181        psLogMsg("pswarp", PS_LOG_INFO, "%s is neither CMF nor WCS", "PSWARP.ASTROM");
    8282    }
Note: See TracChangeset for help on using the changeset viewer.