IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 42331


Ignore:
Timestamp:
Jan 30, 2023, 9:43:21 AM (3 years ago)
Author:
eugene
Message:

adding code to support the new (2023.01.30) non-linearity analysis based on new models determined by Hua Gao

Location:
branches/eam_branches/ppImage.20230123/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ppImage.20230123/src/Makefile.am

    r41894 r42331  
    2323        ppImageDetrendRecord.c \
    2424        ppImageDetrendNonLinear.c \
     25        ppImageDetrendNewNonLinear.c \
    2526        ppImageDetrendFringe.c \
    2627        ppImageDetrendFree.c \
  • branches/eam_branches/ppImage.20230123/src/ppImage.h

    r42293 r42331  
    3535    bool doAuxMask;                     // apply auxillary mask
    3636    bool doNonLin;                      // Non-linearity correction
     37    bool doNewNonLin;                   // Non-linearity correction
    3738    bool doOverscan;                    // Overscan subtraction
    3839    bool doNoiseMap;                    // Bias subtraction
     
    175176bool ppImageDetrendBias(pmReadout *inputReadout, pmReadout *bias, pmReadout *dark, ppImageOptions *options);
    176177
     178bool ppImageDetrendNewNonLinear(pmReadout *input, pmFPAview *linearity, pmConfig *config);
     179
    177180bool ppImageDetrendNonLinear(pmReadout *input, pmFPAview *linearity, pmConfig *config);
    178181bool ppImageDetrendNonLinearLookup(pmReadout *input, psMetadataItem *dataItem);
  • branches/eam_branches/ppImage.20230123/src/ppImageDetrendNewNonLinear.c

    r42328 r42331  
    55    bool status;
    66
    7     pmFPAfile *linearity_file = psMetadataLookupPtr(&status, config->files, "PPIMAGE.LINEARITY");
     7    pmFPAfile *linearity_file = psMetadataLookupPtr(&status, config->files, "PPIMAGE.NEWNONLIN");
    88    psFits *linearity_fits = linearity_file->fits;
    99
     
    1616    // if pmFPAfile has been loaded (by ppImageDefineFile in ppImageParseCamera), then
    1717    // the file corresponding to the current chip is found and opened
     18    // NOTE: if the extname is missing, we skip the correction
    1819    if (!psFitsMoveExtName(linearity_fits, extname)) {
    19         psError(PS_ERR_IO, false, "Unable to move to non-linearity (v2023) table %s", extname);
    20         return(false);
     20        psLogMsg ("ppImageDetrendNewNonLinear", 4, "Unable to move to non-linearity (v2023) table %s, skipping", extname);
     21        return(true);
    2122    }
    2223 
Note: See TracChangeset for help on using the changeset viewer.