IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31612


Ignore:
Timestamp:
Jun 8, 2011, 11:43:34 AM (15 years ago)
Author:
eugene
Message:

allow read-only catdir for relastro high-speed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110505/Ohana/src/relastro/src/high_speed_catalogs.c

    r28184 r31612  
    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);
     
    4343    high_speed_objects (skylist[0].regions[i], &catalog);
    4444
    45     if (!UPDATE) {
    46       dvo_catalog_unlock (&catalog);
    47       dvo_catalog_free (&catalog);
    48       continue;
    49     }
    50    
    51     save_catalogs (&catalog, 1);
     45    dvo_catalog_unlock (&catalog);
     46    dvo_catalog_free (&catalog);
    5247  }
    5348 
Note: See TracChangeset for help on using the changeset viewer.