IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39382


Ignore:
Timestamp:
Feb 24, 2016, 10:18:30 AM (10 years ago)
Author:
eugene
Message:

in non-parallel context, load the image table for UpdateObjectOffsets

File:
1 edited

Legend:

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

    r38986 r39382  
    3535      exit (0);
    3636
    37     case OP_UPDATE_OFFSETS:
     37    case OP_UPDATE_OFFSETS:
     38      if (!PARALLEL) {
     39        FITS_DB db;
     40     
     41        set_db (&db);
     42        gfits_db_init (&db);
     43
     44        /* lock and load the image db table */
     45        int status = dvo_image_lock (&db, ImageCat, 60.0, LCK_SOFT);
     46        if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename);
     47        if (db.dbstate == LCK_EMPTY) Shutdown ("ERROR: No images in catalog %s (1)", db.filename);
     48        if (!dvo_image_load (&db, VERBOSE, FALSE)) Shutdown ("can't read image catalog %s", db.filename);
     49        // the raw FITS data is freed by dvo_image_load, leaving only the Image structure data
     50
     51        /* load regions and images based on specified sky patch (default depth) */
     52        load_images (&db, skylist, FALSE, USE_ALL_IMAGES);
     53      }
     54
    3855      // iterate over catalogs to make detection coordinates consistant
    3956      UpdateObjectOffsets (skylist, 0, NULL);
Note: See TracChangeset for help on using the changeset viewer.