Changeset 23242 for trunk/psModules/src/imcombine
- Timestamp:
- Mar 9, 2009, 4:19:37 PM (17 years ago)
- Location:
- trunk/psModules
- Files:
-
- 7 edited
- 2 copied
-
. (modified) (1 prop)
-
src/imcombine/Makefile.am (modified) (2 diffs)
-
src/imcombine/pmPSFEnvelope.c (modified) (6 diffs)
-
src/imcombine/pmStack.c (modified) (1 diff)
-
src/imcombine/pmStackVisual.c (copied) (copied from branches/cnb_branches/cnb_branch_20090215/psModules/src/imcombine/pmStackVisual.c )
-
src/imcombine/pmStackVisual.h (copied) (copied from branches/cnb_branches/cnb_branch_20090215/psModules/src/imcombine/pmStackVisual.h )
-
src/imcombine/pmSubtractionIO.c (modified) (3 diffs)
-
src/imcombine/pmSubtractionVisual.c (modified) (10 diffs)
-
src/imcombine/pmSubtractionVisual.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/cnb_branches/cnb_branch_20090215/psModules merged eligible /branches/cnb_branch_20090215/psModules 21495-22685
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/psModules/src/imcombine/Makefile.am
r21422 r23242 19 19 pmSubtractionThreads.c \ 20 20 pmPSFEnvelope.c \ 21 pmSubtractionVisual.c 21 pmSubtractionVisual.c \ 22 pmStackVisual.c 22 23 23 24 pkginclude_HEADERS = \ … … 37 38 pmSubtractionThreads.h \ 38 39 pmPSFEnvelope.h \ 39 pmSubtractionVisual.h 40 pmSubtractionVisual.h \ 41 pmStackVisual.h 40 42 41 43 CLEANFILES = *~ -
trunk/psModules/src/imcombine/pmPSFEnvelope.c
r23191 r23242 30 30 31 31 #include "pmPSFEnvelope.h" 32 32 #include "pmStackVisual.h" 33 33 34 34 … … 165 165 psStringAppend(&name, "psf_field_%03d.fits", i); 166 166 psFits *fits = psFitsOpen(name, "w"); 167 pmStackVisualPlotTestImage(fakeRO->image, name); 167 168 psFitsWriteImage(fits, NULL, fakeRO->image, 0, NULL); 168 169 psFitsClose(fits); … … 182 183 // Write out the envelope 183 184 psFits *fits = psFitsOpen("psf_field_envelope.fits", "w"); 185 pmStackVisualPlotTestImage(envelope, "psf_field_envelope.fits"); 184 186 psFitsWriteImage(fits, NULL, envelope, 0, NULL); 185 187 psFitsClose(fits); … … 234 236 // Write out the envelope 235 237 psFits *fits = psFitsOpen("psf_field_full.fits", "w"); 238 pmStackVisualPlotTestImage(readout->image, "psf_field_full.fits"); 236 239 psFitsWriteImage(fits, NULL, readout->image, 0, NULL); 237 240 psFitsClose(fits); … … 315 318 { 316 319 psFits *fits = psFitsOpen("psf_field_model.fits", "w"); 320 pmStackVisualPlotTestImage(generated->image, "psf_field_model.fits"); 317 321 psFitsWriteImage(fits, NULL, generated->image, 0, NULL); 318 322 psFitsClose(fits); … … 321 325 { 322 326 psFits *fits = psFitsOpen("psf_field_resid.fits", "w"); 327 pmStackVisualPlotTestImage(generated->image, "psf_field_resid.fits"); 323 328 psFitsWriteImage(fits, NULL, generated->image, 0, NULL); 324 329 psFitsClose(fits); -
trunk/psModules/src/imcombine/pmStack.c
r21476 r23242 8 8 * @author GLG, MHPCC 9 9 * 10 * @version $Revision: 1.48 $ $Name: not supported by cvs2svn $11 * @date $Date: 2009-02-1 3 23:52:14$10 * @version $Revision: 1.48.2.1 $ $Name: not supported by cvs2svn $ 11 * @date $Date: 2009-02-19 17:59:50 $ 12 12 * Copyright 2004-2007 Institute for Astronomy, University of Hawaii 13 13 * -
trunk/psModules/src/imcombine/pmSubtractionIO.c
r22699 r23242 16 16 17 17 #include "pmSubtractionIO.h" 18 #include "pmStackVisual.h" 18 19 19 20 #define ARRAY_BUFFER 16 // Number to add to array at a time … … 144 145 // CVS tags, used to identify the version of this file (in case incompatibilities are introduced) 145 146 psString cvsFile = psStringCopy("$RCSfile: pmSubtractionIO.c,v $"); 146 psString cvsRev = psStringCopy("$Revision: 1.9 $");147 psString cvsDate = psStringCopy("$Date: 200 8-10-24 21:21:06$");147 psString cvsRev = psStringCopy("$Revision: 1.9.18.1 $"); 148 psString cvsDate = psStringCopy("$Date: 2009-02-19 17:59:50 $"); 148 149 psStringSubstitute(&cvsFile, NULL, "RCSfile: "); 149 150 psStringSubstitute(&cvsRev, NULL, "Revision: "); … … 167 168 168 169 psImage *image = psMetadataLookupPtr(NULL, ro->analysis, PM_SUBTRACTION_ANALYSIS_KERNEL_IMAGE); // Image 170 pmStackVisualPlotTestImage(image, "Subtraction_kernels.fits"); 171 169 172 if (image && !psFitsWriteImage(fits, header, image, 0, EXTNAME_IMAGE)) { 170 173 psError(PS_ERR_IO, false, "Unable to write subtraction kernel image."); -
trunk/psModules/src/imcombine/pmSubtractionVisual.c
r21422 r23242 28 28 29 29 //variables to determine when things are plotted 30 static bool isVisual = false;31 30 static bool plotConvKernels = true; 32 31 static bool plotStamps = true; … … 42 41 // Initialization Routines 43 42 44 /** start or stop plotting */45 bool pmSubtractionSetVisual (bool mode) {46 isVisual = mode;47 return true;48 }49 43 50 44 … … 65 59 * @return true for success */ 66 60 bool pmSubtractionVisualPlotConvKernels(psImage *convKernels) { 67 if (! isVisual|| !plotConvKernels) return true;61 if (!pmVisualIsVisual() || !plotConvKernels) return true; 68 62 if (!pmVisualInitWindow(&kapa, "ppSub:Images")) { 69 isVisual = false;70 63 return false; 71 64 } 72 65 pmVisualScaleImage(kapa, convKernels, "Convolution_Kernels", 0, true); 73 pmVisualAskUser(&plotConvKernels , &isVisual);66 pmVisualAskUser(&plotConvKernels); 74 67 return true; 75 68 } … … 80 73 @return true for success */ 81 74 bool pmSubtractionVisualPlotStamps(pmSubtractionStampList *stamps, pmReadout *ro) { 82 if (! isVisual|| !plotStamps) return true;75 if (!pmVisualIsVisual() || !plotStamps) return true; 83 76 if (!pmVisualInitWindow (&kapa, "ppSub:Images")) { 84 isVisual = false;85 77 return false; 86 78 } 87 79 if (!pmVisualInitWindow (&kapa2, "ppSub:StampMasterImage")) { 88 isVisual = false;89 80 return false; 90 81 } … … 145 136 pmVisualScaleImage(kapa, canvas, "Subtraction_Stamps", 0, true); 146 137 147 pmVisualAskUser(&plotStamps , &isVisual);138 pmVisualAskUser(&plotStamps); 148 139 return true; 149 140 } … … 152 143 bool pmSubtractionVisualPlotLeastSquares (pmSubtractionStampList *stamps, bool dual) { 153 144 154 if (! isVisual|| !plotLeastSquares) return true;145 if (!pmVisualIsVisual() || !plotLeastSquares) return true; 155 146 if (!pmVisualInitWindow (&kapa, "PPSub:Images")) { 156 isVisual = false;157 147 return false; 158 148 } … … 209 199 pmVisualScaleImage(kapa, canvas32, "Least_Squares", 0, true); 210 200 211 pmVisualAskUser(&plotLeastSquares , &isVisual);201 pmVisualAskUser(&plotLeastSquares); 212 202 psFree(canvas); 213 203 psFree(canvas32); … … 216 206 217 207 bool pmSubtractionVisualShowSubtraction(psImage *image, psImage *ref, psImage *sub) { 218 if (! isVisual|| !plotImage) return true;208 if (!pmVisualIsVisual() || !plotImage) return true; 219 209 if (!pmVisualInitWindow (&kapa, "PPSub:Images")) { 220 isVisual = false;221 210 return false; 222 211 } … … 225 214 pmVisualScaleImage(kapa, ref, "Reference", 1, true); 226 215 pmVisualScaleImage(kapa, sub, "Subtraction", 2, true); 227 pmVisualAskUser(&plotImage , &isVisual);216 pmVisualAskUser(&plotImage); 228 217 return true; 229 218 } … … 267 256 268 257 #else 269 bool pmSubtractionSetVisual (bool mode) {return true;}270 258 bool pmSubtractionVisualClose() {return true;} 271 259 bool pmSubtractionVisualPlotConvKernels(psImage *convKernels) {return true;} -
trunk/psModules/src/imcombine/pmSubtractionVisual.h
r21422 r23242 2 2 #define PM_SUBTRACTION_VISUAL_H 3 3 4 bool pmSubtractionSetVisual (bool mode);5 4 bool pmSubtractionVisualClose(); 6 5 bool pmSubtractionVisualPlotConvKernels(psImage *convKernels);
Note:
See TracChangeset
for help on using the changeset viewer.
