IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 23, 2010, 2:03:31 PM (16 years ago)
Author:
eugene
Message:

add visual facility management a la psTrace

Location:
branches/eam_branches/ipp-20100621/psModules/src
Files:
2 added
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/psModules/src/config/pmConfig.c

    r28287 r28435  
    3232
    3333#include "pmConfig.h"
     34#include "pmVisualUtils.h"
    3435
    3536#ifdef HAVE_NEBCLIENT
     
    638639        psArgumentVerbosity(argc, argv);
    639640        // XXX: substitute the string for the default log level for "2".
     641    }
     642
     643    // Set the visualization levels
     644    // argument format is: -visual (facil) (level)
     645    while ((argNum = psArgumentGet(*argc, argv, "-visual"))) {
     646        if ( (*argc < argNum + 3) ) {
     647            psError(PS_ERR_IO, true, "-visual switch specified without facility and level.");
     648            return NULL;
     649        }
     650        psArgumentRemove(argNum, argc, argv);
     651        pmVisualSetLevel(argv[argNum], atoi(argv[argNum+1]));
     652        psArgumentRemove(argNum, argc, argv);
     653        psArgumentRemove(argNum, argc, argv);
     654    }
     655    if ((argNum = psArgumentGet(*argc, argv, "-visual-all"))) {
     656        pmVisualSetLevel(".", 10);
     657    }
     658    if ((argNum = psArgumentGet(*argc, argv, "-visual-levels"))) {
     659        pmVisualPrintLevels(stdout);
    640660    }
    641661
  • branches/eam_branches/ipp-20100621/psModules/src/extras/Makefile.am

    r27750 r28435  
    99        pmKapaPlots.c \
    1010        pmVisual.c \
     11        pmVisualUtils.c \
    1112        ippStages.c
    1213
     
    1718        pmKapaPlots.h \
    1819        pmVisual.h \
     20        pmVisualUtils.h \
    1921        ippDiffMode.h \
    2022        ippStages.h
  • branches/eam_branches/ipp-20100621/psModules/src/objects/pmSourceVisual.c

    r26260 r28435  
    1313#include <kapa.h>
    1414#include "pmVisual.h"
     15#include "pmVisualUtils.h"
    1516
    1617// functions used to visualize the analysis as it goes
     
    3435    Graphdata graphdata;
    3536
    36     if (!pmVisualIsVisual()) return true;
     37    if (!pmVisualTestLevel("psphot.psf.metric", 2)) return true;
    3738
    3839    if (kapa1 == -1) {
     
    118119    Graphdata graphdata;
    119120
    120     if (!pmVisualIsVisual()) return true;
     121    if (!pmVisualTestLevel("psphot.psf.subpix", 3)) return true;
    121122
    122123    if (kapa1 == -1) {
     
    280281bool pmSourceVisualShowModelFits (pmPSF *psf, psArray *sources, psImageMaskType maskVal) {
    281282
    282     if (!pmVisualIsVisual()) return true;
     283    if (!pmVisualTestLevel("psphot.psf.fits", 2)) return true;
    283284
    284285    if (kapa2 == -1) {
     
    360361bool pmSourceVisualShowModelFit (pmSource *source) {
    361362
    362     if (!pmVisualIsVisual()) return true;
     363    if (!pmVisualTestLevel("psphot.psf.fitresid", 2)) return true;
     364
    363365    if (!source->pixels) return false;
    364366    if (!source->modelFlux) return false;
     
    404406    Graphdata graphdata;
    405407
    406     if (!pmVisualIsVisual() || !plotPSF) return true;
     408    if (!plotPSF) return true;
     409    if (!pmVisualTestLevel("psphot.psf.resid", 2)) return true;
    407410
    408411    if (kapa1 == -1) {
  • branches/eam_branches/ipp-20100621/psModules/src/psmodules.h

    r28043 r28435  
    1010#include <pmKapaPlots.h>
    1111#include <pmVisual.h>
     12#include <pmVisualUtils.h>
    1213#include <ippStages.h>
    1314#include <ippDiffMode.h>
Note: See TracChangeset for help on using the changeset viewer.