Changeset 36506
- Timestamp:
- Feb 11, 2014, 8:57:15 AM (12 years ago)
- Location:
- branches/eam_branches/ipp-20140206/Ohana/src/relphot/src
- Files:
-
- 5 edited
-
args.c (modified) (1 diff)
-
assign_images.c (modified) (3 diffs)
-
help.c (modified) (1 diff)
-
relphot_parallel_regions.c (modified) (3 diffs)
-
share_mean_mags.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/args.c
r36504 r36506 359 359 remove_argument (N, &argc, argv); 360 360 mode = PARALLEL_REGIONS; 361 if (N >= argc) relphot_usage(); 362 REGION_FILE = strcreate (argv[N]) 363 remove_argument (N, &argc, argv); 361 364 } 362 365 -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/assign_images.c
r36503 r36506 3 3 // This function generates a subset of the images based on selections. Input db has already 4 4 // been loaded with the raw fits table data 5 SkyList *assign_images (FITS_DB *db, RegionHostTable *regionHosts) {5 int assign_images (FITS_DB *db, RegionHostTable *regionHosts) { 6 6 7 7 off_t Nimage; … … 30 30 select_images_hostregion (regionHosts, image, Nimage); 31 31 32 return TRUE; 32 33 } 33 34 34 35 # define D_NIMAGE 1000 35 36 37 // assign images to the region hosts; at the end, each host will have its list of images 36 38 int select_images_hostregion (RegionHostTable *hosts, Image *image, off_t Nimage) { 37 39 … … 66 68 continue; 67 69 } 70 71 // XXX need to make sure mosaics for each saved image are also saved 72 // skip them here and add explicitly below. 68 73 69 74 /* define image center - note the DIS images (mosaic phu) are special */ -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/help.c
r36504 r36506 6 6 fprintf (stderr, " or: relphot -averages -region RA RA DEC DEC\n"); 7 7 fprintf (stderr, " or: relphot -apply-offsets -region RA RA DEC DEC\n"); 8 fprintf (stderr, " or: relphot -parallel-regions ( )\n");8 fprintf (stderr, " or: relphot -parallel-regions (RegionFile)\n"); 9 9 fprintf (stderr, " or: relphot -parallel-images ()\n"); 10 10 fprintf (stderr, " use -h for more usage information\n"); -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/relphot_parallel_regions.c
r36504 r36506 3 3 // measure.M contains: -2.5*log(DN) + 2.5*log(exptime) + 25.0 4 4 5 int relphot_parallel_ images () {5 int relphot_parallel_regions () { 6 6 7 7 int i, status, Ncatalog; … … 13 13 14 14 // load the RegionTable (UserRegion should not be used at this level) 15 RegionHostTable *regionHosts = RegionHostTableLoad (CATDIR, "RegionHostTable.dat");15 RegionHostTable *regionHosts = RegionHostTableLoad (CATDIR, REGION_FILE); 16 16 17 17 /* register database handle with shutdown procedure */ … … 38 38 39 39 /* assign the images to the different region hosts */ 40 XXX = assign_images (&db, regionHosts);40 if (!assign_images (&db, regionHosts)) Shutdown ("error assigning images to region hosts"); 41 41 MARKTIME("-- assign images: %f sec\n", dtime); 42 42 -
branches/eam_branches/ipp-20140206/Ohana/src/relphot/src/share_mean_mags.c
r36503 r36506 58 58 catalog[catSeq].secfilt[objSeq*Nsec + Nsecfilt].mag = meanmags[i].mag; 59 59 } 60 SaveMeanMags (meanmags, Nmeanmags, where);61 60 }
Note:
See TracChangeset
for help on using the changeset viewer.
