- Timestamp:
- Mar 17, 2009, 12:08:50 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
-
Property svn:mergeinfo
set to (toggle deleted branches)
/trunk merged eligible /branches/eam_branches/eam_branch_20090303 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ppImage
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/cnb_branches/cnb_branch_20090215/ppImage merged eligible /trunk/ppImage merged eligible /branches/cnb_branch_20090215/ppImage 21495-22685 /branches/eam_branches/eam_branch_20090303/ppImage 23158-23228
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
branches/cnb_branches/cnb_branch_20090301/ppImage/src/ppImageLoop.c
r21183 r23352 25 25 } 26 26 27 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 28 if (dump_file) { 29 pmConfigCamerasCull(config, NULL); 30 pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS,PSASTRO"); 31 32 pmConfigDump(config, input->fpa, dump_file); 33 } 27 pmConfigCamerasCull(config, NULL); 28 pmConfigRecipesCull(config, "PPIMAGE,PPSTATS,PSPHOT,MASKS,PSASTRO,JPEG"); 34 29 35 30 pmFPAview *view = pmFPAviewAlloc(0);// View for level of interest … … 63 58 64 59 // Put version information into the header 65 pmHDU *hdu = pmHDU FromCell(cell);60 pmHDU *hdu = pmHDUGetHighest(input->fpa, chip, cell); 66 61 if (hdu && hdu != lastHDU) { 67 ppImageVersion Metadata(hdu->header);62 ppImageVersionHeader(hdu->header); 68 63 lastHDU = hdu; 69 64 } … … 96 91 } 97 92 98 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT99 if (!ppImageDetrendFree (config, view)) {100 ESCAPE("Unable to free detrend images");101 }93 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT 94 if (!ppImageDetrendFree (config, view)) { 95 ESCAPE("Unable to free detrend images"); 96 } 102 97 } 103 98 … … 105 100 ppImageDetrendRecord(cell, config, options, view); 106 101 } 107 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT108 if (!ppImageDetrendFree (config, view)) {109 ESCAPE("Unable to free detrend images");110 }111 } 112 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT113 if (!ppImageDetrendFree (config, view)) {114 ESCAPE("Unable to free detrend images");115 }102 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT 103 if (!ppImageDetrendFree (config, view)) { 104 ESCAPE("Unable to free detrend images"); 105 } 106 } 107 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT 108 if (!ppImageDetrendFree (config, view)) { 109 ESCAPE("Unable to free detrend images"); 110 } 116 111 117 112 // Apply the fringe correction … … 121 116 } 122 117 } 123 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT124 if (!ppImageFringeFree (config, view)) {125 ESCAPE("Unable to free fringe images");126 }118 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT 119 if (!ppImageFringeFree (config, view)) { 120 ESCAPE("Unable to free fringe images"); 121 } 127 122 128 123 // measure various pixel-based statistics for this image … … 152 147 } 153 148 154 // these may be used by ppImageSubtractBackground.155 // if these are defined as internal files, drop them here156 status = true;157 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL");158 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV");159 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");160 if (!status) {161 psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files");162 psFree (view);163 return false;164 }149 // these may be used by ppImageSubtractBackground. 150 // if these are defined as internal files, drop them here 151 status = true; 152 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL"); 153 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKMDL.STDEV"); 154 status &= pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 155 if (!status) { 156 psError(PSPHOT_ERR_PROG, false, "trouble dropping internal files"); 157 psFree (view); 158 return false; 159 } 165 160 166 161 // binning (used for display) must take place after the background is replaced, if desired … … 219 214 } 220 215 psFree(view); 216 217 // Dump configuration 218 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 219 if (dump_file) { 220 pmConfigDump(config, input->fpa, dump_file); 221 } 221 222 222 223 // Write out summary statistics
Note:
See TracChangeset
for help on using the changeset viewer.
