IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 18, 2010, 4:11:53 PM (16 years ago)
Author:
eugene
Message:

merge changes from branches/eam_branches/psphot,psModules.20100506 (finish basic psphotStack)

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotStackArguments.c

    r27657 r28013  
    11# include "psphotStandAlone.h"
    22
     3static void dumpTemplate(void);
    34static void usage(pmConfig *config, int exitCode);
    45static void writeHelpInfo(FILE* ofile);
     
    1112    if (psArgumentGet(argc, argv, "-help")) writeHelpInfo(stdout);
    1213    if (psArgumentGet(argc, argv, "-h")) writeHelpInfo(stdout);
     14
     15    if (psArgumentGet(argc, argv, "-template")) dumpTemplate();
    1316
    1417    // load config data from default locations
     
    8487          "\n"
    8588          "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          "\tIMAGE    : Image filename\n"
     90          "\tMASK     : Mask filename\n"
     91          "\tVARIANCE : Variance map filename\n"
     92          "(use -template to generate a sample input.mdc file)\n"
    8993          "OUTROOT is the 'root name' for output files\n"
    9094          "\n"
     
    144148}
    145149
     150static void dumpTemplate(void) {
     151
     152    fprintf (stdout, "# this line is required for multiple INPUT blocks to be accepted\n");
     153    fprintf (stdout, "INPUT MULTI\n\n");
     154
     155    fprintf (stdout, "# copy and repeat the following block as needed (one per input image set)\n");
     156    fprintf (stdout, "# either RAW (unconvolved) or CNV (convolved) input images are required\n");
     157    fprintf (stdout, "# if both are supplied, by default RAW is used for detection, CNV is convolved (further) to match target PSF\n");
     158    fprintf (stdout, "# if MASK or VARIANCE images are not supplied, they will be generated\n");
     159    fprintf (stdout, "# if MASK or VARIANCE images are not supplied, they will be generated\n");
     160    fprintf (stdout, "# PSF may be supplied for the convolution target\n");
     161    fprintf (stdout, "INPUT METADATA\n");
     162    fprintf (stdout, "  RAW:IMAGE     STR   file.im.fits   # signal image filename\n");
     163    fprintf (stdout, "  RAW:MASK      STR   file.mk.fits   # mask image filename\n");
     164    fprintf (stdout, "  RAW:VARIANCE  STR   file.wt.fits   # variance image filename\n");
     165    fprintf (stdout, "  RAW:PSF       STR   file.psf.fits  # psf from input unconvolved image\n");
     166
     167    fprintf (stdout, "  CNV:IMAGE     STR   file.im.fits   # signal image filename\n");
     168    fprintf (stdout, "  CNV:MASK      STR   file.mk.fits   # mask image filename\n");
     169    fprintf (stdout, "  CNV:VARIANCE  STR   file.wt.fits   # variance image filename\n");
     170    fprintf (stdout, "  CNV:PSF       STR   file.psf.fits  # psf from input convolved image\n");
     171
     172    fprintf (stdout, "  SOURCES       STR   file.cmf       # measured source positions\n");
     173    fprintf (stdout, "END\n");
     174
     175    psLibFinalize();
     176    exit(PS_EXIT_SUCCESS);
     177}
Note: See TracChangeset for help on using the changeset viewer.