- Timestamp:
- May 12, 2014, 5:44:57 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140423/Ohana/src/photdbc/src/args.c
r33655 r36745 85 85 } 86 86 87 // measurements with these photcodes are not copied to the output 87 88 PHOTCODE_DROP_LIST = NULL; 88 89 if ((N = get_argument (argc, argv, "-photcode-drop"))) { … … 92 93 } 93 94 94 PHOTCODE_SKIP_LIST = NULL; 95 if ((N = get_argument (argc, argv, "-photcode-skip"))) { 96 remove_argument (N, &argc, argv); 97 PHOTCODE_SKIP_LIST = strcreate(argv[N]); 95 // measurements with these photcodes are kept ***regardless of quality*** 96 // -photcode-keep J will keep all J-band measurements of all kinds 97 // -photcode-keep GPC1.02.g will keep all g-band measurements from chip XY02 98 PHOTCODE_KEEP_LIST = NULL; 99 if ((N = get_argument (argc, argv, "-photcode-keep"))) { 100 remove_argument (N, &argc, argv); 101 PHOTCODE_KEEP_LIST = strcreate(argv[N]); 98 102 remove_argument (N, &argc, argv); 99 103 } … … 254 258 } 255 259 256 PHOTCODE_ SKIP_LIST = NULL;257 if ((N = get_argument (argc, argv, "-photcode- skip"))) {258 remove_argument (N, &argc, argv); 259 PHOTCODE_ SKIP_LIST = strcreate(argv[N]);260 PHOTCODE_KEEP_LIST = NULL; 261 if ((N = get_argument (argc, argv, "-photcode-keep"))) { 262 remove_argument (N, &argc, argv); 263 PHOTCODE_KEEP_LIST = strcreate(argv[N]); 260 264 remove_argument (N, &argc, argv); 261 265 } … … 290 294 291 295 fprintf (stderr, " -photcode-drop : remove these photcodes from the output (REF or DEP only)\n"); 292 fprintf (stderr, " -photcode- skip : ignore these photcodes when assessing the validity (keep unless object is dropped)\n");296 fprintf (stderr, " -photcode-keep : ignore these photcodes when assessing the validity (keep unless object is dropped)\n"); 293 297 294 298 fprintf (stderr, " -instmag (min) (max) : range of valid instrumental magnitudes (or measurements are dropped)\n");
Note:
See TracChangeset
for help on using the changeset viewer.
