Changeset 27657 for trunk/psphot/src/psphotStackArguments.c
- Timestamp:
- Apr 11, 2010, 5:08:29 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:mergeinfo
set to
/branches/eam_branches/stackphot.20100406/psphot merged eligible
-
Property svn:mergeinfo
set to
-
trunk/psphot/src
- Property svn:ignore
-
old new 21 21 psphotForced 22 22 psphotMakePSF 23 psphotStack
-
- Property svn:ignore
-
trunk/psphot/src/psphotStackArguments.c
r26894 r27657 2 2 3 3 static void usage(pmConfig *config, int exitCode); 4 static void writeHelpInfo( pmConfig* config,FILE* ofile);4 static void writeHelpInfo(FILE* ofile); 5 5 6 6 pmConfig *psphotStackArguments(int argc, char **argv) { 7 7 8 8 int N; 9 bool status;10 9 11 10 // print help info 12 if (psArgumentGet(argc, argv, "-help")) writeHelpInfo( argv[0], config,stdout);13 if (psArgumentGet(argc, argv, "-h")) writeHelpInfo( argv[0], config,stdout);11 if (psArgumentGet(argc, argv, "-help")) writeHelpInfo(stdout); 12 if (psArgumentGet(argc, argv, "-h")) writeHelpInfo(stdout); 14 13 15 14 // load config data from default locations … … 29 28 // Number of threads is handled 30 29 PSARGUMENTS_INSTANTIATE_THREADSARG( psphot, config, argc, argv ) 31 32 // photcode : used in output to supplement header data (argument or recipe?)33 if ((N = psArgumentGet (argc, argv, "-photcode"))) {34 if (argc <= N+1) {35 psErrorStackPrint(stderr, "Expected to see 1 more argument; saw %d", argc - 1);36 exit(PS_EXIT_CONFIG_ERROR);37 }38 psArgumentRemove (N, &argc, argv);39 psMetadataAddStr (options, PS_LIST_TAIL, "PHOTCODE", PS_META_REPLACE, "", argv[N]);40 psArgumentRemove (N, &argc, argv);41 }42 30 43 31 // visual : interactive display mode … … 90 78 } 91 79 92 static void writeHelpInfo( pmConfig* config,FILE* ofile)80 static void writeHelpInfo(FILE* ofile) 93 81 { 94 82 fprintf(ofile, 95 "Usage: psphotStack -input ( input.mdc) outroot\n"83 "Usage: psphotStack -input (INPUTS.mdc) (OUTROOT)\n" 96 84 "\n" 97 "where :\n"98 " FileNameList is a text file containing filenames, one per line\n"99 " MaskFileNameList is a text file of mask filenames, one per line\n"100 " VarFileNameList is a text file of variance filenames, one per line\n"101 " OutFileBaseNameis the 'root name' for output files\n"85 "where INPUTS.mdc contains various METADATAs, each with:\n" 86 "\tIMAGE(STR): Image filename\n" 87 "\tMASK(STR): Mask filename\n" 88 "\tVARIANCE(STR): Variance map filename\n" 89 "OUTROOT is the 'root name' for output files\n" 102 90 "\n" 103 91 "additional options:\n" … … 136 124 " -trace-levels\n" 137 125 " print current trace levels\n"); 138 psFree(config);139 pmConfigDone();140 126 psLibFinalize(); 141 127 exit(PS_EXIT_SUCCESS);
Note:
See TracChangeset
for help on using the changeset viewer.
