IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2010, 8:02:38 PM (16 years ago)
Author:
eugene
Message:

working on psphotStack

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/psphot.20100506/src/psphotStackArguments.c

    r27657 r27876  
    1111    if (psArgumentGet(argc, argv, "-help")) writeHelpInfo(stdout);
    1212    if (psArgumentGet(argc, argv, "-h")) writeHelpInfo(stdout);
     13
     14    if (psArgumentGet(argc, argv, "-template")) dumpTemplate();
    1315
    1416    // load config data from default locations
     
    8486          "\n"
    8587          "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"
     88          "\tIMAGE    : Image filename\n"
     89          "\tMASK     : Mask filename\n"
     90          "\tVARIANCE : Variance map filename\n"
     91          "(use -template to generate a sample input.mdc file)\n"
    8992          "OUTROOT is the 'root name' for output files\n"
    9093          "\n"
     
    144147}
    145148
     149static void dumpTemplate(void) {
     150
     151    fprintf (stdout, "# this line is required for multiple INPUT blocks to be accepted\n");
     152    fprintf (stdout, "INPUT MULTI\n\n");
     153
     154    fprintf (stdout, "# copy and repeat the following block as needed (one per input image set)\n");
     155    fprintf (stdout, "# either RAW (unconvolved) or CNV (convolved) input images are required\n");
     156    fprintf (stdout, "# if both are supplied, by default RAW is used for detection, CNV is convolved (further) to match target PSF\n");
     157    fprintf (stdout, "# if MASK or VARIANCE images are not supplied, they will be generated\n");
     158    fprintf (stdout, "# if MASK or VARIANCE images are not supplied, they will be generated\n");
     159    fprintf (stdout, "# PSF may be supplied for the convolution target\n");
     160    fprintf (stdout, "INPUT METADATA\n");
     161    fprintf (stdout, "  RAW:IMAGE     STR   file.im.fits   # signal image filename\n");
     162    fprintf (stdout, "  RAW:MASK      STR   file.mk.fits   # mask image filename\n");
     163    fprintf (stdout, "  RAW:VARIANCE  STR   file.wt.fits   # variance image filename\n");
     164    fprintf (stdout, "  RAW:PSF       STR   file.psf.fits  # psf from input unconvolved image\n");
     165
     166    fprintf (stdout, "  CNV:IMAGE     STR   file.im.fits   # signal image filename\n");
     167    fprintf (stdout, "  CNV:MASK      STR   file.mk.fits   # mask image filename\n");
     168    fprintf (stdout, "  CNV:VARIANCE  STR   file.wt.fits   # variance image filename\n");
     169    fprintf (stdout, "  CNV:PSF       STR   file.psf.fits  # psf from input convolved image\n");
     170
     171    fprintf (stdout, "  SOURCES       STR   file.cmf       # measured source positions\n");
     172    fprintf (stdout, "END\n");
     173
     174    psLibFinalize();
     175    exit(PS_EXIT_SUCCESS);
     176}
Note: See TracChangeset for help on using the changeset viewer.