Changeset 10589
- Timestamp:
- Dec 8, 2006, 2:43:04 PM (20 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 3 edited
-
ppImageLoop.c (modified) (2 diffs)
-
ppImageMosaic.c (modified) (1 diff)
-
ppImageRebinReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/ppImageLoop.c
r10439 r10589 142 142 } 143 143 144 #if 0 144 145 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 145 146 return false; 146 147 } 147 } 148 149 ppImageMosaicChip(config, view, "PPIMAGE.OUTPUT.CHIP", "PPIMAGE.OUTPUT"); 150 ppImageRebinChip(config, view, "PPIMAGE.BIN1", "PPIMAGE.OUTPUT.CHIP"); 151 ppImageRebinChip(config, view, "PPIMAGE.BIN2", "PPIMAGE.OUTPUT.CHIP"); 148 #endif 149 150 } 151 152 if (!ppImageMosaicChip(config, view, "PPIMAGE.OUTPUT.CHIP", "PPIMAGE.OUTPUT")) { 153 psError(PS_ERR_UNKNOWN, false, "Unable to mosaic chip.\n"); 154 return false; 155 } 156 if (!ppImageRebinChip(config, view, "PPIMAGE.BIN1", "PPIMAGE.OUTPUT.CHIP")) { 157 psError(PS_ERR_UNKNOWN, false, "Unable to bin chip.\n"); 158 return false; 159 } 160 if (!ppImageRebinChip(config, view, "PPIMAGE.BIN2", "PPIMAGE.OUTPUT.CHIP")) { 161 psError(PS_ERR_UNKNOWN, false, "Unable to bin chip.\n"); 162 return false; 163 } 152 164 153 165 // we perform photometry on the readouts of this chip in the output … … 156 168 } 157 169 170 // Close cells 171 view->cell = -1; 172 while ((cell = pmFPAviewNextCell(view, input->fpa, 1)) != NULL) { 173 if (!cell->process || !cell->file_exists) { 174 continue; 175 } 176 177 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 178 return false; 179 } 180 } 181 182 // Close chip 158 183 if (!pmFPAfileIOChecks(config, view, PM_FPA_AFTER)) { 159 184 return false; -
trunk/ppImage/src/ppImageMosaic.c
r10214 r10589 21 21 } 22 22 23 pmFPAAddSourceFromView(out->fpa, view, out->format);24 23 pmChip *outChip = pmFPAviewThisChip(view, out->fpa); 25 24 pmChip *inChip = pmFPAviewThisChip(view, in->fpa); 25 if (!outChip->hdu && !outChip->parent->hdu) { 26 pmFPAAddSourceFromView(out->fpa, view, out->format); 27 } 26 28 27 29 // Copy over concepts -
trunk/ppImage/src/ppImageRebinReadout.c
r10502 r10589 11 11 12 12 pmFPAfile *inFile = psMetadataLookupPtr (NULL, config->files, inName); 13 if (inFile == NULL) return NULL;13 if (inFile == NULL) return false; 14 14 15 15 pmFPAfile *outFile = psMetadataLookupPtr (NULL, config->files, outName); 16 if (outFile == NULL) return NULL;16 if (outFile == NULL) return false; 17 17 18 18 // XXX double check that chip != -1? … … 20 20 pmChip *inChip = pmFPAviewThisChip (view, inFile->fpa); 21 21 pmChip *outChip = pmFPAviewThisChip (view, outFile->fpa); 22 pmChipCopyStructure (outChip, inChip, outFile->xBin, outFile->yBin); 22 if (!pmChipCopyStructure (outChip, inChip, outFile->xBin, outFile->yBin)) { 23 psError(PS_ERR_UNKNOWN, false, "Unable to copy chip structure."); 24 return false; 25 } 23 26 24 27 while ((cell = pmFPAviewNextCell (view, inFile->fpa, 1)) != NULL) { … … 56 59 binItem->data.S32 = yBin * outFile->yBin; 57 60 } 61 58 62 return true; 59 63 }
Note:
See TracChangeset
for help on using the changeset viewer.
