- Timestamp:
- Feb 23, 2007, 4:39:53 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/dvo-mods-2007-02/Ohana/src/uniphot/src/ConfigInit.c
r6684 r12031 5 5 double ZERO_POINT; 6 6 char *config, *file; 7 char PhotCodeFile[256]; 7 char CatdirPhotcodeFile[256]; 8 char MasterPhotcodeFile[256]; 8 9 9 10 /*** load configuration info ***/ … … 20 21 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 21 22 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 23 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile); 24 22 25 sprintf (ImageCat, "%s/Images.dat", CATDIR); 23 26 24 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, PhotCodeFile);25 27 ScanConfig (config, "ZERO_PT", "%lf", 0, &ZERO_POINT); 26 28 SetZeroPoint (ZERO_POINT); … … 32 34 if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR"); 33 35 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); 37 41 } 38 42
Note:
See TracChangeset
for help on using the changeset viewer.
