Changeset 22722
- Timestamp:
- Mar 1, 2009, 3:52:09 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090215
- Files:
-
- 8 edited
-
ppStack/src/ppStackArguments.c (modified) (1 diff)
-
psModules/src/extras/pmVisual.c (modified) (5 diffs)
-
psModules/src/imcombine/pmPSFEnvelope.c (modified) (1 diff)
-
psModules/src/imcombine/pmStack.c (modified) (1 diff)
-
psModules/src/imcombine/pmStackVisual.c (modified) (2 diffs)
-
psModules/src/objects/pmSourceVisual.c (modified) (3 diffs)
-
psModules/src/objects/pmSourceVisual.h (modified) (1 diff)
-
psModules/src/psmodules.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090215/ppStack/src/ppStackArguments.c
r22419 r22722 256 256 valueArgRecipeStr(arguments, recipe, "-psf-model", "PSF.MODEL", recipe); 257 257 258 if (psMetadataLookupBool(NULL, arguments, "-vi usal")) {258 if (psMetadataLookupBool(NULL, arguments, "-visual")) { 259 259 pmVisualSetVisual(true); 260 260 } -
branches/cnb_branches/cnb_branch_20090215/psModules/src/extras/pmVisual.c
r22419 r22722 21 21 #include "pmAstrometryObjects.h" 22 22 #include "pmSubtractionStamps.h" 23 23 #include "pmTrend2D.h" 24 24 #include "pmFPAExtent.h" 25 25 … … 34 34 #include "pmSubtractionVisual.h" 35 35 #include "pmStackVisual.h" 36 #include "pmSourceVisual.h" 37 38 //#define TESTING 36 39 37 40 static bool isVisual = false; … … 50 53 pmSubtractionVisualClose(); 51 54 pmStackVisualClose(); 55 pmSourceVisualClose(); 52 56 //XXX handle psphot 53 57 // psphotVisualClose(); … … 209 213 210 214 bool pmVisualScaleImage(int kapaFD, psImage *inImage, const char *name, int channel, bool clip) { 211 212 215 KiiImage image; 213 216 KapaImageData data; 214 217 Coords coords; 215 218 216 //make sure we have a compatible image type 219 //make sure we have a compatible image 220 if (inImage == NULL) { 221 fprintf(stderr, "Image is NULL, and cannot be displayed\n"); 222 return false; 223 } 224 217 225 if(inImage->type.type != PS_TYPE_F32) { 218 226 fprintf(stderr, "Cannot display this image (imcompatible data type)\n"); … … 221 229 222 230 strcpy (coords.ctype, "RA---TAN"); 231 223 232 224 233 double min, max, stdev, mean; -
branches/cnb_branches/cnb_branch_20090215/psModules/src/imcombine/pmPSFEnvelope.c
r21536 r22722 33 33 34 34 35 #define TESTING // Enable test output35 //#define TESTING // Enable test output 36 36 #define PEAK_FLUX 1.0e4 // Peak flux for each source 37 37 #define SKY_VALUE 0.0e0 // Sky value for fake image -
branches/cnb_branches/cnb_branch_20090215/psModules/src/imcombine/pmStack.c
r21536 r22722 33 33 #define NUM_DIRECT_STDEV 5 // For less than this number of values, measure stdev directly 34 34 35 //CNB change all of these to false 36 #define TESTING // Enable test output 37 #define TEST_X 2318 // x coordinate to examine 38 #define TEST_Y 2306 // y coordinate to examine 35 //#define TESTING // Enable test output 36 //#define TEST_X 2318 // x coordinate to examine 37 //#define TEST_Y 2306 // y coordinate to examine 39 38 40 39 -
branches/cnb_branches/cnb_branch_20090215/psModules/src/imcombine/pmStackVisual.c
r22419 r22722 42 42 } 43 43 44 45 44 /** Display a test image 46 45 * @param image to plot … … 48 47 */ 49 48 bool pmStackVisualPlotTestImage(psImage *image, char *name) { 50 51 49 if (!pmVisualIsVisual() || !plotTestImage) return true; 52 50 if (!pmVisualInitWindow(&kapa, "pmStack:Images")) return false; 53 51 54 pmVisualScaleImage(kapa, image, name, 0, true);52 if(!pmVisualScaleImage(kapa, image, (const char*)name, 0, true)) return false; 55 53 pmVisualAskUser(&plotTestImage); 56 54 return true; 57 55 } 58 59 56 60 57 #else -
branches/cnb_branches/cnb_branch_20090215/psModules/src/objects/pmSourceVisual.c
r21536 r22722 15 15 16 16 static int kapa1 = -1; 17 static bool plotPSF = true; 17 18 // static int kapa2 = -1; 18 19 // static int kapa3 = -1; 19 20 21 bool pmSourceVisualClose() { 22 if (kapa1 != -1) 23 KiiClose(kapa1); 24 return true; 25 } 26 20 27 bool pmSourcePlotPoints3D (int myKapa, Graphdata *graphdata, psVector *xn, psVector *yn, psVector *zn, float theta, float phi); 21 28 … … 27 34 Graphdata graphdata; 28 35 29 if (!pmVisualIsVisual() ) return true;36 if (!pmVisualIsVisual() || !plotPSF) return true; 30 37 31 38 if (kapa1 == -1) { … … 147 154 // pause and wait for user input: 148 155 // continue, save (provide name), ?? 149 char key[10]; 150 fprintf (stdout, "[c]ontinue? "); 151 if (!fgets(key, 8, stdin)) { 152 psWarning("Unable to read option"); 153 } 156 pmVisualAskUser(&plotPSF); 154 157 return true; 155 158 } -
branches/cnb_branches/cnb_branch_20090215/psModules/src/objects/pmSourceVisual.h
r21536 r22722 12 12 #define PM_SOURCE_VISUAL_H 13 13 14 bool pmSourceVisualClose(void); 15 14 16 /// @addtogroup Extras Miscellaneous Funtions 15 17 /// @{ -
branches/cnb_branches/cnb_branch_20090215/psModules/src/psmodules.h
r21422 r22722 100 100 #include <pmReadoutCombine.h> 101 101 #include <pmSubtractionVisual.h> 102 #include <pmStackVisual.h> 102 103 103 104 // the following headers are from psModule:objects
Note:
See TracChangeset
for help on using the changeset viewer.
