IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 20, 2006, 5:36:41 PM (20 years ago)
Author:
eugene
Message:

updated to the new DVO APIs; minor cleanups (unused variables, etc)

File:
1 edited

Legend:

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

    r7917 r8427  
    7070    /* lock, load, unlock catalog */
    7171    catalog.filename = skylist[0].filename[k];
    72     switch (lock_catalog (&catalog, LCK_SOFT)) {
    73       case 2:
    74         unlock_catalog (&catalog);
    75       case 0:
    76         continue;
     72    catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF;
     73
     74    // an error exit status here is a significant error
     75    if (!dvo_catalog_open (&catalog, NULL, FALSE, "r")) {
     76      fprintf (stderr, "ERROR: failure to open catalog file %s\n", catalog.filename);
     77      exit (2);
    7778    }
    78     catalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_SECF;
    79     if (!load_catalog (&catalog, TRUE)) {
    80       unlock_catalog (&catalog);
    81       continue;
    82     }
    83     unlock_catalog (&catalog);
     79    dvo_catalog_unlock (&catalog);
    8480
    8581    for (i = 0; i < catalog.Naverage; i++) {
     
    114110      }
    115111    }
     112    dvo_catalog_free (&catalog);
    116113  }
    117114  Yvec.Nelements = Xvec.Nelements = N;
Note: See TracChangeset for help on using the changeset viewer.