IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31599


Ignore:
Timestamp:
Jun 2, 2011, 2:04:44 PM (15 years ago)
Author:
eugene
Message:

fixed to use read-only access to the source database

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/high_speed_catalogs.c

    r28184 r31599  
    1010
    1111  // 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);
    1313  SkyTableSetFilenames (sky, CATDIR, "cpt");
    1414 
     
    3030    catalog.Nsecfilt  = GetPhotcodeNsecfilt ();
    3131
    32     if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, "w")) {
     32    if (!dvo_catalog_open (&catalog, skylist[0].regions[i], VERBOSE, "r")) {
    3333      fprintf (stderr, "ERROR: failure reading catalog %s\n", catalog.filename);
    3434      exit (1);
     
    4040      continue;
    4141    }
     42    dvo_catalog_unlock (&catalog);
     43    dvo_catalog_free (&catalog);
    4244
    4345    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);
    5246  }
    5347 
Note: See TracChangeset for help on using the changeset viewer.