IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16938


Ignore:
Timestamp:
Mar 11, 2008, 11:12:33 AM (18 years ago)
Author:
eugene
Message:

clarify help, remove unusable options

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/addstar/src/args_load2mass.c

    r7691 r16938  
    1818
    1919  /*** provide additional data ***/
    20   /* restrict to a portion of the sky? (UNUSED) */
     20  /* restrict to a portion of the sky? */
    2121  UserPatch.Rmin = 0;
    2222  UserPatch.Rmax= 360;
     
    3434    remove_argument (N, &argc, argv);
    3535  }
    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;
    4936
    5037  /* only add to existing objects */
     
    6148  }
    6249
    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   }
    7050  /* extra error messages */
    7151  VERBOSE = FALSE;
     
    7555  }
    7656
    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;
    7864  options.nosort = FALSE;
    7965  options.update = FALSE;
     
    9682static void help () {
    9783
    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");
    10186
    10287  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");
    10489  fprintf (stderr, "  -only-match                 : only add measurements to existing objects\n");
    10590  fprintf (stderr, "  -replace                    : replace time/photcode measurements (no duplication)\n");
     
    10994  exit (2);
    11095}
     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.