IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10614


Ignore:
Timestamp:
Dec 10, 2006, 8:38:42 AM (19 years ago)
Author:
eugene
Message:

moved kapa plots to psModules

Location:
trunk/psphot/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphot.h

    r10437 r10614  
    9494bool psphotPlotMoments (pmConfig *config, pmFPAview *view, psArray *sources);
    9595bool psphotPlotPSFModel (pmConfig *config, pmFPAview *view, psArray *sources);
    96 
    97 // move to psLib or psModules
    98 int psphotKapaOpen ();
    99 bool psphotKapaClose ();
  • trunk/psphot/src/psphotReadout.c

    r10556 r10614  
    175175    pmFPAfileDropInternal (config->files, "PSPHOT.BACKGND");
    176176
    177     psphotKapaClose ();
     177    // XXX move this to top of loop
     178    pmKapaClose ();
    178179
    179180    psFree (psf);
  • trunk/psphot/src/psphotSummaryPlots.c

    r10400 r10614  
    55// which perform NOP and return false (XXX should this be true??)
    66
     7// this variable is defined in psmodules.h if ohana-config is found
    78# if (HAVE_KAPA)
    89
    910# 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 it
    13 static int kapa_fd = -1;
    14 int psphotKapaOpen () {
    15 
    16     if (kapa_fd == -1) {
    17         // XXX make -noX an option
    18         // XXX -noX is crashing kapa on point plotting
    19         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 }
    3111
    3212// plot the sx, sy moments plane (faint and bright sources)
     
    4727    psLogMsg ("psphot", 3, "creating moments plot");
    4828
    49     int kapa = psphotKapaOpen ();
     29    int kapa = pmKapaOpen ();
    5030    if (kapa == -1) {
    5131        psError(PSPHOT_ERR_UNKNOWN, true, "failure to open kapa");
     
    143123    psLogMsg ("psphot", 3, "creating psf model plot");
    144124
    145     int kapa = psphotKapaOpen ();
     125    int kapa = pmKapaOpen ();
    146126    if (kapa == -1) {
    147127        psError(PSPHOT_ERR_UNKNOWN, true, "failure to open kapa");
     
    297277}
    298278
    299 int psphotKapaOpen () {
    300     return -1;
    301 }
    302 
    303 bool psphotKapaClose () {
    304     return true;
    305 }
    306 
    307279# endif
Note: See TracChangeset for help on using the changeset viewer.