Changeset 6239 for trunk/Ohana/src/getstar/src/getstar.c
- Timestamp:
- Jan 29, 2006, 9:11:01 AM (20 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/getstar/src/getstar.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/getstar/src/getstar.c
r2490 r6239 10 10 11 11 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, ®ION); 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 } 12 55 13 56 image = gimages (argv[1]);
Note:
See TracChangeset
for help on using the changeset viewer.
