IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25299 for trunk/ppImage/src


Ignore:
Timestamp:
Sep 8, 2009, 5:32:55 PM (17 years ago)
Author:
watersc1
Message:

Merge my branch back into the trunk. This includes:

ipp_cleanup.pl : and associated edits to allow cleanup to work
burntool : updated to newest version, ipp_apply_burntool.pl modified to use persist=t options
ppImageBurntoolMask.c : masks region burntool identifies
psastro : allow selection of wcs header format
addtool : splits addstar step off from the camera stage

Location:
trunk
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ppImage/src/Makefile.am

    r24229 r25299  
    5454        ppImageDefineFile.c \
    5555        ppImageSetMaskBits.c \
     56        ppImageBurntoolMask.c \
    5657        ppImageParityFlip.c \
    5758        ppImageCheckCTE.c \
  • trunk/ppImage/src/ppImage.h

    r24903 r25299  
    2626    bool doMaskBuild;                   // Build internal mask
    2727    bool doVarianceBuild;               // Build internal variance map
     28    bool doMaskBurntool;                // mask potential burntool trails
    2829    bool doMaskSat;                     // mask saturated pixels
    2930    bool doMaskLow;                     // mask low pixels
     
    7475    psImageMaskType darkMask;           // Mask value to give bad dark pixels
    7576    psImageMaskType blankMask;          // Mask value to give blank pixels
    76 
     77    psImageMaskType burntoolMask;       // Suspect pixels that fall where a burntool trail is expected.
    7778    // non-linear correction parameters
    7879    psDataType nonLinearType;
     
    8283    // options for the analysis
    8384    pmOverscanOptions *overscan;        // Overscan options
    84 
     85    int burntoolTrails;
    8586    // binning parameters
    8687    int xBin1;                          // x-binning, scale 1
     
    156157bool ppImageCheckCTE(pmConfig *config, ppImageOptions *options, pmFPAview *view);
    157158
     159bool ppImageBurntoolMask(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *mask);
     160
    158161// Record which detrend file was used for the detrending
    159162bool ppImageDetrendRecord(
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r24903 r25299  
    2626        pmMaskBadPixels(input, mask, options->maskValue);
    2727    }
     28    if (options->doMaskBurntool) {
     29      ppImageBurntoolMask(config,options,view,input);
     30    }
     31
    2832
    2933# if 0
  • trunk/ppImage/src/ppImageOptions.c

    r24903 r25299  
    2121    options->doMaskSat       = false;   // mask saturated pixels
    2222    options->doMaskLow       = false;   // mask low pixels
     23    options->doMaskBurntool  = false;   // mask potential burntool trails
    2324    options->doVarianceBuild = false;   // Build internal variance
    2425    options->doMask          = false;   // Mask bad pixels
     
    6465    options->blankMask       = 0x00;    // Blank (no data, cell gap) pixels (supplied to pmChipMosaic, pmFPAMosaic)
    6566    options->markValue       = 0x00;    // A safe bit for internal marking
    66 
     67    options->burntoolMask    = 0x00;    // Suspect pixels that fall where a burntool trail is expected.
     68    options->burntoolTrails  = 0x00;    // Which types of burntool areas to mask.
    6769    // crosstalk options
    6870    options->doCrosstalkMeasure = false;   // measure crosstalk
     
    219221    options->doMaskSat   = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED");
    220222    options->doMaskLow   = psMetadataLookupBool(NULL, recipe, "MASK.LOW");
     223    options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL");
    221224    options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD");
    222225
     
    245248    options->applyParity = psMetadataLookupBool(NULL, recipe, "APPLY.CELL.PARITY");
    246249
     250    options->burntoolTrails = psMetadataLookupU16(&status, recipe, "BURNTOOL.TRAILS");
     251    if (!status) {
     252      psWarning("BURNTOOL.TRAILS not found in recipe: setting to default value.\n");
     253    }
     254   
    247255    // binned image options
    248256    options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN");
    249257    if (!status) {
    250258        psWarning("BIN1.XBIN not found in recipe: setting to default value.\n");
     259        options->xBin1 = 4;
    251260    }
    252261    options->yBin1 = psMetadataLookupS32(&status, recipe, "BIN1.YBIN");
    253262    if (!status) {
    254263        psWarning("BIN1.YBIN not found in recipe: setting to default value.\n");
    255         options->yBin1 = 16;
     264        options->yBin1 = 4;
    256265    }
    257266
  • trunk/ppImage/src/ppImageSetMaskBits.c

    r24079 r25299  
    3838    psAssert (options->lowMask, "low mask not set");
    3939
     40    // mask for suspect regions due to burntool
     41    options->burntoolMask = pmConfigMaskGet("BURNTOOL",config);
     42    psAssert (options->burntoolMask, "burntool mask not set");
     43   
    4044    // save MASK and MARK on the PSPHOT recipe
    4145    psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
Note: See TracChangeset for help on using the changeset viewer.