Changeset 28857
- Timestamp:
- Aug 5, 2010, 6:08:59 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/dvomerge/src/dvomergeUpdate.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/src/dvomergeUpdate.c
r28855 r28857 24 24 } 25 25 26 // since we are merging the input db into the output db, the output defines the photcode27 sprintf (filename, "%s/Photcodes.dat", output);28 if (!LoadPhotcodes (filename, NULL, FALSE)) {29 fprintf (stderr, "error loading photcode table: %s/Photcodes.dat\n", output);30 exit (1);31 }32 outputPhotcodes = GetPhotcodeTable();33 34 26 SetPhotcodeTable(NULL); 35 27 sprintf (filename, "%s/Photcodes.dat", input); … … 39 31 } 40 32 inputPhotcodes = GetPhotcodeTable(); 41 secfiltMap = GetSecFiltMap(outputPhotcodes, inputPhotcodes); 42 if (!secfiltMap) { 43 fprintf (stderr, "failed to map input secfilt photcodes to output photcodes table\n"); 44 exit (1); 33 34 // since we are merging the input db into the output db, the output defines the photcode 35 // table & db layout but, this requires the output to exist. if it does not, instead use the 36 // input. 37 38 SetPhotcodeTable(NULL); 39 sprintf (filename, "%s/Photcodes.dat", output); 40 if (LoadPhotcodes (filename, NULL, FALSE)) { 41 42 outputPhotcodes = GetPhotcodeTable(); 43 44 secfiltMap = GetSecFiltMap(outputPhotcodes, inputPhotcodes); 45 if (!secfiltMap) { 46 fprintf (stderr, "failed to map input secfilt photcodes to output photcodes table\n"); 47 exit (1); 48 } 49 } else { 50 fprintf(stderr, "%s not found using photcodes from %s/Photcodes.dat\n", filename, input); 51 outputPhotcodes = inputPhotcodes; 52 if (!check_dir_access (output, VERBOSE)) { 53 fprintf (stderr, "error creating output database directory %s\n", output); 54 exit (1); 55 } 56 SetPhotcodeTable(inputPhotcodes); 57 if (!SavePhotcodesFITS (filename)) { 58 fprintf (stderr, "error saving photcode table in %s/Photcodes.dat\n", output); 59 exit (1); 60 } 45 61 } 46 62
Note:
See TracChangeset
for help on using the changeset viewer.
