Changeset 16938
- Timestamp:
- Mar 11, 2008, 11:12:33 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/addstar/src/args_load2mass.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/addstar/src/args_load2mass.c
r7691 r16938 18 18 19 19 /*** provide additional data ***/ 20 /* restrict to a portion of the sky? (UNUSED)*/20 /* restrict to a portion of the sky? */ 21 21 UserPatch.Rmin = 0; 22 22 UserPatch.Rmax= 360; … … 34 34 remove_argument (N, &argc, argv); 35 35 } 36 /* override any header PHOTCODE values */37 options.photcode = 0;38 if ((N = get_argument (argc, argv, "-p"))) {39 remove_argument (N, &argc, argv);40 options.photcode = GetPhotcodeCodebyName (argv[N]);41 remove_argument (N, &argc, argv);42 }43 44 options.timeref = 0;45 options.mosaic = FALSE;46 options.existing_regions = FALSE;47 options.skip_missed = FALSE;48 options.closest = FALSE;49 36 50 37 /* only add to existing objects */ … … 61 48 } 62 49 63 /* select quality flags */64 SELECT_2MASS_QUALITY = NULL;65 if ((N = get_argument (argc, argv, "-2massquality"))) {66 remove_argument (N, &argc, argv);67 SELECT_2MASS_QUALITY = strcreate (argv[N]);68 remove_argument (N, &argc, argv);69 }70 50 /* extra error messages */ 71 51 VERBOSE = FALSE; … … 75 55 } 76 56 77 /* other defaults */ 57 /* other addstar options which cannot be used in load2mass */ 58 options.photcode = 0; 59 options.timeref = 0; 60 options.mosaic = FALSE; 61 options.existing_regions = FALSE; 62 options.skip_missed = FALSE; 63 options.closest = FALSE; 78 64 options.nosort = FALSE; 79 65 options.update = FALSE; … … 96 82 static void help () { 97 83 98 fprintf (stderr, "USAGE\n"); 99 fprintf (stderr, " load2mass"); 100 fprintf (stderr, " add data from 2MASS catalog to fullsky\n\n"); 84 fprintf (stderr, "USAGE: load2mass [options]\n"); 85 fprintf (stderr, " add data from 2MASS catalog to fullsky\n\n"); 101 86 102 87 fprintf (stderr, " optional flags:\n"); 103 fprintf (stderr, " - p (photcode) : specify photcode (override header)\n");88 fprintf (stderr, " -region Rmin Rmax Dmin Dmax : update only this portion of the sky\n"); 104 89 fprintf (stderr, " -only-match : only add measurements to existing objects\n"); 105 90 fprintf (stderr, " -replace : replace time/photcode measurements (no duplication)\n"); … … 109 94 exit (2); 110 95 } 96 97 # if (0) 98 /* select quality flags */ 99 SELECT_2MASS_QUALITY = NULL; 100 if ((N = get_argument (argc, argv, "-2massquality"))) { 101 remove_argument (N, &argc, argv); 102 SELECT_2MASS_QUALITY = strcreate (argv[N]); 103 remove_argument (N, &argc, argv); 104 } 105 # endif 106 107 # if (0) 108 /* override any header PHOTCODE values */ 109 if ((N = get_argument (argc, argv, "-p"))) { 110 remove_argument (N, &argc, argv); 111 options.photcode = GetPhotcodeCodebyName (argv[N]); 112 remove_argument (N, &argc, argv); 113 } 114 # endif 115
Note:
See TracChangeset
for help on using the changeset viewer.
