Changeset 30777
- Timestamp:
- Mar 3, 2011, 3:18:53 AM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110213/psphot/src
- Files:
-
- 4 edited
-
psphotStack.c (modified) (1 diff)
-
psphotStackChisqImage.c (modified) (1 diff)
-
psphotStackParseCamera.c (modified) (4 diffs)
-
psphotStackReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110213/psphot/src/psphotStack.c
r30776 r30777 3 3 int main (int argc, char **argv) { 4 4 5 // XXX add memory dumps6 psMemDumpSetState(true);5 // uncomment to turn on memory dumps (move this to an option) 6 // psMemDumpSetState(true); 7 7 8 8 psTimerStart ("complete"); -
branches/eam_branches/ipp-20110213/psphot/src/psphotStackChisqImage.c
r30624 r30777 101 101 for (int ix = 0; ix < inImage->numCols; ix++) { 102 102 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; 104 105 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 106 108 } 107 109 } -
branches/eam_branches/ipp-20110213/psphot/src/psphotStackParseCamera.c
r30624 r30777 172 172 } 173 173 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 174 193 // generate an pmFPAimage for the chisqImage 175 194 // XXX output of these files should be optional … … 180 199 return false; 181 200 } 182 chisqImage->save = true;201 chisqImage->save = saveChisq; 183 202 184 203 pmFPAfile *chisqMask = pmFPAfileDefineOutput(config, chisqImage->fpa, "PSPHOT.CHISQ.MASK"); … … 191 210 return NULL; 192 211 } 193 chisqMask->save = true;212 chisqMask->save = saveChisq; 194 213 195 214 pmFPAfile *chisqVariance = pmFPAfileDefineOutput(config, chisqImage->fpa, "PSPHOT.CHISQ.VARIANCE"); … … 202 221 return NULL; 203 222 } 204 chisqVariance->save = true;223 chisqVariance->save = saveChisq; 205 224 } 206 225 -
branches/eam_branches/ipp-20110213/psphot/src/psphotStackReadout.c
r30776 r30777 127 127 } 128 128 129 psMemDump("sourcestats"); 130 129 131 // generate the objects (object unify the sources from the different images) 130 132 // XXX this could just match the detections for the chisq image, and not bother measuring the … … 132 134 psArray *objects = psphotMatchSources (config, view, STACK_SRC); 133 135 136 psMemDump("matchsources"); 137 134 138 if (!strcasecmp (breakPt, "TEST2")) { 135 139 psFree(objects); … … 143 147 return psphotReadoutCleanup (config, view, STACK_SRC); 144 148 } 149 150 psMemDump("sourcestats"); 145 151 146 152 // find blended neighbors of very saturated stars (detections->newSources)
Note:
See TracChangeset
for help on using the changeset viewer.
