Changeset 39262 for trunk/Ohana/src/relastro/src/BrightCatalog.c
- Timestamp:
- Dec 12, 2015, 8:38:47 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relastro/src/BrightCatalog.c (modified) (9 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/BrightCatalog.c
r39225 r39262 67 67 GET_COLUMN(R, "RA", double); 68 68 GET_COLUMN(D, "DEC", double); 69 GET_COLUMN(RoffGAL, "ROFF_GAL", float);70 GET_COLUMN(DoffGAL, "DOFF_GAL", float);71 69 GET_COLUMN(M, "MAG_SYS", float); 72 70 GET_COLUMN(Mcal, "MAG_CAL", float); … … 94 92 measure[i].R = R[i]; 95 93 measure[i].D = D[i]; 96 measure[i].RoffGAL = RoffGAL[i];97 measure[i].DoffGAL = DoffGAL[i];98 94 measure[i].M = M[i]; 99 95 measure[i].Mcal = Mcal[i]; … … 121 117 free (R ); 122 118 free (D ); 123 free (RoffGAL );124 free (DoffGAL );125 119 free (M ); 126 120 free (Mcal ); … … 362 356 gfits_define_bintable_column (&theader, "D", "RA", "ra", "degrees", 1.0, 0.0); 363 357 gfits_define_bintable_column (&theader, "D", "DEC", "dec", "degrees", 1.0, 0.0); 364 gfits_define_bintable_column (&theader, "E", "ROFF_GAL", "ra offset", "arcsec", 1.0, 0.0);365 gfits_define_bintable_column (&theader, "E", "DOFF_GAL", "dec offset", "arcsec", 1.0, 0.0);366 358 gfits_define_bintable_column (&theader, "E", "MAG_SYS", "magnitude (sys)", NULL, 1.0, 0.0); 367 359 gfits_define_bintable_column (&theader, "E", "MAG_CAL", "magnitude (cal)", NULL, 1.0, 0.0); … … 382 374 383 375 // generate the output array that carries the data 384 ohana_memcheck (1);385 376 gfits_create_table (&theader, &ftable); 386 ohana_memcheck (1);387 377 388 378 // create intermediate storage arrays 389 379 double *R ; ALLOCATE (R , double, catalog->Nmeasure); 390 380 double *D ; ALLOCATE (D , double, catalog->Nmeasure); 391 float *RoffGAL ; ALLOCATE (RoffGAL , float, catalog->Nmeasure);392 float *DoffGAL ; ALLOCATE (DoffGAL , float, catalog->Nmeasure);393 381 float *M ; ALLOCATE (M , float, catalog->Nmeasure); 394 382 float *Mcal ; ALLOCATE (Mcal , float, catalog->Nmeasure); … … 407 395 int *catID ; ALLOCATE (catID , int , catalog->Nmeasure); 408 396 short *photcode ; ALLOCATE (photcode , short, catalog->Nmeasure); 409 ohana_memcheck (1);410 397 411 398 // assign the storage arrays … … 414 401 R[i] = measure[i].R ; 415 402 D[i] = measure[i].D ; 416 RoffGAL[i] = measure[i].RoffGAL ;417 DoffGAL[i] = measure[i].DoffGAL ;418 403 M[i] = measure[i].M ; 419 404 Mcal[i] = measure[i].Mcal ; … … 433 418 photcode[i] = measure[i].photcode ; 434 419 } 435 ohana_memcheck (1);436 420 437 421 // add the columns to the output array 438 422 gfits_set_bintable_column (&theader, &ftable, "RA", R, catalog->Nmeasure); 439 ohana_memcheck (1);440 423 gfits_set_bintable_column (&theader, &ftable, "DEC", D, catalog->Nmeasure); 441 ohana_memcheck (1);442 gfits_set_bintable_column (&theader, &ftable, "ROFF_GAL", RoffGAL, catalog->Nmeasure);443 gfits_set_bintable_column (&theader, &ftable, "DOFF_GAL", DoffGAL, catalog->Nmeasure);444 424 gfits_set_bintable_column (&theader, &ftable, "MAG_SYS", M, catalog->Nmeasure); 445 425 gfits_set_bintable_column (&theader, &ftable, "MAG_CAL", Mcal, catalog->Nmeasure); … … 461 441 free (R ); 462 442 free (D ); 463 free (RoffGAL );464 free (DoffGAL );465 443 free (M ); 466 444 free (Mcal );
Note:
See TracChangeset
for help on using the changeset viewer.
