Changeset 10614
- Timestamp:
- Dec 10, 2006, 8:38:42 AM (19 years ago)
- Location:
- trunk/psphot/src
- Files:
-
- 3 edited
-
psphot.h (modified) (1 diff)
-
psphotReadout.c (modified) (1 diff)
-
psphotSummaryPlots.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphot.h
r10437 r10614 94 94 bool psphotPlotMoments (pmConfig *config, pmFPAview *view, psArray *sources); 95 95 bool psphotPlotPSFModel (pmConfig *config, pmFPAview *view, psArray *sources); 96 97 // move to psLib or psModules98 int psphotKapaOpen ();99 bool psphotKapaClose (); -
trunk/psphot/src/psphotReadout.c
r10556 r10614 175 175 pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND"); 176 176 177 psphotKapaClose (); 177 // XXX move this to top of loop 178 pmKapaClose (); 178 179 179 180 psFree (psf); -
trunk/psphot/src/psphotSummaryPlots.c
r10400 r10614 5 5 // which perform NOP and return false (XXX should this be true??) 6 6 7 // this variable is defined in psmodules.h if ohana-config is found 7 8 # if (HAVE_KAPA) 8 9 9 10 # include <kapa.h> 10 11 // XXX not thread safe (perhaps not needed)12 // to make this thread safe, we could check the thread ID and tie to it13 static int kapa_fd = -1;14 int psphotKapaOpen () {15 16 if (kapa_fd == -1) {17 // XXX make -noX an option18 // XXX -noX is crashing kapa on point plotting19 kapa_fd = KapaOpen ("kapa", "psphot");20 }21 return kapa_fd;22 }23 24 bool psphotKapaClose () {25 26 if (kapa_fd == -1) return true;27 KapaClose (kapa_fd);28 kapa_fd = -1;29 return true;30 }31 11 32 12 // plot the sx, sy moments plane (faint and bright sources) … … 47 27 psLogMsg ("psphot", 3, "creating moments plot"); 48 28 49 int kapa = p sphotKapaOpen ();29 int kapa = pmKapaOpen (); 50 30 if (kapa == -1) { 51 31 psError(PSPHOT_ERR_UNKNOWN, true, "failure to open kapa"); … … 143 123 psLogMsg ("psphot", 3, "creating psf model plot"); 144 124 145 int kapa = p sphotKapaOpen ();125 int kapa = pmKapaOpen (); 146 126 if (kapa == -1) { 147 127 psError(PSPHOT_ERR_UNKNOWN, true, "failure to open kapa"); … … 297 277 } 298 278 299 int psphotKapaOpen () {300 return -1;301 }302 303 bool psphotKapaClose () {304 return true;305 }306 307 279 # endif
Note:
See TracChangeset
for help on using the changeset viewer.
