IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30777


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

turn off memdumps; make output images optional

Location:
branches/eam_branches/ipp-20110213/psphot/src
Files:
4 edited

Legend:

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

    r30776 r30777  
    33int main (int argc, char **argv) {
    44
    5     // XXX add memory dumps
    6     psMemDumpSetState(true);
     5    // uncomment to turn on memory dumps (move this to an option)
     6    // psMemDumpSetState(true);
    77
    88    psTimerStart ("complete");
  • branches/eam_branches/ipp-20110213/psphot/src/psphotStackChisqImage.c

    r30624 r30777  
    101101        for (int ix = 0; ix < inImage->numCols; ix++) {
    102102            if (inMask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] & maskVal) continue;
    103             chiImage->data.F32[iy][ix] += PS_SQR(inImage->data.F32[iy][ix]) / inVariance->data.F32[iy][ix];
     103            // XXX TEST chiImage->data.F32[iy][ix] += PS_SQR(inImage->data.F32[iy][ix]) / inVariance->data.F32[iy][ix];
     104            chiImage->data.F32[iy][ix] = 0.0;
    104105            chiVariance->data.F32[iy][ix] = 1.0; // ?? what is the right value?  just init to this?
    105             chiMask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] = 0x00; // we have valid data so unmask this pixel
     106            // XXX TEST chiMask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] = 0x00; // we have valid data so unmask this pixel
     107            chiMask->data.PS_TYPE_IMAGE_MASK_DATA[iy][ix] = 0x01; // we have valid data so unmask this pixel
    106108        }
    107109    }
  • 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
  • branches/eam_branches/ipp-20110213/psphot/src/psphotStackReadout.c

    r30776 r30777  
    127127    }
    128128
     129    psMemDump("sourcestats");
     130
    129131    // generate the objects (object unify the sources from the different images)
    130132    // XXX this could just match the detections for the chisq image, and not bother measuring the
     
    132134    psArray *objects = psphotMatchSources (config, view, STACK_SRC);
    133135
     136    psMemDump("matchsources");
     137
    134138    if (!strcasecmp (breakPt, "TEST2")) {
    135139        psFree(objects);
     
    143147        return psphotReadoutCleanup (config, view, STACK_SRC);
    144148    }
     149
     150    psMemDump("sourcestats");
    145151
    146152    // find blended neighbors of very saturated stars (detections->newSources)
Note: See TracChangeset for help on using the changeset viewer.