IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 9, 2017, 10:18:58 AM (9 years ago)
Author:
eugene
Message:

fix measure offset problem; add option to use PSF not KRON for stack McalAPER

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ohana.20170822/src/relphot/src/setMrelCatalog.c

    r40262 r40265  
    22
    33# if (0)
    4 # define TEST_OBJ_ID 0x0000000e
    5 # define TEST_CAT_ID 0x000076ee
     4# define TEST_OBJ_ID 0x000098f9
     5# define TEST_CAT_ID 0x00005ad3
    66# else
    77# define TEST_OBJ_ID 0
     
    688688
    689689    off_t meas = bestEntryMax;
     690    off_t measSeq = meas + measureOffset;
     691
    690692    myAssert (meas >= 0, "this should not happen");
    691693
     
    695697   
    696698    // match measurement to its image (this is just a check, right?)
    697     if (getImageEntry (meas, cat) < 0) {
     699    if (getImageEntry (measSeq, cat) < 0) {
    698700      // measurements without an image are either external reference photometry or
    699701      // data for which the associated image has not been loaded (probably because of
     
    704706      Mgrid    = 0.0;
    705707    } else {
    706       McalPSF   = getMcal  (meas, cat, MAG_CLASS_PSF);
    707       McalAPER  = USE_MCAL_PSF_FOR_STACK_APER ? getMcal  (meas, cat, MAG_CLASS_PSF) : getMcal  (meas, cat, MAG_CLASS_KRON);
    708       Mmos      = getMmos  (meas, cat);
    709       Mgrid     = getMgrid (meas, cat);
     708      McalPSF   = getMcal  (measSeq, cat, MAG_CLASS_PSF);
     709      McalAPER  = USE_MCAL_PSF_FOR_STACK_APER ? getMcal  (measSeq, cat, MAG_CLASS_PSF) : getMcal  (measSeq, cat, MAG_CLASS_KRON);
     710      Mmos      = getMmos  (measSeq, cat);
     711      Mgrid     = getMgrid (measSeq, cat);
    710712    }
    711713   
Note: See TracChangeset for help on using the changeset viewer.