IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 2, 2014, 11:03:19 AM (12 years ago)
Author:
eugene
Message:

first working example of fakeastro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20140904/Ohana/src/fakeastro/src/ConfigInit.c

    r37449 r37453  
    55  char  *config, *file;
    66  char CatdirPhotcodeFile[256];
    7   struct stat filestat;
    8   int status;
    97
    108  /*** load configuration info ***/
     
    3028  ScanConfig(config, "CATMODE",                "%s",  0, CATMODE);
    3129  ScanConfig(config, "CATFORMAT",              "%s",  0, CATFORMAT);
     30  GetConfig (config, "PHOTCODE_FILE",          "%s",  0, MasterPhotcodeFile);
    3231
    3332  sprintf (ImageCat, "%s/Images.dat", CATDIR);
     
    3938  if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
    4039
    41   // check for existence of CATDIR
    42   status = stat (CATDIR, &filestat);
    43   if (status == -1) {
    44     fprintf (stderr, "directory %s does not exist, giving up\n", CATDIR);
    45     exit (1);
    46   }
    47 
    4840  /* update master photcode table if not defined */
    4941  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);
    50   if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) {
     42  if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {
    5143    fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile);
    5244    exit (1);
Note: See TracChangeset for help on using the changeset viewer.