IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 9, 2013, 10:00:41 AM (13 years ago)
Author:
eugene
Message:

add source for output, output.bkgmodel, and psphotInput in psphotParseCamera; do not activate PSPHOT.INPUT; if a background model is not supplied do not attempt to generate one; generate the metadata for the output bkgmodel

File:
1 edited

Legend:

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

    r35535 r35539  
    9595    bool bilevelAstrometry = psMetadataLookupBool (NULL, skycell->fpa->analysis, "ASTROMETRY.BILEVEL");
    9696   
    97     // generate the output hdu and contents bits
    98     pmFPAAddSourceFromFormat(output->fpa, output->format);
    99 
    10097    // XXX this is a bit muddled : we are setting up the astrometry elements for the output
    10198    // background model here instead of in pswarpLoadAstrometry, where it would be more natural
     
    106103
    107104    // if we have an output background model, generate hdu, etc and supply astrometry
    108     if (bkgModel) {
    109         pmFPAAddSourceFromFormat(bkgModel->fpa, bkgModel->format);
    110 
    111         if (bilevelAstrometry) {
    112             // top-level elements of the bkgModel astrometry
    113             bkgModel->fpa->toTPA   = psMemIncrRefCounter (skycell->fpa->toTPA);
    114             bkgModel->fpa->fromTPA = psMemIncrRefCounter (skycell->fpa->fromTPA);
    115             bkgModel->fpa->toSky   = psMemIncrRefCounter (skycell->fpa->toSky);
    116         }
     105    if (bkgModel && bilevelAstrometry) {
     106        // top-level elements of the bkgModel astrometry
     107        bkgModel->fpa->toTPA   = psMemIncrRefCounter (skycell->fpa->toTPA);
     108        bkgModel->fpa->fromTPA = psMemIncrRefCounter (skycell->fpa->fromTPA);
     109        bkgModel->fpa->toSky   = psMemIncrRefCounter (skycell->fpa->toSky);
    117110    }
    118111
Note: See TracChangeset for help on using the changeset viewer.