Changeset 38471 for trunk/Ohana/src/dvomerge
- Timestamp:
- Jun 14, 2015, 10:12:31 AM (11 years ago)
- Location:
- trunk/Ohana/src/dvomerge/src
- Files:
-
- 3 edited
-
LoadCatalog.c (modified) (1 diff)
-
dvosecfilt_catalogs.c (modified) (1 diff)
-
dvoverify_utils.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/src/LoadCatalog.c
r38441 r38471 3 3 int LoadCatalog (Catalog *catalog, SkyRegion *region, char *filename, char *mode, int Nsecfilt) { 4 4 5 // set the parameters which guide catalog open/load/create 6 catalog[0].filename = filename; 7 catalog[0].Nsecfilt = Nsecfilt; 5 // set the parameters which guide catalog open/load/create 6 dvo_catalog_init (catalog, TRUE); 7 catalog[0].filename = filename; 8 catalog[0].Nsecfilt = Nsecfilt; 8 9 9 // always load all of the data (if any exists)10 catalog[0].catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT;11 12 catalog[0].catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data13 catalog[0].catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data14 15 if (!dvo_catalog_open (catalog, region, VERBOSE, mode)) {16 fprintf (stderr, "ERROR: failure to open catalog file %s\n", filename);17 exit (2);18 }19 return (TRUE);10 // always load all of the data (if any exists) 11 catalog[0].catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_MISSING | DVO_LOAD_SECFILT | DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ | DVO_LOAD_STARPAR | DVO_LOAD_GALPHOT; 12 13 catalog[0].catformat = dvo_catalog_catformat (CATFORMAT); // set the default catformat from config data 14 catalog[0].catmode = dvo_catalog_catmode (CATMODE); // set the default catmode from config data 15 16 if (!dvo_catalog_open (catalog, region, VERBOSE, mode)) { 17 fprintf (stderr, "ERROR: failure to open catalog file %s\n", filename); 18 exit (2); 19 } 20 return (TRUE); 20 21 } -
trunk/Ohana/src/dvomerge/src/dvosecfilt_catalogs.c
r38468 r38471 35 35 char hostfile[1024]; 36 36 snprintf (hostfile, 1024, "%s/%s.cpt", HOSTDIR, skylist->regions[i]->name); 37 38 dvo_catalog_init (&catalog, TRUE); 37 39 catalog.filename = HOST_ID ? hostfile : skylist->filename[i]; 38 40 -
trunk/Ohana/src/dvomerge/src/dvoverify_utils.c
r38441 r38471 175 175 176 176 // set the parameters which guide catalog open/load/create 177 dvo_catalog_init (&catalog, TRUE); 177 178 catalog.filename = filename; 178 catalog.catformat = DVO_FORMAT_UNDEF; // read-only,do not set the catformat179 catalog.catmode = DVO_MODE_UNDEF; // read-only, do not set the catmode180 179 catalog.catflags = DVO_LOAD_AVERAGE | DVO_LOAD_MEASURE | DVO_LOAD_LENSING | DVO_LOAD_LENSOBJ; 181 180 catalog.Nsecfilt = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
