Changeset 31599
- Timestamp:
- Jun 2, 2011, 2:04:44 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/high_speed_catalogs.c
r28184 r31599 10 10 11 11 // load the current sky table (layout of all SkyRegions) 12 sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, TRUE, SKY_DEPTH, VERBOSE);12 sky = SkyTableLoadOptimal (CATDIR, SKY_TABLE, GSCFILE, FALSE, SKY_DEPTH, VERBOSE); 13 13 SkyTableSetFilenames (sky, CATDIR, "cpt"); 14 14 … … 30 30 catalog.Nsecfilt = GetPhotcodeNsecfilt (); 31 31 32 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, " w")) {32 if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, "r")) { 33 33 fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename); 34 34 exit (1); … … 40 40 continue; 41 41 } 42 dvo_catalog_unlock (&catalog); 43 dvo_catalog_free (&catalog); 42 44 43 45 high_speed_objects (skylist[0].regions[i], &catalog); 44 45 if (!UPDATE) {46 dvo_catalog_unlock (&catalog);47 dvo_catalog_free (&catalog);48 continue;49 }50 51 save_catalogs (&catalog, 1);52 46 } 53 47
Note:
See TracChangeset
for help on using the changeset viewer.
