IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35383 for trunk/psModules


Ignore:
Timestamp:
Apr 9, 2013, 1:33:36 PM (13 years ago)
Author:
watersc1
Message:

ppStack changes to fix source matching bug.

Location:
trunk/psModules/src/objects
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceMatch.c

    r35240 r35383  
    630630
    631631psVector *pmSourceMatchRelphot(const psArray *matches, // Array of matches
     632                               psArray *matchedSources, // Array of averaged sources
    632633                               const psVector *zp, // Zero points for each image (including airmass term)
    633634                               float tol, // Relative tolerance for convergence
     
    648649    PS_ASSERT_VECTOR_TYPE(zp, PS_TYPE_F32, NULL);
    649650    PS_ASSERT_FLOAT_LARGER_THAN(transClip, 0.0, NULL);
    650 
     651    PS_ASSERT_ARRAY_NON_NULL(matchedSources, NULL);
     652   
    651653    sys1 *= sys1;
    652654    sys2 *= sys2;
     
    742744    }
    743745
     746    for (int i = 0; i < matches->n; i++) {
     747      pmSource *source = pmSourceAlloc();
     748      source->psfMag = stars->data.F32[i];
     749      psArrayAdd(matchedSources,matchedSources->n,source);
     750    }
     751   
    744752    psFree(photo);
    745753    psFree(badImage);
  • trunk/psModules/src/objects/pmSourceMatch.h

    r35240 r35383  
    7474/// Perform relative photometry to calibrate images
    7575psVector *pmSourceMatchRelphot(const psArray *matches, // Array of matches
     76                               psArray *matchedSources, // Array of average sources
    7677                               const psVector *zp, // Zero points for each image (including airmass term)
    7778                               float tol, // Relative tolerance for convergence
Note: See TracChangeset for help on using the changeset viewer.