IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 4, 2021, 6:05:18 PM (5 years ago)
Author:
eugene
Message:

merge changes from eam_branches/ipp-dev-20210817 (pmPattern updates, new inverse transform extra orders api, forward transform uses ORD, pmSourceIO_CMF.c.in conversion to pmFitsTableNew)

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/objects/pmSourceIO_Ghosts.c

    r41391 r41892  
    136136    pmFPAview *view = pmFPAviewAlloc (0);
    137137
    138     //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
     138    // 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
    139139    float mirCheck = 0;
    140140    md = psMetadataLookupMetadata (&status, ghostModel, "GHOST.MIRROR.RAD");
     
    153153    GET_1D_POLY ("GHOST.INNER.MINOR", innerMinor);
    154154
    155 
    156155    // select the input astrometry data (also carries the refstars)
    157156    pmFPAfile *astrom = psMetadataLookupPtr (NULL, config->files, "PSASTRO.INPUT");
     
    211210                        double theta0 = atan2(ref->FP->y,ref->FP->x);
    212211
    213                         if(mirCheck) {
     212                        // EAM: XXX we should just use the existence of mirrorRad (!= NULL) instead of carrying a different bool
     213                        if (mirCheck) {
    214214                            //TdB: first mirror the reference star positions (around the 0,0 pixel) using the radial offset coefficients and the ghost/star angle
    215215                            double ghost_offset_rad = psPolynomial1DEval (mirrorRad, rSrc);
     
    220220                            ghost->FP->x = ghost_x_fpa_mirror + psPolynomial2DEval(centerX, ghost_x_fpa_mirror, ghost_y_fpa_mirror);
    221221                            ghost->FP->y = ghost_y_fpa_mirror + psPolynomial2DEval(centerY, ghost_x_fpa_mirror, ghost_y_fpa_mirror);
    222                         } 
    223                         if(!mirCheck) {
     222                        } else {
    224223                            //Use the old-style ghost position determination
    225224                            ghost->FP->x = -ref->FP->x + psPolynomial2DEval(centerX, -ref->FP->x, -ref->FP->y);
     
    303302        psFree (outerMajor);
    304303        psFree (outerMinor);
     304        psFree (mirrorRad);
    305305        psFree (ghostModel);
    306306        psFree (view);
     
    327327    psFree (outerMajor);
    328328    psFree (outerMinor);
     329    psFree (mirrorRad);
    329330    psFree (ghostModel);
    330331    psFree (view);
Note: See TracChangeset for help on using the changeset viewer.