IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35552


Ignore:
Timestamp:
May 9, 2013, 11:33:22 AM (13 years ago)
Author:
eugene
Message:

merge changes from trunk

Location:
branches/eam_branches/ipp-20130419/ppImage/src
Files:
7 edited
1 copied

Legend:

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

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

    r35081 r35552  
    6565        ppImageMemory.c \
    6666        ppImageAddNoise.c \
    67         ppImageRandomGaussian.c
     67        ppImageRandomGaussian.c \
     68        ppImageAuxiliaryMask.c
    6869
    6970CLEANFILES = *~
  • branches/eam_branches/ipp-20130419/ppImage/src/ppImage.h

    r35081 r35552  
    3030    bool doMaskLow;                     // mask low pixels
    3131    bool doMask;                        // Mask bad pixels
     32    bool doAuxMask;                     // apply auxillary mask
    3233    bool doNonLin;                      // Non-linearity correction
    3334    bool doOverscan;                    // Overscan subtraction
     
    126127  psU16 maskstat_magic;
    127128  psU16 maskstat_advisory;
     129
     130  psString auxVideoMask;                // auxillary video mask file
    128131 
    129132} ppImageOptions;
     
    312315void ppImageRandomGaussianFree(void);
    313316
     317bool ppImageAuxiliaryMask(pmConfig *config, const pmFPAview *view, const ppImageOptions *options, psMetadata *stats);
    314318
    315319#endif
  • branches/eam_branches/ipp-20130419/ppImage/src/ppImageDetrendReadout.c

    r34082 r35552  
    5050        char *Vptr = strchr(psMetadataLookupStr(NULL,input->parent->parent->hdu->header,"CELLMODE"),'V');
    5151        if (Vptr) {
    52           hasVideo = true;
     52          hasVideo = options->hasVideo = true;
    5353          psLogMsg ("ppImage.detrend", PS_LOG_INFO, "VIDEO: %d %d %d\n",(int) options->hasVideo,(int) options->useVideoDark, (int) options->useVideoMask);
    5454        }
  • branches/eam_branches/ipp-20130419/ppImage/src/ppImageLoop.c

    r35081 r35552  
    188188            ESCAPE("Unable to mosaic chip");
    189189        }
     190
     191        if (!ppImageAuxiliaryMask(config, view, options, stats)) {
     192            ESCAPE("Unable to apply auxiliary mask");
     193        }
     194
    190195        timeDetrend += psTimerClear(TIMER_DETREND);
    191196
  • branches/eam_branches/ipp-20130419/ppImage/src/ppImageOptions.c

    r35081 r35552  
    1010    // psFree(options->nonLinearData);
    1111    // psFree(options->nonLinearSource);
     12    psFree(options->auxVideoMask);
    1213}
    1314
     
    2425    options->doVarianceBuild = false;   // Build internal variance
    2526    options->doMask          = false;   // Mask bad pixels
     27    options->doAuxMask       = false;   // apply auxillary mask
    2628    options->doNonLin        = false;   // Non-linearity correction
    2729    options->doOverscan      = false;   // Overscan subtraction
     
    116118    options->normClass       = NULL;    // per-class normalizations refer to this class
    117119
     120    options->auxVideoMask    = NULL;    // auxillary video mask file name
     121
    118122    return options;
    119123}
     
    228232    options->doMaskBurntool  = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL");
    229233    options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD");
     234    options->doAuxMask       = psMetadataLookupBool(NULL, recipe, "MASK.AUXMASK");
     235    if (options->doAuxMask) {
     236        // if we are applying an auxiliary mask we can optionally apply another
     237        // mask to video cells only.
     238        psString auxVideoMask = psMetadataLookupStr(NULL, recipe, "AUX.VIDEO.MASK");
     239        // save the value if defined and not the value "NULL"
     240        if (auxVideoMask && strcmp(auxVideoMask, "NULL")) {
     241            options->auxVideoMask = psStringCopy(auxVideoMask);
     242        }
     243    }
    230244
    231245    // Mask recipe options (note that mask bit values are set in ppImageSetMaskBits.c)
  • branches/eam_branches/ipp-20130419/ppImage/src/ppImagePhotom.c

    r29926 r35552  
    4646                }
    4747                psErrorClear();
    48                 psphotFilesActivate(config, false);
     48                //                psphotFilesActivate(config, false);
    4949            }
    5050
Note: See TracChangeset for help on using the changeset viewer.