IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29857


Ignore:
Timestamp:
Nov 26, 2010, 11:01:27 AM (15 years ago)
Author:
eugene
Message:

better usage / help info for photdbc

Location:
branches/eam_branches/ipp-20101103/Ohana/src/photdbc
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/Ohana/src/photdbc/include/photdbc.h

    r28331 r29857  
    114114int SetSignals (void);
    115115int copy_images (char *outdir);
     116void usage();
  • branches/eam_branches/ipp-20101103/Ohana/src/photdbc/src/args.c

    r8630 r29857  
    6161  }
    6262
    63   if (argc != 2) {
    64     fprintf (stderr, "USAGE: photdbc (output)\n");
    65     exit (2);
    66   }
     63  if (argc != 2) usage();
    6764
    6865  if ((REGION.Rmin == 0) && (REGION.Rmax == 360) && (REGION.Dmin == -90) && (REGION.Dmax == +90)) {
     
    8077}
    8178
    82 /**
     79void usage() {
    8380
    84  this program takes an existing DVO database and makes a copy, applying a number of optional
    85  filters in the process. 
    86 
    87  photdbc (output)
    88 
    89  allowed filters / restrictions include:
    90 
    91  -region ra dec ra dec : limit operation to the specified region
    92  -join                 : join measurements between stars using JOIN_RADIUS
    93  -ccdregion X Y X Y    : only keep detections within the specified detector region
    94                          (can this be limited to specific photcodes? cameras? detectors?)
    95  -photcode_limits code Mmin Mmax : allow multiples of these
    96 
    97  SIGMA_MAX
    98  NMEAS_MIN
    99  INST_MAG_MAX
    100  INST_MAG_MIN
    101 
    102 **/
     81  fprintf (stderr, "USAGE: photdbc (output)\n\n");
     82  fprintf (stderr, " this program takes an existing DVO database and makes a copy, applying a number of optional\n");
     83  fprintf (stderr, " filters in the process.  \n");
     84  fprintf (stderr, "\n");
     85  fprintf (stderr, " photdbc (output)\n");
     86  fprintf (stderr, "\n");
     87  fprintf (stderr, " allowed filters / restrictions include:\n");
     88  fprintf (stderr, "\n");
     89  fprintf (stderr, " -region Rmin Rmax Dmin Dmax : limit operation to the specified region \n");
     90  fprintf (stderr, " -join                 : join measurements between stars using JOIN_RADIUS\n");
     91  fprintf (stderr, " -ccdregion X Y X Y    : only keep detections within the specified detector region\n");
     92  fprintf (stderr, "                         (can this be limited to specific photcodes? cameras? detectors?)\n");
     93  fprintf (stderr, " -photcode_limits code Mmin Mmax : allow multiples of these\n");
     94  fprintf (stderr, "\n");
     95  fprintf (stderr, " SIGMA_MAX\n");
     96  fprintf (stderr, " NMEAS_MIN\n");
     97  fprintf (stderr, " INST_MAG_MAX\n");
     98  fprintf (stderr, " INST_MAG_MIN\n");
     99  exit (2);
     100}
  • branches/eam_branches/ipp-20101103/Ohana/src/photdbc/src/initialize.c

    r4808 r29857  
    44
    55  /* are these set correctly? */
     6  if (get_argument (argc, argv, "-h")) usage();
     7  if (get_argument (argc, argv, "--h")) usage();
     8  if (get_argument (argc, argv, "-help")) usage();
     9  if (get_argument (argc, argv, "--help")) usage();
     10
    611  ConfigInit (&argc, argv);
    712  args (argc, argv);
  • branches/eam_branches/ipp-20101103/Ohana/src/photdbc/src/join_stars.c

    r28306 r29857  
    3232
    3333  /* reference for coords is this region */
     34  Ncurr = 0;
    3435  Naves = 0;
    3536  Rmid = Dmid = 0;
Note: See TracChangeset for help on using the changeset viewer.