IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 18, 2008, 10:31:30 AM (18 years ago)
Author:
Paul Price
Message:

Need to set the mask values for psphot.

File:
1 edited

Legend:

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

    r17698 r18612  
    1515    pmFPACopy(photFile->fpa, readout->parent->parent->parent);
    1616
    17     {
    18         // Need to ensure aperture residual is not calculated
    19         psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PSPHOT_RECIPE); // Recipe
    20         psMetadataItem *item = psMetadataLookup(recipe, "MEASURE.APTREND"); // Item determining aptrend
    21         if (!item) {
    22             psWarning("Unable to find MEASURE.APTREND in psphot recipe");
    23             psErrorClear();
    24         } else {
    25             item->data.B = false;
    26         }
     17    // Need to ensure aperture residual is not calculated
     18    psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PSPHOT_RECIPE); // Recipe
     19    psMetadataItem *item = psMetadataLookup(recipe, "MEASURE.APTREND"); // Item determining aptrend
     20    if (!item) {
     21        psWarning("Unable to find MEASURE.APTREND in psphot recipe");
     22        psErrorClear();
     23    } else {
     24        item->data.B = false;
    2725    }
     26
     27    // set maskValue and markValue in the psphot recipe
     28    psMaskType maskValue = pmConfigMaskGet("BLANK", config); // Bits to mask
     29    psMaskType markValue = pmConfigMaskGet("MARK.VALUE", config); // Bits to use for marking
     30    psMetadataAddU8 (recipe, PS_LIST_TAIL, "MASK.PSPHOT", PS_META_REPLACE, "Bits to mask", maskValue);
     31    psMetadataAddU8 (recipe, PS_LIST_TAIL, "MARK.PSPHOT", PS_META_REPLACE, "Bits to use for mark", markValue);
    2832
    2933    if (!psphotReadout(config, view)) {
Note: See TracChangeset for help on using the changeset viewer.