Changeset 27509
- Timestamp:
- Mar 29, 2010, 1:46:26 PM (16 years ago)
- Location:
- branches/eam_branches/20100225/Ohana/src
- Files:
-
- 2 edited
-
relastro/src/relastro.c (modified) (3 diffs)
-
relphot/src/relphot.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225/Ohana/src/relastro/src/relastro.c
r17243 r27509 1 1 # include "relastro.h" 2 3 # define MARKTIME(MSG,...) { \ 4 float dtime; \ 5 gettimeofday (&stop, (void *) NULL); \ 6 dtime = DTIME (stop, start); \ 7 fprintf (stderr, MSG, __VA_ARGS__); } 2 8 3 9 int main (int argc, char **argv) { … … 6 12 Catalog *catalog; 7 13 FITS_DB db; 14 struct timeval start, stop; 8 15 9 16 SkyList *skylist = NULL; 17 18 gettimeofday (&start, (void *) NULL); 10 19 11 20 /* get configuration info, args */ … … 26 35 if (db.dbstate == LCK_EMPTY) Shutdown ("ERROR: No images in catalog %s (1)", db.filename); 27 36 if (!dvo_image_load (&db, VERBOSE, FALSE)) Shutdown ("can't read image catalog %s", db.filename); 37 MARKTIME("load image data: %f sec\n", dtime); 28 38 29 39 /* load regions and images based on specified sky patch (default depth) */ 30 40 skylist = load_images (&db, &UserPatch); 41 MARKTIME("load images: %f sec\n", dtime); 31 42 32 43 /* load catalog data from region files : subselect high-quality measurements */ 33 44 catalog = load_catalogs (skylist, &Ncatalog, TRUE); 45 MARKTIME("load catalog data: %f sec\n", dtime); 34 46 35 47 /* match measurements with images */ 36 48 initImageBins (catalog, Ncatalog); 49 MARKTIME("make image bins: %f sec\n", dtime); 50 37 51 findImages (catalog, Ncatalog); 52 MARKTIME("set up image indexes: %f sec\n", dtime); 38 53 39 54 if (PLOTSTUFF) { -
branches/eam_branches/20100225/Ohana/src/relphot/src/relphot.c
r21153 r27509 1 1 # include "relphot.h" 2 2 # define USE_DIRECT 0 3 4 # define MARKTIME(MSG,...) { \ 5 float dtime; \ 6 gettimeofday (&stop, (void *) NULL); \ 7 dtime = DTIME (stop, start); \ 8 fprintf (stderr, MSG, __VA_ARGS__); } 3 9 4 10 int main (int argc, char **argv) { … … 7 13 Catalog *catalog; 8 14 FITS_DB db; 15 struct timeval start, stop; 16 SkyList *skylist = NULL; 9 17 10 SkyList *skylist = NULL;18 gettimeofday (&start, (void *) NULL); 11 19 12 20 /* get configuration info, args */ … … 39 47 if (!dvo_image_load (&db, VERBOSE, FALSE)) Shutdown ("can't read image catalog %s", db.filename); 40 48 } 49 MARKTIME("load image data: %f sec\n", dtime); 41 50 42 51 /* load regions and images based on specified sky patch */ … … 45 54 // XXX this is fairly lame: argv[1] is photcode if UserPatchSelect is true 46 55 skylist = load_images (&db, argv[1], &UserPatch, UserPatchSelect); 56 MARKTIME("load images: %f sec\n", dtime); 47 57 48 58 /* unlock, if we can (else, unlocked below) */ … … 51 61 /* load catalog data from region files */ 52 62 catalog = load_catalogs (skylist, &Ncatalog); 63 MARKTIME("load catalog data: %f sec\n", dtime); 53 64 54 65 /* add in a loop over the catalogs calling dvo_catalog_chipcoords */ … … 56 67 /* match measurements with images, mosaics */ 57 68 initImageBins (catalog, Ncatalog); 69 MARKTIME("make image bins: %f sec\n", dtime); 70 58 71 initMosaicBins (catalog, Ncatalog); 59 72 initGridBins (catalog, Ncatalog); … … 61 74 62 75 findImages (catalog, Ncatalog); 76 MARKTIME("set up image indexes: %f sec\n", dtime); 77 63 78 findMosaics (catalog, Ncatalog); /* also sets Grid values */ 79 MARKTIME("set up mosaic indexes: %f sec\n", dtime); 80 64 81 SAVEPLOT = FALSE; 65 82
Note:
See TracChangeset
for help on using the changeset viewer.
