Changeset 37958
- Timestamp:
- Mar 5, 2015, 2:07:12 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150112/Ohana/src/relastro
- Files:
-
- 4 edited
-
Makefile (modified) (1 diff)
-
src/BrightCatalog.c (modified) (4 diffs)
-
src/client_logger.c (modified) (1 diff)
-
src/load_catalogs.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150112/Ohana/src/relastro/Makefile
r37807 r37958 138 138 $(SRC)/relastroVisual.$(ARCH).o \ 139 139 $(SRC)/syncfile.$(ARCH).o \ 140 $(SRC)/client_logger.$(ARCH).o \ 140 141 $(SRC)/BrightCatalog.$(ARCH).o 141 142 -
branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/BrightCatalog.c
r37807 r37958 344 344 /*** MeasureTiny ***/ 345 345 { 346 ohana_memcheck_func (1); 346 347 gfits_create_table_header (&theader, "BINTABLE", "MEASURE_TINY"); 347 348 349 ohana_memcheck_func (1); 348 350 gfits_define_bintable_column (&theader, "D", "RA", "ra", "degrees", 1.0, 0.0); 349 351 gfits_define_bintable_column (&theader, "D", "DEC", "dec", "degrees", 1.0, 0.0); … … 368 370 369 371 // generate the output array that carries the data 372 ohana_memcheck_func (1); 370 373 gfits_create_table (&theader, &ftable); 374 ohana_memcheck_func (1); 371 375 372 376 // create intermediate storage arrays … … 391 395 int *catID ; ALLOCATE (catID , int , catalog->Nmeasure); 392 396 short *photcode ; ALLOCATE (photcode , short, catalog->Nmeasure); 397 ohana_memcheck_func (1); 393 398 394 399 // assign the storage arrays … … 416 421 photcode[i] = measure[i].photcode ; 417 422 } 423 ohana_memcheck_func (1); 418 424 419 425 // add the columns to the output array 420 426 gfits_set_bintable_column (&theader, &ftable, "RA", R, catalog->Nmeasure); 427 ohana_memcheck_func (1); 421 428 gfits_set_bintable_column (&theader, &ftable, "DEC", D, catalog->Nmeasure); 429 ohana_memcheck_func (1); 422 430 gfits_set_bintable_column (&theader, &ftable, "ROFF_GAL", RoffGAL, catalog->Nmeasure); 423 431 gfits_set_bintable_column (&theader, &ftable, "DOFF_GAL", DoffGAL, catalog->Nmeasure); -
branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/client_logger.c
r37807 r37958 27 27 int client_logger_message (char *format,...) { 28 28 29 if (!logfile) return FALSE; 30 29 31 va_list argp; 30 32 -
branches/eam_branches/ipp-20150112/Ohana/src/relastro/src/load_catalogs.c
r37807 r37958 17 17 18 18 if (VERBOSE) fprintf (stderr, "loading catalog data\n"); 19 client_logger_message ("loading catalog data\n"); 19 20 20 21 ALLOCATE (catalog, Catalog, skylist[0].Nregions); … … 255 256 256 257 BrightCatalog *bcatalog = BrightCatalogLoad (table->hosts[i].results); 257 assert (bcatalog); 258 if (!bcatalog) { 259 client_logger_message ("problem loading table from %s\n", table->hosts[i].hostname); 260 exit (2); 261 } 258 262 259 263 BrightCatalogSplit (catalogs, bcatalog); … … 277 281 278 282 fprintf (stderr, "loaded %d catalogs, using a total of %d stars (%d measures)\n", catalogs->Ncatalog, Naverage, Nmeasure); 283 client_logger_message ("loaded %d catalogs, using a total of %d stars (%d measures)\n", catalogs->Ncatalog, Naverage, Nmeasure); 279 284 280 285 return (catalog);
Note:
See TracChangeset
for help on using the changeset viewer.
