Changeset 34689
- Timestamp:
- Nov 23, 2012, 8:50:17 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20120905/Ohana/src
- Files:
-
- 9 edited
-
getstar/src/ConfigInit.c (modified) (3 diffs)
-
libdvo/src/LoadPhotcodes.c (modified) (1 diff)
-
markrock/src/ConfigInit.c (modified) (3 diffs)
-
markstar/src/ConfigInit.c (modified) (3 diffs)
-
photdbc/src/ConfigInit.c (modified) (3 diffs)
-
relastro/src/ConfigInit.c (modified) (3 diffs)
-
relphot/src/ConfigInit.c (modified) (3 diffs)
-
uniphot/src/initialize_setphot.c (modified) (1 diff)
-
uniphot/src/initialize_setphot_client.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/Ohana/src/getstar/src/ConfigInit.c
r25757 r34689 5 5 char *config, *file; 6 6 char CatdirPhotcodeFile[256]; 7 char MasterPhotcodeFile[256];8 7 9 8 /*** load configuration info ***/ … … 21 20 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 22 21 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 23 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);24 22 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) { 25 23 SKY_DEPTH = 2; … … 34 32 /* XXX this does not yet write out the master photcode table */ 35 33 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 36 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {37 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);34 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 35 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 38 36 exit (1); 39 37 } -
branches/eam_branches/ipp-20120905/Ohana/src/libdvo/src/LoadPhotcodes.c
r28246 r34689 11 11 } 12 12 13 if (!master_file) return FALSE; 14 13 15 /* next try to load the photcodes from the master text photcode file */ 14 16 /* automatically (or on demand?) save the text file to the FITS version */ -
branches/eam_branches/ipp-20120905/Ohana/src/markrock/src/ConfigInit.c
r25757 r34689 5 5 char *config, *file; 6 6 char CatdirPhotcodeFile[256]; 7 char MasterPhotcodeFile[256];8 7 9 8 /*** load configuration info ***/ … … 21 20 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 22 21 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 23 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);24 22 25 23 /* unique to markrock */ … … 44 42 /* XXX this does not yet write out the master photcode table */ 45 43 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 46 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {47 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);44 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 45 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 48 46 exit (1); 49 47 } -
branches/eam_branches/ipp-20120905/Ohana/src/markstar/src/ConfigInit.c
r25757 r34689 5 5 char *config, *file; 6 6 char CatdirPhotcodeFile[256]; 7 char MasterPhotcodeFile[256];8 7 9 8 /*** load configuration info ***/ … … 21 20 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 22 21 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 23 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);24 22 25 23 sprintf (ImageCat, "%s/Images.dat", CATDIR); … … 54 52 /* XXX this does not yet write out the master photcode table */ 55 53 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 56 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {57 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);54 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 55 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 58 56 exit (1); 59 57 } -
branches/eam_branches/ipp-20120905/Ohana/src/photdbc/src/ConfigInit.c
r33963 r34689 14 14 char *config, *file; 15 15 char CatdirPhotcodeFile[256]; 16 char MasterPhotcodeFile[256];17 16 18 17 /*** load configuration info ***/ … … 60 59 free (tmpcatdir); 61 60 62 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);63 64 61 sprintf (ImageCat, "%s/Images.dat", CATDIR); 65 62 … … 73 70 /* XXX this does not yet write out the master photcode table */ 74 71 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 75 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, TRUE)) {72 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 76 73 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 77 74 exit (1); -
branches/eam_branches/ipp-20120905/Ohana/src/relastro/src/ConfigInit.c
r33963 r34689 5 5 char *config, *file; 6 6 char CatdirPhotcodeFile[256]; 7 char MasterPhotcodeFile[256];8 7 struct stat filestat; 9 8 int status; … … 46 45 ScanConfig(config, "CATMODE", "%s", 0, CATMODE); 47 46 ScanConfig(config, "CATFORMAT", "%s", 0, CATFORMAT); 48 ScanConfig(config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);49 47 50 48 // Defaults for WHERE_A are established in db_utils.c: intializeConstraints … … 73 71 /* update master photcode table if not defined */ 74 72 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 75 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {76 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);73 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 74 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 77 75 exit (1); 78 76 } -
branches/eam_branches/ipp-20120905/Ohana/src/relphot/src/ConfigInit.c
r33963 r34689 6 6 char *config, *file; 7 7 char CatdirPhotcodeFile[256]; 8 char MasterPhotcodeFile[256];9 8 10 9 /*** load configuration info ***/ … … 45 44 ScanConfig (config, "CATMODE", "%s", 0, CATMODE); 46 45 ScanConfig (config, "CATFORMAT", "%s", 0, CATFORMAT); 47 ScanConfig (config, "PHOTCODE_FILE", "%s", 0, MasterPhotcodeFile);48 46 49 sprintf (ImageCat, "%s/Images.dat", CATDIR);47 sprintf (ImageCat, DVO_MAX_PATH, "%s/Images.dat", CATDIR); 50 48 51 49 if (!ScanConfig (config, "SKY_DEPTH", "%d", 0, &SKY_DEPTH)) { … … 69 67 /* XXX this does not yet write out the master photcode table */ 70 68 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 71 if (!LoadPhotcodes (CatdirPhotcodeFile, MasterPhotcodeFile, TRUE)) {72 fprintf (stderr, "error loading photcode table %s or master file %s\n", CatdirPhotcodeFile, MasterPhotcodeFile);69 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 70 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 73 71 exit (1); 74 72 } -
branches/eam_branches/ipp-20120905/Ohana/src/uniphot/src/initialize_setphot.c
r33963 r34689 21 21 // load the photcode table 22 22 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 23 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, TRUE)) {23 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 24 24 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 25 25 exit (1); -
branches/eam_branches/ipp-20120905/Ohana/src/uniphot/src/initialize_setphot_client.c
r33654 r34689 17 17 // load the photcode table : XXX needed? 18 18 sprintf (CatdirPhotcodeFile, "%s/Photcodes.dat", CATDIR); 19 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, TRUE)) {19 if (!LoadPhotcodes (CatdirPhotcodeFile, NULL, FALSE)) { 20 20 fprintf (stderr, "error loading photcode table %s\n", CatdirPhotcodeFile); 21 21 exit (1);
Note:
See TracChangeset
for help on using the changeset viewer.
