IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 23, 2007, 4:39:53 PM (19 years ago)
Author:
eugene
Message:

remove the concept of primary / secondary photcodes: all average mags go into the secfilt table

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/dvo-mods-2007-02/Ohana/src/uniphot/src/ConfigInit.c

    r6684 r12031  
    55  double ZERO_POINT;
    66  char  *config, *file;
    7   char   PhotCodeFile[256];
     7  char CatdirPhotcodeFile[256];
     8  char MasterPhotcodeFile[256];
    89
    910  /*** load configuration info ***/
     
    2021  ScanConfig (config, "CATMODE",                "%s",  0, CATMODE);
    2122  ScanConfig (config, "CATFORMAT",              "%s",  0, CATFORMAT);
     23  ScanConfig (config, "PHOTCODE_FILE",          "%s",  0, MasterPhotcodeFile);
     24
    2225  sprintf (ImageCat, "%s/Images.dat", CATDIR);
    2326
    24   ScanConfig (config, "PHOTCODE_FILE",          "%s",  0, PhotCodeFile);
    2527  ScanConfig (config, "ZERO_PT",                "%lf", 0, &ZERO_POINT);
    2628  SetZeroPoint (ZERO_POINT);
     
    3234  if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR");
    3335
    34   if (!LoadPhotcodes (PhotCodeFile)) {
    35     fprintf (stderr, "error loading photcodes\n");
    36     exit (0);
     36  /* XXX this does not yet write out the master photcode table */
     37  sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR);
     38  if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile)) {
     39    fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);
     40    exit (1);
    3741  }
    3842
Note: See TracChangeset for help on using the changeset viewer.