Changeset 37669
- Timestamp:
- Nov 24, 2014, 4:22:21 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140904/Ohana/src/photdbc
- Files:
-
- 3 edited
-
include/photdbc.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/photdbc.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140904/Ohana/src/photdbc/include/photdbc.h
r37425 r37669 41 41 /* global variables */ 42 42 int SKIP_IMAGES; 43 int ONLY_IMAGES; 43 44 int SHOW_PARAMS; 44 45 int VERBOSE; -
branches/eam_branches/ipp-20140904/Ohana/src/photdbc/src/args.c
r37425 r37669 20 20 if ((N = get_argument (argc, argv, "-skip-images"))) { 21 21 SKIP_IMAGES = TRUE; 22 remove_argument (N, &argc, argv); 23 } 24 25 ONLY_IMAGES = FALSE; 26 if ((N = get_argument (argc, argv, "-only-images"))) { 27 if (SKIP_IMAGES) { 28 fprintf (stderr, "-skip-images and -only-images cannot be used together\n"); 29 } 30 ONLY_IMAGES = TRUE; 22 31 remove_argument (N, &argc, argv); 23 32 } … … 309 318 fprintf (stderr, " option options:\n"); 310 319 fprintf (stderr, " -v : verbose mode\n"); 311 fprintf (stderr, " -params : list the current parameters\n\n"); 320 fprintf (stderr, " -params : list the current parameters\n"); 321 fprintf (stderr, " -skip-images\n"); 322 fprintf (stderr, " -only-images\n"); 323 fprintf (stderr, " -set-format (catformat)\n"); 324 fprintf (stderr, " -set-mode (catmode)\n"); 312 325 313 326 fprintf (stderr, "ptolemy.rc config values used by this program:\n"); -
branches/eam_branches/ipp-20140904/Ohana/src/photdbc/src/photdbc.c
r37425 r37669 20 20 21 21 // hostID is 0 for master program 22 photdbc_catalogs (argv[1], skylist, 0); 22 if (!ONLY_IMAGES) { 23 photdbc_catalogs (argv[1], skylist, 0); 24 } 23 25 24 26 char *skyfile = SkyTableFilename (argv[1]);
Note:
See TracChangeset
for help on using the changeset viewer.
