Changeset 39748
- Timestamp:
- Oct 13, 2016, 12:51:32 PM (10 years ago)
- Location:
- branches/czw_branch/20160809/Ohana/src/fakeastro/src
- Files:
-
- 4 edited
-
args.c (modified) (1 diff)
-
make_fake_stars_catalog.c (modified) (1 diff)
-
make_fakestars.c (modified) (4 diffs)
-
make_gaia_measures.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20160809/Ohana/src/fakeastro/src/args.c
r39743 r39748 128 128 } 129 129 130 MAX_MAG_GAIA = 16.0;130 MAX_MAG_GAIA = 21.0; 131 131 if ((N = get_argument (*argc, argv, "-gaia-limit"))) { 132 132 remove_argument (N, argc, argv); -
branches/czw_branch/20160809/Ohana/src/fakeastro/src/make_fake_stars_catalog.c
r39743 r39748 117 117 118 118 // XXX TEST 119 dDsee = dRsee = 0.0;119 // dDsee = dRsee = 0.0; 120 120 121 121 double dRoff = (dRpm + dRsee) / 3600.0; -
branches/czw_branch/20160809/Ohana/src/fakeastro/src/make_fakestars.c
r39739 r39748 35 35 // we can generate a distribution which is uniform on the sky, in which case 36 36 // we can limit to the selected patch analyically 37 38 // note: r & z are generated in parsec 37 39 r = pow(drand48(), 0.33333) * FAKEASTRO_RGAL; 38 40 z = 0.0; … … 48 50 int inPatch = FALSE; 49 51 while (!inPatch) { 52 // note: r & z are generated in parsec 50 53 z = ohana_gaussdev_rnd (0.0, FAKEASTRO_ZGAL); 51 54 r = sqrt(drand48()) * FAKEASTRO_RGAL; … … 68 71 // double y = r*sin(L); 69 72 73 // distance here is in parsec 70 74 double distance = sqrt (SQ(r) + SQ(z)); 71 75 … … 74 78 75 79 double uL_sol, uB_sol; 76 SolarMotionModel_radians(&uL_sol, &uB_sol, Lrad, Brad, distance); 80 SolarMotionModel_radians(&uL_sol, &uB_sol, Lrad, Brad, distance / 1000.0); 81 // note: SolarMotionModel wants distance in kpc 77 82 78 83 double uL = uL_gal + uL_sol; -
branches/czw_branch/20160809/Ohana/src/fakeastro/src/make_gaia_measures.c
r39743 r39748 42 42 43 43 // make a crude G-i color for now: 44 double G_PS1 = secfilt[i*Nsecfilt + Nsec].M + 1.0; // make all stars have G-i = 1.044 double G_PS1 = secfilt[i*Nsecfilt + Nsec].M; // make all stars have G-i = 1.0 45 45 if (G_PS1 > MAX_MAG_GAIA) continue; // only generate GAIA detections for objects with G_PS1 < 21.0 46 46 … … 78 78 79 79 // uR,uD in linear arcsec 80 double dRsee = ohana_gaussdev_rnd (0.0, 1.0/ SN);81 double dDsee = ohana_gaussdev_rnd (0.0, 1.0/ SN);80 double dRsee = ohana_gaussdev_rnd (0.0, 0.01 / SN); 81 double dDsee = ohana_gaussdev_rnd (0.0, 0.01 / SN); 82 82 83 83 // XXX TEST 84 dDsee = dRsee = 0.0;84 // dDsee = dRsee = 0.0; 85 85 86 86 double dRoff = (dRpm + dRsee) / 3600.0;
Note:
See TracChangeset
for help on using the changeset viewer.
