IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 8, 2007, 12:21:18 PM (19 years ago)
Author:
eugene
Message:

complete merge from branch dvo-mods-2007-02

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/imregister/base/ConfigInit.c

    r6684 r12332  
    77  int i, NDB;
    88  char *config, *file, ElixirBase[80], catdir[256];
     9  char CatdirPhotcodeFile[256];
     10  char MasterPhotcodeFile[256];
    911
    1012  /*** load configuration info ***/
     
    2527
    2628  WarnConfig (config, "CATDIR",                      "%s", 0, catdir);
     29  WarnConfig (config, "PHOTCODE_FILE",               "%s", 0, MasterPhotcodeFile);
    2730  sprintf (ImPhotDB, "%s/Images.dat", catdir);
    2831
    2932  /* small text databases: filters, camera defs */
    30   WarnConfig (config, "PHOTCODE_FILE",               "%s", 0, PhotCodeFile);
    3133  WarnConfig (config, "TEMPERATURE_LOG",             "%s", 0, TempLogFile);
    3234  WarnConfig (config, "FILTER_LIST",                 "%s", 0, FilterList);
     
    7375                                                   
    7476  WarnConfig (config, "imstats",                     "%s", 0, ElixirBase);
    75   sprintf (ImstatFifo, "%s.source", ElixirBase);   
     77  sprintf (ImstatFifo, "%s.photcode", ElixirBase);   
    7678  WarnConfig (config, "ptolemy",                     "%s", 0, ElixirBase);
    77   sprintf (PtolemyFifo, "%s.source", ElixirBase);
     79  sprintf (PtolemyFifo, "%s.photcode", ElixirBase);
    7880
    7981  if (!ScanConfig (config, "CONNECT", "%s",  0, CONNECT)) {
     
    101103  }
    102104
     105  /* XXX this does not yet write out the master photcode table */
     106  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", catdir);
     107  if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile)) {
     108    fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);
     109    exit (1);
     110  }
     111
    103112  free (config);
    104113  free (file);
Note: See TracChangeset for help on using the changeset viewer.