IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 1, 2010, 4:40:37 PM (16 years ago)
Author:
eugene
Message:

add feature to find high-speed proper-motion objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/args.c

    r27581 r28184  
    2828    }
    2929  }
     30  if ((N = get_argument (argc, argv, "-high-speed"))) {
     31    // XXX include a parallax / no-parallax option
     32    if (N >= argc - 3) usage();
     33    FIT_TARGET = TARGET_HIGH_SPEED;
     34    remove_argument (N, &argc, argv);
     35    PHOTCODE_A_LIST = strcreate(argv[N]);
     36    remove_argument (N, &argc, argv);
     37    PHOTCODE_B_LIST = strcreate(argv[N]);
     38    remove_argument (N, &argc, argv);
     39    RADIUS = atof(argv[N]);
     40    remove_argument (N, &argc, argv);
     41  }
     42
    3043  if ((N = get_argument (argc, argv, "-update-simple"))) {
    3144    remove_argument (N, &argc, argv);
     
    271284void usage () {
    272285  fprintf (stderr, "ERROR: USAGE: relastro -region RA RA DEC DEC\n");
    273   fprintf (stderr, "       OR:    relastro -catalog (ra) (dec)\n");
    274   fprintf (stderr, "  working options: \n");
     286  fprintf (stderr, "       OR:    relastro -catalog (ra) (dec)\n\n");
     287  fprintf (stderr, "  specify one of the following modes: \n");
    275288  fprintf (stderr, "  -update-objects\n");
    276289  fprintf (stderr, "    -pm\n");
     
    280293  fprintf (stderr, "  -update-chips\n");
    281294  fprintf (stderr, "  -update-mosaics\n");
     295  fprintf (stderr, "  -high-speed (code[,code,code]) (code[,code,code]) (radius)\n\n");
     296  fprintf (stderr, "  additional options: \n");
    282297  fprintf (stderr, "  -time (start)(stop)\n");
    283298  fprintf (stderr, "  +photcode (code)[,code,code...]\n");
Note: See TracChangeset for help on using the changeset viewer.