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/imphot/ConfigInit.c

    r6684 r12332  
    88  int i, NDB;
    99  char *config, *file, ElixirBase[80], catdir[256];
     10  char CatdirPhotcodeFile[256];
     11  char MasterPhotcodeFile[256];
    1012
    1113  /*** load configuration info ***/
     
    2123
    2224  WarnConfig (config, "CATDIR",                      "%s", 0, catdir);
     25  WarnConfig (config, "PHOTCODE_FILE",               "%s", 0, MasterPhotcodeFile);
    2326  sprintf (ImPhotDB, "%s/Images.dat", catdir);
    2427
    2528  /* small text databases: filters, camera defs */
    26   WarnConfig (config, "PHOTCODE_FILE",               "%s", 0, PhotCodeFile);
    2729  WarnConfig (config, "TEMPERATURE_LOG",             "%s", 0, TempLogFile);
    2830  WarnConfig (config, "FILTER_LIST",                 "%s", 0, FilterList);
     
    6971                                                   
    7072  WarnConfig (config, "imstats",                     "%s", 0, ElixirBase);
    71   sprintf (ImstatFifo, "%s.source", ElixirBase);   
     73  sprintf (ImstatFifo, "%s.photcode", ElixirBase);   
    7274  WarnConfig (config, "ptolemy",                     "%s", 0, ElixirBase);
    73   sprintf (PtolemyFifo, "%s.source", ElixirBase);
     75  sprintf (PtolemyFifo, "%s.photcode", ElixirBase);
    7476
    7577  if (!ScanConfig (config, "CONNECT", "%s",  0, CONNECT)) {
     
    9799  }
    98100
     101  /* XXX this does not yet write out the master photcode table */
     102  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);
     103  if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile)) {
     104    fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);
     105    exit (1);
     106  }
     107
    99108  free (config);
    100109  free (file);
Note: See TracChangeset for help on using the changeset viewer.