Changeset 34619
- Timestamp:
- Oct 28, 2012, 2:04:03 PM (14 years ago)
- Location:
- branches/eam_branches/ipp-20120905/Ohana/src/addstar
- Files:
-
- 1 added
- 1 edited
-
src/mkcmf.c (modified) (9 diffs)
-
test/relphot.stacks.dvo (added)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120905/Ohana/src/addstar/src/mkcmf.c
r34405 r34619 178 178 } 179 179 180 gauss_init (2048); 181 180 182 // load test stars from a file: 181 183 Nstars = 0; … … 254 256 gfits_modify (&header, "NASTRO", "%d", 1, 10); 255 257 256 gfits_modify (&header, "IMAGEID", "%d", 1, (int)(1000*drand48())); 257 gfits_modify (&header, "SOURCEID", "%d", 1, (int)(100*drand48())); 258 int imageID = 1000.0*drand48(); 259 int sourceID = 100.0*drand48(); 260 261 gfits_modify (&header, "IMAGEID", "%d", 1, imageID); 262 gfits_modify (&header, "SOURCEID", "%d", 1, sourceID); 258 263 259 264 PutCoords (&coords, &header); … … 396 401 // this needs to make different output 'stars' entries depending on the desired type 397 402 ALLOCATE (stars, PS1_DEV_0, Nstars); 398 gauss_init (2048);399 403 for (i = 0; i < Nstars; i++) { 400 404 stars[i].detID = i; … … 441 445 // this needs to make different output 'stars' entries depending on the desired type 442 446 ALLOCATE (stars, PS1_DEV_1, Nstars); 443 gauss_init (2048);444 447 for (i = 0; i < Nstars; i++) { 445 448 stars[i].detID = i; … … 489 492 // this needs to make different output 'stars' entries depending on the desired type 490 493 ALLOCATE (stars, CMF_PS1_V1, Nstars); 491 gauss_init (2048);492 494 for (i = 0; i < Nstars; i++) { 493 495 stars[i].detID = i; … … 537 539 // this needs to make different output 'stars' entries depending on the desired type 538 540 ALLOCATE (stars, CMF_PS1_V2, Nstars); 539 gauss_init (2048);540 541 for (i = 0; i < Nstars; i++) { 541 542 stars[i].detID = i; … … 591 592 // this needs to make different output 'stars' entries depending on the desired type 592 593 ALLOCATE (stars, CMF_PS1_V3, Nstars); 593 gauss_init (2048);594 594 for (i = 0; i < Nstars; i++) { 595 595 stars[i].detID = i; … … 649 649 // this needs to make different output 'stars' entries depending on the desired type 650 650 ALLOCATE (stars, CMF_PS1_V4, Nstars); 651 gauss_init (2048);652 651 for (i = 0; i < Nstars; i++) { 653 652 stars[i].detID = i; … … 660 659 stars[i].M = M[i]; 661 660 stars[i].Map = M[i] - 0.05; 661 stars[i].MapRaw = M[i] - 0.10; 662 663 stars[i].Flux = flux; 664 stars[i].dFlux = flux * fSN; 665 666 stars[i].apFlux = pow(10.0, -0.4*stars[i].Map); 667 stars[i].apFluxErr = stars[i].apFlux * fSN; 662 668 663 669 if (ADDNOISE) {
Note:
See TracChangeset
for help on using the changeset viewer.
