IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 3, 2011, 3:18:53 AM (15 years ago)
Author:
eugene
Message:

turn off memdumps; make output images optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110213/psphot/src/psphotStackParseCamera.c

    r30624 r30777  
    172172    }
    173173
     174    // select the appropriate recipe information
     175    psMetadata *recipe  = psMetadataLookupPtr (&status, config->recipes, PSPHOT_RECIPE);
     176    bool saveCnv = psMetadataLookupBool(&status, recipe, "SAVE.CNV");
     177    bool saveChisq = psMetadataLookupBool(&status, recipe, "SAVE.CHISQ");
     178
     179    // loop over the available readouts
     180    for (int i = 0; i < nInputs; i++) {
     181        pmFPAfile *file = NULL;
     182
     183        file = pmFPAfileSelectSingle(config->files, "PSPHOT.STACK.OUTPUT.IMAGE", i);
     184        file->save = saveCnv;
     185
     186        file = pmFPAfileSelectSingle(config->files, "PSPHOT.STACK.OUTPUT.MASK", i);
     187        file->save = saveCnv;
     188
     189        file = pmFPAfileSelectSingle(config->files, "PSPHOT.STACK.OUTPUT.VARIANCE", i);
     190        file->save = saveCnv;
     191    }
     192
    174193    // generate an pmFPAimage for the chisqImage
    175194    // XXX output of these files should be optional
     
    180199            return false;
    181200        }
    182         chisqImage->save = true;
     201        chisqImage->save = saveChisq;
    183202
    184203        pmFPAfile *chisqMask = pmFPAfileDefineOutput(config, chisqImage->fpa, "PSPHOT.CHISQ.MASK");
     
    191210            return NULL;
    192211        }
    193         chisqMask->save = true;
     212        chisqMask->save = saveChisq;
    194213
    195214        pmFPAfile *chisqVariance = pmFPAfileDefineOutput(config, chisqImage->fpa, "PSPHOT.CHISQ.VARIANCE");
     
    202221            return NULL;
    203222        }
    204         chisqVariance->save = true;
     223        chisqVariance->save = saveChisq;
    205224    }
    206225
Note: See TracChangeset for help on using the changeset viewer.