IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 19, 2009, 7:59:50 AM (17 years ago)
Author:
beaumont
Message:

Added visualizations to ppSub. Set up a single variable in pmVisual to control when plots are drawn.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branch_20090215/ppSub/src/ppSubArguments.c

    r21424 r21536  
    66 *
    77 *  @author IfA
    8  *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2009-02-09 21:26:05 $
     8 *  @version $Revision: 1.58.2.1 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2009-02-19 17:59:49 $
    1010 *  Copyright 2009 Institute for Astronomy, University of Hawaii
    1111 */
     12
     13#ifdef HAVE_CONFIG_H
     14#include <config.h>
     15#endif
     16
     17#include <stdio.h>
     18#include <pslib.h>
     19#include <psmodules.h>
     20#include <psphot.h>
    1221
    1322#include "ppSub.h"
     
    191200    }
    192201
    193     if ((argnum = psArgumentGet(argc, argv, "-psphot-visual"))) {
    194         psArgumentRemove(argnum, &argc, argv);
    195         psphotSetVisual(true);
    196     }
    197202
    198203    pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSUB.SOURCES", "-sources", NULL);
     
    240245    psMetadataAddS32(arguments, PS_LIST_TAIL, "-opt-order", 0, "Maximum order for optimum kernel search", -1);
    241246    psMetadataAddBool(arguments, PS_LIST_TAIL, "-dual", 0, "Dual convolution", false);
    242     psMetadataAddBool(arguments, PS_LIST_TAIL, "-renorm", 0, "Renormalise variance maps?", false);
    243     psMetadataAddStr(arguments, PS_LIST_TAIL, "-renorm-mean", 0,
    244                      "Statistic for mean in renormalisation", NULL);
    245     psMetadataAddStr(arguments, PS_LIST_TAIL, "-renorm-stdev", 0,
    246                      "Statistic for stdev in renormalisation", NULL);
    247     psMetadataAddF32(arguments, PS_LIST_TAIL, "-renorm-width", 0, "Gaussian width for renormalisation", NAN);
    248     psMetadataAddS32(arguments, PS_LIST_TAIL, "-renorm-num", 0, "Number of samples for renormalisation", 0);
    249247    psMetadataAddBool(arguments, PS_LIST_TAIL, "-photometry", 0, "Perform photometry?", false);
    250248    psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads", 0);
     
    352350                      psMetadataLookupBool(NULL, arguments, "-dual"));
    353351
    354     if (psMetadataLookupBool(NULL, arguments, "-renorm") ||
    355         psMetadataLookupBool(NULL, recipe, "RENORM")) {
    356         psMetadataAddBool(arguments, PS_LIST_TAIL, "RENORM", 0, "Renormalise variance maps?", true);
    357     }
    358     VALUE_ARG_RECIPE_INT("-renorm-num", "RENORM.NUM", S32, 0);
    359     VALUE_ARG_RECIPE_FLOAT("-renorm-width", "RENORM.WIDTH", F32);
    360     valueArgRecipeStr(arguments, recipe, "-renorm-mean", "RENORM.MEAN", recipe);
    361     valueArgRecipeStr(arguments, recipe, "-renorm-stdev", "RENORM.STDEV", recipe);
    362 
    363352    // Need to update this because it could have been overwritten by the camera's own recipe
    364353    if (psMetadataLookupBool(NULL, arguments, "-photometry")) {
     
    367356
    368357    if (psMetadataLookupBool(NULL, arguments, "-visual")) {
    369         pmSubtractionSetVisual(true);
     358        pmVisualSetVisual(true);
    370359    }
    371360
Note: See TracChangeset for help on using the changeset viewer.