Changeset 28013 for trunk/psphot/src/psphotStackArguments.c
- Timestamp:
- May 18, 2010, 4:11:53 PM (16 years ago)
- Location:
- trunk/psphot
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/psphotStackArguments.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot
-
Property svn:mergeinfo
set to
/branches/eam_branches/psphot.20100506 merged eligible
-
Property svn:mergeinfo
set to
-
trunk/psphot/src/psphotStackArguments.c
r27657 r28013 1 1 # include "psphotStandAlone.h" 2 2 3 static void dumpTemplate(void); 3 4 static void usage(pmConfig *config, int exitCode); 4 5 static void writeHelpInfo(FILE* ofile); … … 11 12 if (psArgumentGet(argc, argv, "-help")) writeHelpInfo(stdout); 12 13 if (psArgumentGet(argc, argv, "-h")) writeHelpInfo(stdout); 14 15 if (psArgumentGet(argc, argv, "-template")) dumpTemplate(); 13 16 14 17 // load config data from default locations … … 84 87 "\n" 85 88 "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" 89 93 "OUTROOT is the 'root name' for output files\n" 90 94 "\n" … … 144 148 } 145 149 150 static 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.
