Changeset 36530
- Timestamp:
- Feb 18, 2014, 2:45:31 PM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140206/Ohana/src
- Files:
-
- 4 edited
-
libdvo/src/RegionHostTable.c (modified) (1 diff)
-
relphot/src/args.c (modified) (1 diff)
-
relphot/src/assign_images.c (modified) (3 diffs)
-
relphot/src/launch_region_hosts.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140206/Ohana/src/libdvo/src/RegionHostTable.c
r36520 r36530 124 124 125 125 table->Rmin = MIN(Rmin, table->Rmin); 126 table->Rmax = M IN(Rmax, table->Rmax);126 table->Rmax = MAX(Rmax, table->Rmax); 127 127 table->Dmin = MIN(Dmin, table->Dmin); 128 table->Dmax = M IN(Dmax, table->Dmax);128 table->Dmax = MAX(Dmax, table->Dmax); 129 129 130 130 // InitIOBuffer (&hosts[Nhosts].stdout, 1000); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/args.c
r36519 r36530 381 381 } 382 382 383 if ((mode == UPDATE_AVERAGES) && (argc != 1)) relphot_usage (); 384 if (mode == UPDATE_IMAGES) { 385 PhotcodeList = strcreate (argv[1]); 386 photcodes = ParsePhotcodeList (PhotcodeList, &Nphotcodes, TRUE); // require SEC photcodes 387 remove_argument (1, &argc, argv); 383 switch (mode) { 384 case UPDATE_AVERAGES: 385 if (argc != 1) relphot_usage(); 386 break; 387 388 case UPDATE_IMAGES: 389 case PARALLEL_IMAGES: 390 case PARALLEL_REGIONS: 391 PhotcodeList = strcreate (argv[1]); 392 photcodes = ParsePhotcodeList (PhotcodeList, &Nphotcodes, TRUE); // require SEC photcodes 393 remove_argument (1, &argc, argv); 394 break; 395 396 default: 397 fprintf (stderr, "no valid mode selected\n"); 398 relphot_usage(); 399 break; 388 400 } 389 401 if (argc != 1) relphot_usage (); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/assign_images.c
r36520 r36530 65 65 66 66 // this adds 1.3 sec for 3M images 67 if (!FindMosaicForImage (image, Nimage, i)) {67 if (!FindMosaicForImage (image, Nimage, j)) { 68 68 if (VERBOSE2) fprintf (stderr, "cannot find mosaic for "OFF_T_FMT"\n", i); 69 69 continue; … … 86 86 87 87 i = find_host_for_coords (regionHosts, Rc, Dc); 88 88 89 if (i == -1) continue; 89 90 … … 100 101 } 101 102 } 103 102 104 return TRUE; 103 105 } -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/launch_region_hosts.c
r36519 r36530 27 27 // subset images per host : CATDIR/Image.HOSTNAME.fits 28 28 char filename[1024]; 29 snprintf (filename, 1024, "%s/Image.% s.fits", CATDIR, host->hostname);29 snprintf (filename, 1024, "%s/Image.%d.fits", CATDIR, host->hostID); 30 30 31 31 // write the image subset for this host … … 33 33 34 34 char command[1024]; 35 snprintf (command, 1024, "relphot -parallel-images %s -region-hosts %s -region-hostID %d -D CATDIR %s -region %f %f %f %f -statmode %s -D CAMERA %s -D STAR_TOOFEW %d -minerror %f",36 filename, REGION_FILE, host->hostID, CATDIR, host->Rmin, host->Rmax, host->Dmin, host->Dmax, STATMODE, CAMERA, STAR_TOOFEW, MIN_ERROR);35 snprintf (command, 1024, "relphot %s -parallel-images %s -region-hosts %s -region-hostID %d -D CATDIR %s -region %f %f %f %f -statmode %s -D CAMERA %s -D STAR_TOOFEW %d -minerror %f", 36 PhotcodeList, filename, REGION_FILE, host->hostID, CATDIR, host->Rmin, host->Rmax, host->Dmin, host->Dmax, STATMODE, CAMERA, STAR_TOOFEW, MIN_ERROR); 37 37 38 38 if (VERBOSE) strextend (command, "-v");
Note:
See TracChangeset
for help on using the changeset viewer.
