IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41641


Ignore:
Timestamp:
Jun 4, 2021, 12:37:12 PM (5 years ago)
Author:
tdeboer
Message:

update to ghost locations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-ps1-20210510/psastro/src/psastroLoadGhosts.c

    r41634 r41641  
    120120
    121121    //We need to check whether we are dealing with an old style ghost_model, or a new style model. Check if the mirror_rad polynomial exists
    122     float mirCheck = 0;
     122    int mirCheck = 0;
    123123    md = psMetadataLookupMetadata (&status, ghostModel, "GHOST.MIRROR.RAD");
    124124    if (!md) { psLogMsg ("psastro", PS_LOG_INFO, "No ghost mirror_rad polynomial found. Assuming old-style ghost masking"); }
     
    210210                    double theta0 = atan2(cal->FP->x,cal->FP->y);
    211211
    212                     if(mirCheck) {
     212                    if((mirCheck) & (!cenChip)) {
    213213                         //TdB: first mirror the reference star positions (around the 0,0 pixel) using the radial offset coefficients and the ghost/star angle
    214214                        double ghost_offset_rad = psPolynomial1DEval (mirrorRad, rSrc);
Note: See TracChangeset for help on using the changeset viewer.