IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 21, 2006, 3:59:39 PM (20 years ago)
Author:
eugene
Message:

fix to dvo_catalog_open inits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/pmeasure.c

    r8427 r8455  
    44 
    55  FILE *f;
    6   int i, j, k, m, N;
     6  int i, j, k, m, N, VERBOSE;
    77  double Mz, Mr, mag;
    88  double Radius, Rmin, Rmax;
     
    5555  }
    5656
     57  VERBOSE = FALSE;
     58  if ((N = get_argument (argc, argv, "-v"))) {
     59    remove_argument (N, &argc, argv);
     60    VERBOSE = TRUE;
     61  }
     62
    5763  if ((N = get_argument (argc, argv, "-m"))) {
    5864    remove_argument (N, &argc, argv);
     
    7783 
    7884  for (j = 0; j < skylist[0].Nregions; j++) {
    79     catalog.average = 0;
    80    
    81     /* lock, load, unlock catalog */
    8285    catalog.filename = skylist[0].filename[j];
    8386    catalog.catflags = LOAD_AVES | LOAD_MEAS;
     87    catalog.Nsecfilt = 0;
    8488
    8589    // an error exit status here is a significant error
    86     if (!dvo_catalog_open (&catalog, NULL, FALSE, "r")) {
     90    if (!dvo_catalog_open (&catalog, NULL, VERBOSE, "r")) {
    8791      fprintf (stderr, "ERROR: failure to open catalog file %s\n", catalog.filename);
    8892      exit (2);
Note: See TracChangeset for help on using the changeset viewer.