IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 27302


Ignore:
Timestamp:
Mar 16, 2010, 1:57:17 PM (16 years ago)
Author:
Paul Price
Message:

Fix sign of the correction.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackSources.c

    r27278 r27302  
    9292            }
    9393            source->psfMag += 1.0;
     94#ifdef ASTROMETRY
     95            if (source->modelPSF) {
     96                source->modelPSF->params->data.F32[PM_PAR_XPOS] += 1.0;
     97                source->modelPSF->params->data.F32[PM_PAR_YPOS] += 1.0;
     98            }
     99            if (source->peak) {
     100                source->peak->xf += 1.0;
     101                source->peak->yf += 1.0;
     102            }
     103#endif
    94104        }
    95105    }
     
    286296                    magCorr -= zpTarget;
    287297                }
    288                 options->norm->data.F32[i] = magCorr;
     298                options->norm->data.F32[i] = -magCorr;
    289299                psLogMsg("ppStack", PS_LOG_INFO,
    290300                         "Applying scale correction to image %d: %f mag (%f)\n",
     
    296306                        continue;
    297307                    }
    298                     source->psfMag += magCorr;
     308                    source->psfMag -= magCorr;
    299309                }
    300310            }
Note: See TracChangeset for help on using the changeset viewer.