Changeset 5049 for trunk/psphot/src/psphotArguments.c
- Timestamp:
- Sep 13, 2005, 4:06:55 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotArguments.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotArguments.c
r4977 r5049 22 22 } 23 23 24 // optional noiseimage - add to config25 char * noise= NULL;26 if ((N = psArgumentGet (*argc, argv, "- noise"))) {24 // optional weight image - add to config 25 char *weight = NULL; 26 if ((N = psArgumentGet (*argc, argv, "-weight"))) { 27 27 psArgumentRemove (N, argc, argv); 28 noise= psStringCopy (argv[N]);28 weight = psStringCopy (argv[N]); 29 29 psArgumentRemove (N, argc, argv); 30 30 } … … 46 46 fprintf (stderr, "loaded config...\n"); 47 47 48 // identify input image & optional noise& mask images48 // identify input image & optional weight & mask images 49 49 // command-line entries override config-file entries 50 50 psMetadataAdd (config, PS_LIST_HEAD, "IMAGE", mode, "", argv[1]); … … 54 54 psMetadataAdd (config, PS_LIST_HEAD, "MASK_IMAGE", mode, "", mask); 55 55 } 56 if ( noise!= NULL) {57 psMetadataAdd (config, PS_LIST_HEAD, " NOISE_IMAGE", mode, "", noise);56 if (weight != NULL) { 57 psMetadataAdd (config, PS_LIST_HEAD, "WEIGHT_IMAGE", mode, "", weight); 58 58 } 59 59 if (resid != NULL) { … … 68 68 fprintf (stderr, "options: \n"); 69 69 fprintf (stderr, " -mask (filename)\n"); 70 fprintf (stderr, " - noise(filename)\n");70 fprintf (stderr, " -weight (filename)\n"); 71 71 fprintf (stderr, " -resid (filename)\n"); 72 72 exit (2);
Note:
See TracChangeset
for help on using the changeset viewer.
