IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19912


Ignore:
Timestamp:
Oct 6, 2008, 3:13:42 AM (18 years ago)
Author:
eugene
Message:

adding function to get the background stdev model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotOutput.c

    r19020 r19912  
    22
    33pmReadout *psphotSelectBackground (pmConfig *config,
    4                                    const pmFPAview *view,
    5                                    const bool stdev // return background's standard deviation?
    6                                    ) {
     4                                   const pmFPAview *view) {
    75
    86    bool status;
     
    108
    119    pmFPAfile *file = psMetadataLookupPtr (&status, config->files, "PSPHOT.BACKMDL");
     10    if (!file) return NULL;
     11    if (file->mode == PM_FPA_MODE_INTERNAL) {
     12        background = file->readout;
     13    } else {
     14        background = pmFPAviewThisReadout (view, file->fpa);
     15    }
     16    return background;
     17}
     18
     19pmReadout *psphotSelectBackgroundStdev (pmConfig *config,
     20                                        const pmFPAview *view) {
     21
     22    bool status;
     23    pmReadout *background;
     24
     25    pmFPAfile *file = psMetadataLookupPtr (&status, config->files, "PSPHOT.BACKMDL.STDEV");
    1226    if (!file) return NULL;
    1327    if (file->mode == PM_FPA_MODE_INTERNAL) {
     
    137151    psMetadataItemSupplement (header, recipe, "ANGLE");
    138152
     153    // Image Quality measurements
     154    psMetadataItemSupplement (header, recipe, "IQ_M2");
     155    psMetadataItemSupplement (header, recipe, "IQ_D_M2");
     156    psMetadataItemSupplement (header, recipe, "IQ_M3");
     157    psMetadataItemSupplement (header, recipe, "IQ_D_M3");
     158    psMetadataItemSupplement (header, recipe, "IQ_M4");
     159    psMetadataItemSupplement (header, recipe, "IQ_D_M4");
     160
    139161    // XXX these need to be defined from elsewhere
    140162    psMetadataAdd (header, PS_LIST_TAIL, "FSATUR",   PS_DATA_F32 | PS_META_REPLACE, "SATURATION MAG",      0.0);
Note: See TracChangeset for help on using the changeset viewer.