Changeset 24750 for trunk/Ohana/src/dvomerge/src/dvomerge.c
- Timestamp:
- Jul 12, 2009, 10:28:47 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/dvomerge/src/dvomerge.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/src/dvomerge.c
r24745 r24750 21 21 input2 = argv[3]; 22 22 output = argv[5]; 23 24 // the first input define the photcode table & db layout 25 sprintf (filename, "%s/Photcodes.dat", input1); 26 if (!LoadPhotcodes (filename, NULL)) { 27 fprintf (stderr, "error loading photcode table %s\n", filename); 28 exit (1); 29 } 30 // save the photcodes in the output catdir 31 sprintf (filename, "%s/Photcodes.dat", output); 32 if (!check_file_access (filename, TRUE, TRUE)) { 33 fprintf (stderr, "error creating output catdir %s\n", output); 34 exit (1); 35 } 36 if (!SavePhotcodesFITS (filename)) { 37 fprintf (stderr, "error saving photcode table %s\n", filename); 38 exit (1); 39 } 23 40 24 41 // load the sky table for the existing database … … 86 103 continue; 87 104 } 88 merge_catalogs_old (&outsky[0].regions[i], &outcatalog, &incatalog, 1.0);105 merge_catalogs_old (&outsky[0].regions[i], &outcatalog, &incatalog, RADIUS); 89 106 dvo_catalog_unlock (&incatalog); 90 107 dvo_catalog_free (&incatalog); 91 108 } 109 SkyListFree (inlist); 110 92 111 outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 93 112 dvo_catalog_save (&outcatalog, VERBOSE);
Note:
See TracChangeset
for help on using the changeset viewer.
