Changeset 15722
- Timestamp:
- Nov 29, 2007, 5:42:21 PM (18 years ago)
- Location:
- trunk/Ohana/src
- Files:
-
- 2 edited
-
dvosplit/src/dvosplit.c (modified) (3 diffs)
-
libdvo/include/dvo.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvosplit/src/dvosplit.c
r15721 r15722 4 4 int main (int argc, char **argv) { 5 5 6 // USAGE: dvosplit (outlevel) [- catalog (name)] [-region RA RA DEC DEC]6 // USAGE: dvosplit (outlevel) [-region RA RA DEC DEC] 7 7 8 8 // the output catalog needs to inherit the SKY_DEPTH of the input catalog. 9 9 // if the CATDIR/SkyTable.fits is not found, assume the HST layout (old default) 10 11 // load the sky table for the existing database 10 12 sky = SkyTableLoadOptimal (CATDIR, NULL, NULL, SKY_DEPTH_HST, VERBOSE); 11 13 SkyTableSetFilenames (sky, CATDIR, "cpt"); 12 skylist = SkyListByPatch (sky, -1, ®ION); 14 15 // XXX I should just be copying the input sky and setting the output names on that 16 // load the sky table for the existing database, generate output names 17 outsky = SkyTableLoadOptimal (CATDIR, NULL, NULL, SKY_DEPTH_HST, VERBOSE); 18 SkyTableSetFilenames (outsky, OUTDIR, "cpt"); 19 20 // get the list of populated regions 21 skylist = SkyListByPatch (sky, -1, ®ION); 13 22 14 23 for (i = 0; i < skylist[0].Nregions; i++) { … … 17 26 // if (current level > out level) skip: cannot currently merge catalogs 18 27 // if (current level == out level) skip: no action is needed 28 if (skylist[0].regions[i][0].depth >= OUT_DEPTH) continue; 29 30 outlist = SkyListByPatch (outsky, OUT_DEPTH, skylist[0].regions[i]); 19 31 20 32 // set the parameters which guide catalog open/load/create … … 23 35 incatalog.catflags = LOAD_NONE; 24 36 25 // XXX how do I open and not read the entire catalog?26 27 37 // an error exit status here is a significant error 28 if (!dvo_catalog_open (&incatalog, skylist[0].regions[i], VERBOSE, "r p")) {38 if (!dvo_catalog_open (&incatalog, skylist[0].regions[i], VERBOSE, "r")) { 29 39 fprintf (stderr, "ERROR: failure to open catalog file %s\n", incatalog.filename); 30 40 exit (2); -
trunk/Ohana/src/libdvo/include/dvo.h
r15514 r15722 72 72 73 73 /* catalog values to be loaded */ 74 # define LOAD_NONE 0x00 74 75 # define LOAD_AVES 0x01 75 76 # define LOAD_MEAS 0x02
Note:
See TracChangeset
for help on using the changeset viewer.
