IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 24, 2016, 3:29:05 PM (10 years ago)
Author:
eugene
Message:

merging changes from trunk

Location:
branches/czw_branch/20160809
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20160809

  • branches/czw_branch/20160809/Ohana

  • branches/czw_branch/20160809/Ohana/src/relastro/src

  • branches/czw_branch/20160809/Ohana/src/relastro/src/relastro.c

    r39619 r39719  
    104104    }
    105105
     106    case OP_REPAIR_STACKS: {
     107      FITS_DB db;
     108      if (!PARALLEL) {
     109     
     110        set_db (&db);
     111        gfits_db_init (&db);
     112
     113        /* lock and load the image db table */
     114        int status = dvo_image_lock (&db, ImageCat, 60.0, LCK_SOFT);
     115        if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename);
     116        if (db.dbstate == LCK_EMPTY) Shutdown ("ERROR: No images in catalog %s (1)", db.filename);
     117        if (!dvo_image_load (&db, VERBOSE, FALSE)) Shutdown ("can't read image catalog %s", db.filename);
     118        // the raw FITS data is freed by dvo_image_load, leaving only the Image structure data
     119
     120        /* load regions and images based on specified sky patch (default depth) */
     121        load_images (&db, skylist, FALSE, USE_ALL_IMAGES);
     122      }
     123
     124      // iterate over catalogs to make detection coordinates consistant
     125      RepairStacks (skylist, 0, NULL);
     126
     127      if (!PARALLEL) {
     128        freeImages (db.ftable.buffer);
     129        gfits_db_free (&db);
     130        freeMosaics ();
     131      }
     132
     133      relastro_free (sky, skylist);
     134      exit (0);
     135    }
     136
     137    case OP_REPAIR_OBJECT_ID: {
     138
     139      // iterate over catalogs to make detection coordinates consistant
     140      RepairObjectIDs (skylist, 0, NULL);
     141
     142      relastro_free (sky, skylist);
     143      exit (0);
     144    }
     145
    106146    case OP_HIGH_SPEED:
    107147      /* high-speed is a 2pt cross-correlation process for linking moving objects (high PM) */
Note: See TracChangeset for help on using the changeset viewer.