IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 72


Ignore:
Timestamp:
May 15, 2003, 11:20:12 PM (23 years ago)
Author:
eugene
Message:

added config entries to support DetrendAltDB

File:
1 edited

Legend:

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

    r70 r72  
    55void ConfigInit (int *argc, char **argv) {
    66
     7  int i, NDB;
    78  char *config, *file, ElixirBase[80];
    89
     
    7475  sprintf (PtolemyFifo, "%s.source", ElixirBase);
    7576
     77  /* load Detrend Alt Databases paths */
     78  NDB = 10;
     79  NDetrendAltDB = 0;
     80  ALLOCATE (DetrendAltDB, char *, NDB);
     81  ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);
     82  for (i = 1; ScanConfig (config, "DETREND_ALT_DB", "%s", i, DetrendAltDB[NDetrendAltDB]); i++) {
     83    NDetrendAltDB ++;
     84    if (NDetrendAltDB == NDB) {
     85      NDB += 10;
     86      REALLOCATE (DetrendAltDB, char *, NDB);
     87    }
     88    ALLOCATE (DetrendAltDB[NDetrendAltDB], char, 256);
     89  }
     90  free (DetrendAltDB[NDetrendAltDB]);
     91
    7692  if (! success) {
    7793    fprintf (stderr, "ERROR: problem with elixir configuration\n");
Note: See TracChangeset for help on using the changeset viewer.