Changeset 25081 for trunk/magic/censorObjects/src/censorLoop.c
- Timestamp:
- Aug 14, 2009, 3:30:20 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/magic/censorObjects/src/censorLoop.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/magic/censorObjects/src/censorLoop.c
r25080 r25081 22 22 */ 23 23 bool censorLoop (pmConfig *config) { 24 //bool status;25 24 pmChip *chip; 26 25 pmCell *cell; … … 39 38 } 40 39 41 // physical pixel scale in microns per pixel42 //double pixelScale = psMetadataLookupF32 (&status, recipe, "PSASTRO.PIXEL.SCALE");43 //if (!status) {44 // psError(PS_ERR_IO, true, "Failed to lookup pixel scale");45 // return false;46 //}47 48 49 40 // select the input data sources 50 41 pmFPAfile *input = psMetadataLookupPtr (NULL, config->files, "CENSOR.INPUT"); … … 61 52 } 62 53 63 64 #if 065 pmFPAfileActivate(config->files, false, NULL);66 pmFPAfileActivate(config->files, true, "CENSOR.INPUT");67 #endif68 69 54 pmFPAview *view = pmFPAviewAlloc (0); 70 71 72 73 74 55 75 56 bool badMaskFile = false; … … 81 62 if (!pmFPAfileIOChecks (config, view, PM_FPA_BEFORE)) ESCAPE; 82 63 83 84 // check PHU header to see if we are using mosaic-level or per-chip astrometry 64 // check PHU header to see if we are using mosaic-level or per-chip astrometry 85 65 bool bilevelAstrometry = false; 86 66 pmHDU *phu = pmFPAviewThisPHU (view, input->fpa); … … 92 72 pmAstromReadBilevelMosaic (input->fpa, phu->header); 93 73 } 94 95 96 74 97 75 while ((chip = pmFPAviewNextChip (view, input->fpa, 1)) != NULL) { … … 108 86 pmHDU *hdu = pmFPAviewThisHDU (view, input->fpa); 109 87 110 // int nAstro = psMetadataLookupS32 (&status, hdu->header, "NASTRO");111 // if (!nAstro) {psLogMsg ("censor", 3, "nothing %f sec\n", psTimerMark ("censor"));}112 113 //continue;114 88 if (bilevelAstrometry) { 115 89 if (!pmAstromReadBilevelChip (chip, hdu->header)) { … … 123 97 } 124 98 } 125 126 127 128 129 99 130 100 while ((cell = pmFPAviewNextCell (view, input->fpa, 1)) != NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.
