IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41397


Ignore:
Timestamp:
Aug 10, 2020, 3:41:20 PM (6 years ago)
Author:
eugene
Message:

distinguish randomly-generated stars from those supplied by a reference catalog (flags2 | PM_SOURCE_MODE2_MATCHED)

Location:
trunk/ppSim/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSim.h

    r41331 r41397  
    5050    float flux;
    5151    float peak;
     52  bool external; // star was supplied (not randomly generated) for this analysis
    5253} ppSimStar;
    5354
  • trunk/ppSim/src/ppSimInsertStars.c

    r41331 r41397  
    163163        source->sky = skyFlux;
    164164
     165        // mark the externally supplied stars:x
     166        if (star->external) {
     167          source->mode2 |= PM_SOURCE_MODE2_MATCHED;
     168        }
     169
    165170        // add the sources to the source array
    166171        psArrayAdd (sources, 100,source);
  • trunk/ppSim/src/ppSimLoadStars.c

    r41173 r41397  
    7979        star->flux = ppSimMagToFlux (star->mag, zp) * expTime;
    8080        star->peak = ppSimStarFluxToPeak (star->flux, seeing);
     81        star->external = TRUE; // stars loaded from catalog are external
    8182
    8283        stars->data[oldSize + i] = star;
  • trunk/ppSim/src/ppSimStars.c

    r23487 r41397  
    99
    1010    ppSimStar *star = (ppSimStar *) psAlloc(sizeof(ppSimStar));
     11
     12    star->ra = NAN;
     13    star->dec = NAN;
     14    star->mag = NAN;
     15    star->x = NAN;
     16    star->y = NAN;
     17    star->flux = NAN;
     18    star->peak = NAN;
     19    star->external = FALSE; // star was supplied (not randomly generated) for this analysis
     20
    1121    psMemSetDeallocator(star, (psFreeFunc) ppSimStarFree);
    12 
    1322    return star;
    1423}
Note: See TracChangeset for help on using the changeset viewer.