IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 29, 2006, 9:11:01 AM (20 years ago)
Author:
eugene
Message:

moved image lock/unlock to libdvo; adding additional options

File:
1 edited

Legend:

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

    r2490 r6239  
    1010 
    1111  args (argc, argv);
     12  set_db (&db);
     13
     14  Nstars = 0;
     15  stars = NULL;
     16
     17  switch (MODE) {
     18
     19    case BY_REGION:
     20    case BY_RADIUS:
     21
     22      /* load corresponding sky regions, associated images */
     23      status = dvo_image_lock (&db, ImageCat, 60.0, LCK_SOFT);
     24      if (!status) Shutdown ("ERROR: failure to lock image catalog %s", db.filename);
     25
     26      skylist = SkyListByPatch (sky, -1, &REGION);
     27      overlap = gimages (&db, &image, MOSAIC, &Noverlap);
     28      dvo_image_unlock (&db);
     29
     30      for (i = 0; i < skylist[0].Nregions; i++) {
     31         
     32          catalog.filename = skylist[0].filename[i];
     33          load_pt_catalog (&catalog, skylist[0].regions[i]);
     34          unlock_catalog (&catalog);
     35
     36          /* skip empty catalogs */
     37          if (catalog.Nave_disk == 0) continue;
     38
     39          stars = find_matches (&catalog, &image, 0, 0, stars, &Nstars);
     40
     41      break;
     42
     43    case BY_CATALOG:
     44      /* not implemented */
     45      break;
     46
     47    case BY_IMAGE:
     48
     49      break;
     50
     51    case BY_IMLIST:
     52
     53      break;
     54  }
    1255
    1356  image = gimages (argv[1]);
Note: See TracChangeset for help on using the changeset viewer.