IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 3, 2013, 1:43:50 PM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130509/ppImage/src
Files:
9 edited
3 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/ppImage/src

  • branches/eam_branches/ipp-20130509/ppImage/src/Makefile.am

    r35531 r35747  
    6666        ppImageAddNoise.c \
    6767        ppImageRandomGaussian.c \
    68         ppImageAuxiliaryMask.c
     68        ppImageAuxiliaryMask.c \
     69        ppImageBurntoolApply.c
    6970
    7071CLEANFILES = *~
  • branches/eam_branches/ipp-20130509/ppImage/src/ppImage.h

    r35533 r35747  
    2626    bool doMaskBuild;                   // Build internal mask
    2727    bool doVarianceBuild;               // Build internal variance map
     28    bool doApplyBurntool;               // apply burntool correction
    2829    bool doMaskBurntool;                // mask potential burntool trails
    2930    bool doMaskSat;                     // mask saturated pixels
     
    182183bool ppImageCheckNoise(pmConfig *config, ppImageOptions *options, pmFPAview *view);
    183184
    184 bool ppImageBurntoolMask(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *mask);
     185bool ppImageBurntoolMask(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout);
     186bool ppImageBurntoolMaskFromTable(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout);
     187
     188bool ppImageBurntoolApply(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *readout);
    185189
    186190bool ppImageDetrendPatternApply(pmConfig *config, pmChip *chip, const pmFPAview *inputView, const ppImageOptions *options);
  • branches/eam_branches/ipp-20130509/ppImage/src/ppImageArguments.c

    r31155 r35747  
    117117    pmConfigFileSetsMD (config->arguments, &argc, argv, "LINEARITY", "-linearity", "-linearlist");
    118118
     119    if ((argnum = psArgumentGet(argc, argv, "-burntool"))) {
     120        psArgumentRemove(argnum, &argc, argv);
     121        psMetadataAddStr(config->arguments, PS_LIST_TAIL, "BURNTOOL.TABLE", PS_META_REPLACE, "", argv[argnum]);
     122        psArgumentRemove(argnum, &argc, argv);
     123    }
     124
    119125    // chip selection is used to limit chips to be processed
    120126    if ((argnum = psArgumentGet (argc, argv, "-chip"))) {
  • branches/eam_branches/ipp-20130509/ppImage/src/ppImageAuxiliaryMask.c

    r35533 r35747  
    6060
    6161    if (!options->doAuxMask) {
    62         psLogMsg ("ppImage", PS_LOG_INFO, "Auxiliary mask not enabled.");
     62        psLogMsg ("ppImage", PS_LOG_DETAIL, "Auxiliary mask not enabled.");
    6363        return true;
    6464    }
  • branches/eam_branches/ipp-20130509/ppImage/src/ppImageDetrendReadout.c

    r35531 r35747  
    5656    }
    5757    done_video_check:
    58    
     58
    5959    // Masking on the basis of pixel value needs to be done before anything else, so the values are pristine.
    6060    if (options->doMaskBuild) {
     
    7474      pmMaskBadPixels(input, mask, options->maskValue);
    7575    }
     76
     77    if (options->doApplyBurntool)
     78    {
     79        // extern bool ppImageBurntoolApply(pmConfig *, ppImageOptions *, pmFPAview *, pmReadout *);
     80        ppImageBurntoolApply(config, options, view, input);
     81    }
     82   
    7683    if (options->doMaskBurntool) {
    77       ppImageBurntoolMask(config,options,view,input);
     84        if (options->doApplyBurntool) {
     85            // build burntool mask from data input burntool table
     86            ppImageBurntoolMaskFromTable(config,options,view,input);
     87        } else {
     88            // build burntool mask from data in the input image's fits extension
     89            ppImageBurntoolMask(config,options,view,input);
     90        }
    7891    }
    7992
  • branches/eam_branches/ipp-20130509/ppImage/src/ppImageDetrendRecord.c

    r29882 r35747  
    7676
    7777    detrendRecord(options->doNonLin,   detrend, config, view, "PPIMAGE.LINEARITY","DETREND.NONLIN",   "Non-linearity table filename");
     78
     79    detrendRecord(options->doDark & options->useVideoDark, detrend, config, view, "PPIMAGE.VIDEODARK", "DETREND.VIDEODARK", "VideoDark filename");
     80    detrendRecord(options->doMask & options->useVideoMask, detrend, config, view, "PPIMAGE.VIDEOMASK", "DETREND.VIDEOMASK", "VideoMASK filename");
    7881    psFree (detrend);
    7982    return true;
  • branches/eam_branches/ipp-20130509/ppImage/src/ppImageOptions.c

    r35531 r35747  
    2323    options->doMaskLow       = false;   // mask low pixels
    2424    options->doMaskBurntool  = false;   // mask potential burntool trails
     25    options->doApplyBurntool = false;   // apply burntool correction
    2526    options->doVarianceBuild = false;   // Build internal variance
    2627    options->doMask          = false;   // Mask bad pixels
     
    231232    options->doMaskLow       = psMetadataLookupBool(NULL, recipe, "MASK.LOW");
    232233    options->doMaskBurntool  = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL");
     234    options->doApplyBurntool = psMetadataLookupBool(NULL, recipe, "APPLY.BURNTOOL");
    233235    options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD");
    234236    options->doAuxMask       = psMetadataLookupBool(NULL, recipe, "MASK.AUXMASK");
  • branches/eam_branches/ipp-20130509/ppImage/src/ppImageParseCamera.c

    r35557 r35747  
    184184        }
    185185        outCTE->save = true;
     186    }
     187    if (options->doApplyBurntool) {
     188        // If no burntool file was supplied do not fail. (camera_exp.pl does not supply it
     189        // for example.
     190        if (!psMetadataLookupStr(NULL, config->arguments, "BURNTOOL.TABLE")) {
     191            psWarning("BURNTOOL.TABLE not supplied setting doApplyBurntool to false");
     192            options->doApplyBurntool = false;
     193        }
    186194    }
    187195
Note: See TracChangeset for help on using the changeset viewer.