Changeset 21536 for branches/cnb_branch_20090215/ppSub/src/ppSubArguments.c
- Timestamp:
- Feb 19, 2009, 7:59:50 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branch_20090215/ppSub/src/ppSubArguments.c
r21424 r21536 6 6 * 7 7 * @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 $ 10 10 * Copyright 2009 Institute for Astronomy, University of Hawaii 11 11 */ 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> 12 21 13 22 #include "ppSub.h" … … 191 200 } 192 201 193 if ((argnum = psArgumentGet(argc, argv, "-psphot-visual"))) {194 psArgumentRemove(argnum, &argc, argv);195 psphotSetVisual(true);196 }197 202 198 203 pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSUB.SOURCES", "-sources", NULL); … … 240 245 psMetadataAddS32(arguments, PS_LIST_TAIL, "-opt-order", 0, "Maximum order for optimum kernel search", -1); 241 246 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);249 247 psMetadataAddBool(arguments, PS_LIST_TAIL, "-photometry", 0, "Perform photometry?", false); 250 248 psMetadataAddS32(arguments, PS_LIST_TAIL, "-threads", 0, "Number of threads", 0); … … 352 350 psMetadataLookupBool(NULL, arguments, "-dual")); 353 351 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 363 352 // Need to update this because it could have been overwritten by the camera's own recipe 364 353 if (psMetadataLookupBool(NULL, arguments, "-photometry")) { … … 367 356 368 357 if (psMetadataLookupBool(NULL, arguments, "-visual")) { 369 pm SubtractionSetVisual(true);358 pmVisualSetVisual(true); 370 359 } 371 360
Note:
See TracChangeset
for help on using the changeset viewer.
