- Timestamp:
- Jan 27, 2010, 9:17:17 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.stack.20100120/src/psphotEfficiency.c
r26688 r26691 6 6 //#define TESTING 7 7 8 9 # if 0 8 10 9 11 // Calculate the limiting magnitude for an image … … 148 150 } 149 151 152 # endif 150 153 151 154 bool psphotEfficiency (pmConfig *config, const pmFPAview *view) … … 157 160 psAssert (recipe, "missing recipe?"); 158 161 159 int num = psMetadata AddS32 (&status, config->arguments, "PSPHOT.INPUT.NUM");162 int num = psMetadataLookupS32 (&status, config->arguments, "PSPHOT.INPUT.NUM"); 160 163 psAssert (status, "programming error: must define PSPHOT.INPUT.NUM"); 161 164 162 165 // loop over the available readouts 163 166 for (int i = 0; i < num; i++) { 164 if (!psphot Readout (config, view, "PSPHOT.INPUT", i, recipe)) {167 if (!psphotEfficiencyReadout (config, view, "PSPHOT.INPUT", i, recipe)) { 165 168 psError (PSPHOT_ERR_CONFIG, false, "failed on saturated star deblend analysis for PSPHOT.INPUT entry %d", i); 166 169 return false; … … 173 176 bool psphotEfficiencyReadout(pmConfig *config, const pmFPAview *view, const char *filename, int index, psMetadata *recipe) 174 177 { 178 # if 0 179 bool status = true; 180 175 181 psTimerStart("psphot.fake"); 176 182 177 183 // find the currently selected readout 178 184 pmFPAfile *file = pmFPAfileSelectSingle(config->files, filename, index); // File of interest 179 psAssert ( readout, "missing file?");185 psAssert (file, "missing file?"); 180 186 181 187 pmReadout *readout = pmFPAviewThisReadout(view, file->fpa); … … 512 518 psLogMsg("psphot", PS_LOG_INFO, "Detection efficiency: %lf sec\n", psTimerClear("psphot.fake")); 513 519 520 # endif 514 521 515 522 return true;
Note:
See TracChangeset
for help on using the changeset viewer.
