Changeset 23235 for trunk/ppSub/src/ppSubArguments.c
- Timestamp:
- Mar 9, 2009, 3:16:06 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/ppSub/src/ppSubArguments.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSub/src/ppSubArguments.c
r22735 r23235 30 30 fprintf(stderr, "\nPan-STARRS PSF-matched image subtraction\n\n"); 31 31 fprintf(stderr, "Usage: %s INPUT.fits REFERENCE.fits OUTPUT_ROOT \n" 32 "\t[-psf REFERENCE.psf.fits] [-sources REFERENCE.cmf]\n\n"32 "\t[-psf REFERENCE.psf.fits]\n\n" 33 33 "This subtracts the convolved REFERENCE from the INPUT, by default.\n", 34 34 program); … … 205 205 } 206 206 207 pmConfigFileSetsMD(config->arguments, &argc, argv, "PPSUB.SOURCES", "-sources", NULL);208 209 207 psMetadata *arguments = config->arguments; // Command-line arguments 210 208 psMetadataAddStr(arguments, PS_LIST_TAIL, "-inmask", 0, "Input mask image", NULL); 211 209 psMetadataAddStr(arguments, PS_LIST_TAIL, "-invariance", 0, "Input variance image", NULL); 210 psMetadataAddStr(arguments, PS_LIST_TAIL, "-insources", 0, "Input source list", NULL); 212 211 psMetadataAddStr(arguments, PS_LIST_TAIL, "-refmask", 0, "Reference mask image", NULL); 213 212 psMetadataAddStr(arguments, PS_LIST_TAIL, "-refvariance", 0, "Reference variance image", NULL); 213 psMetadataAddStr(arguments, PS_LIST_TAIL, "-refsources", 0, "Reference source list", NULL); 214 214 psMetadataAddStr(arguments, PS_LIST_TAIL, "-stats", 0, "Statistics file", NULL); 215 215 psMetadataAddF32(arguments, PS_LIST_TAIL, "-region", 0, "Size of iso-kernel region", NAN); … … 272 272 fileList("INPUT.VARIANCE", inVariance, "Name of the input variance image", config); 273 273 } 274 const char *inSources = psMetadataLookupStr(NULL, arguments, "-insources"); // Name of input source list 275 if (inSources && strlen(inSources) > 0) { 276 fileList("INPUT.SOURCES", inSources, "Name of the input source list", config); 277 } 274 278 275 279 const char *refMask = psMetadataLookupStr(NULL, arguments, "-refmask"); // Name of reference mask … … 280 284 if (refVariance && strlen(refVariance) > 0) { 281 285 fileList("REF.VARIANCE", refVariance, "Name of the reference variance image", config); 286 } 287 const char *refSources = psMetadataLookupStr(NULL, arguments, "-refsources"); // Name of ref source list 288 if (refSources && strlen(refSources) > 0) { 289 fileList("REF.SOURCES", refSources, "Name of the reference source list", config); 282 290 } 283 291
Note:
See TracChangeset
for help on using the changeset viewer.
