Changeset 38707
- Timestamp:
- Sep 3, 2015, 6:34:56 AM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src/fakeastro
- Files:
-
- 3 edited
-
include/fakeastro.h (modified) (1 diff)
-
src/args.c (modified) (1 diff)
-
src/make_2mass_measures.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/fakeastro/include/fakeastro.h
r38441 r38707 103 103 104 104 float RADIUS; 105 float MAX_MAG_2MASS; 105 106 106 107 SkyRegion UserPatch; -
branches/eam_branches/ipp-20150625/Ohana/src/fakeastro/src/args.c
r37807 r38707 104 104 if ((N = get_argument (*argc, argv, "-uniform-radec"))) { 105 105 UNIFORM_RADEC = TRUE; 106 remove_argument (N, argc, argv); 107 } 108 109 MAX_MAG_2MASS = 16.0; 110 if ((N = get_argument (*argc, argv, "-2mass-limit"))) { 111 remove_argument (N, argc, argv); 112 MAX_MAG_2MASS = atof(argv[N]); 106 113 remove_argument (N, argc, argv); 107 114 } -
branches/eam_branches/ipp-20150625/Ohana/src/fakeastro/src/make_2mass_measures.c
r37807 r38707 24 24 // PhotCode *codeK = GetPhotcodebyName ("2MASS_K"); 25 25 26 float ZP = 21.0; // this is chosen to give 16.0 mag stars a flux of 100.0 counts (crude, yes)27 float SkyCts = 300.0; // this is chosen to make SN @ 16.0 = 5.0 (26 float ZP = MAX_MAG_2MASS + 6.5; // this is chosen to give stars at the limit a flux of 400.0 counts (crude, yes) 27 float SkyCts = 1000.0; // this is chosen to make SN @ limit ~ 10.0 ( 28 28 29 29 int Nmeasure = catalog->Nmeasure; … … 45 45 // make a crude JHK color for now: 46 46 double J_PS1 = secfilt[i*Nsecfilt + Nsec].M - 1.0; // make all stars have y-J = 1.0 47 if (J_PS1 > 16.0) continue; // only generate 2MASS detections for objects with J_PS1 < 16.047 if (J_PS1 > MAX_MAG_2MASS) continue; // only generate 2MASS detections for objects with J_PS1 < 16.0 48 48 49 49 if (isnan(secfilt[i*Nsecfilt + Nsec].M)) {
Note:
See TracChangeset
for help on using the changeset viewer.
