IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 24, 2005, 5:38:37 AM (21 years ago)
Author:
eugene
Message:

adding model tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/mark_psf_source.c

    r4129 r4375  
    1414// any object which meets the criterion is marked as
    1515// PS_SOURCE_BRIGHTSTAR
     16# define MIN_DS 0.01
    1617bool mark_psf_source (psSource *source, float shapeNsigma)
    1718{
     
    3031    dSY = source->modelPSF->dparams->data.F32[5];
    3132
    32     nSx = dSX * SX * SN;
    33     nSy = dSY * SY * SN;
     33    nSx = dSX / hypot (MIN_DS, 1 / (SX * SN));
     34    nSy = dSY / hypot (MIN_DS, 1 / (SY * SN));
     35    // sigma = 1 / SX
     36    // dsx = 1 / (SX * SN)
     37    // dsx_o = hypot (1/SX*SN + MIN_DSX)
    3438
    3539    // assign PS_SOURCE_BRIGHTSTAR to bright objects within PSF region of dparams[]
Note: See TracChangeset for help on using the changeset viewer.