Changeset 17207
- Timestamp:
- Mar 28, 2008, 3:39:06 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relastro/src/ConfigInit.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/ConfigInit.c
r17126 r17207 6 6 char CatdirPhotcodeFile[256]; 7 7 char MasterPhotcodeFile[256]; 8 struct stat filestat; 9 int status; 8 10 9 11 /*** load configuration info ***/ … … 29 31 GetConfig (config, "PM_TOOFEW", "%d", 0, &PM_TOOFEW); 30 32 GetConfig (config, "POS_TOOFEW", "%d", 0, &POS_TOOFEW); 31 GetConfig (config, "IMAGE_TOOFEW", "%d", 0, &IMAGE_TOOFEW);32 GetConfig (config, "IMAGE_GOOD_FRACTION", "%lf", 0, &IMAGE_GOOD_FRACTION);33 33 34 34 GetConfig (config, "GSCFILE", "%s", 0, GSCFILE); … … 47 47 } 48 48 49 // GetConfig (config, "ZERO_PT", "%lf", 0, &ZERO_POINT);50 // GetConfig (config, "RELPHOT_GRID_X", "%d", 0, &RELPHOT_GRID_X);51 // GetConfig (config, "RELPHOT_GRID_Y", "%d", 0, &RELPHOT_GRID_Y);52 // GetConfig (config, "RELPHOT_GRID_BINNING", "%d", 0, &RELPHOT_GRID_BINNING);53 // GetConfig (config, "CAMERA_CONFIG", "%s", 0, CameraConfig);54 55 49 if (*CATMODE == 0) strcpy (CATMODE, "RAW"); 56 50 if (*CATFORMAT == 0) strcpy (CATFORMAT, "ELIXIR"); 57 51 58 /* XXX this does not yet write out the master photcode table */ 52 // check for existence of CATDIR 53 status = stat (CATDIR, &filestat); 54 if (status == -1) { 55 fprintf (stderr, "directory %s does not exist, giving up\n", CATDIR); 56 exit (1); 57 } 58 59 /* update master photcode table if not defined */ 59 60 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 60 61 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile)) {
Note:
See TracChangeset
for help on using the changeset viewer.
