IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 11, 2010, 5:08:29 PM (16 years ago)
Author:
eugene
Message:

updates to support psphotStack

Location:
trunk/psphot
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src

    • Property svn:ignore
      •  

        old new  
        2121psphotForced
        2222psphotMakePSF
         23psphotStack
  • trunk/psphot/src/psphotStackArguments.c

    r26894 r27657  
    22
    33static void usage(pmConfig *config, int exitCode);
    4 static void writeHelpInfo(pmConfig* config, FILE* ofile);
     4static void writeHelpInfo(FILE* ofile);
    55
    66pmConfig *psphotStackArguments(int argc, char **argv) {
    77
    88    int N;
    9     bool status;
    109
    1110    // 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);
    1413
    1514    // load config data from default locations
     
    2928    // Number of threads is handled
    3029    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     }
    4230
    4331    // visual : interactive display mode
     
    9078}
    9179
    92 static void writeHelpInfo(pmConfig* config, FILE* ofile)
     80static void writeHelpInfo(FILE* ofile)
    9381{
    9482  fprintf(ofile,
    95           "Usage: psphotStack -input (input.mdc) outroot\n"
     83          "Usage: psphotStack -input (INPUTS.mdc) (OUTROOT)\n"
    9684          "\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           "  OutFileBaseName is 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"
    10290          "\n"
    10391          "additional options:\n"
     
    136124          "  -trace-levels\n"
    137125          "     print current trace levels\n");
    138     psFree(config);
    139     pmConfigDone();
    140126    psLibFinalize();
    141127    exit(PS_EXIT_SUCCESS);
Note: See TracChangeset for help on using the changeset viewer.