Changeset 34459
- Timestamp:
- Sep 21, 2012, 2:51:53 PM (14 years ago)
- Location:
- trunk/Ohana/src/getstar/src
- Files:
-
- 2 edited
-
args.c (modified) (2 diffs)
-
select_by_region.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/getstar/src/args.c
r20985 r34459 40 40 41 41 MagLimitUse = FALSE; 42 MagLimitValue = 100; 42 43 if ((N = get_argument (argc, argv, "-maglim"))) { 43 44 MagLimitUse = TRUE; … … 60 61 61 62 MinMagUse = FALSE; 63 MinMagValue = -100; 62 64 if ((N = get_argument (argc, argv, "-minmag"))) { 63 65 MinMagUse = TRUE; -
trunk/Ohana/src/getstar/src/select_by_region.c
r34088 r34459 82 82 } 83 83 if (isnan(mag)) continue; 84 if (mag < MinMagValue) continue; 85 if (mag > MagLimitValue) continue; 84 86 85 87 bin = (mag - MagMin) / dMag; … … 118 120 if (D > region[0].Dmax) continue; 119 121 120 if (MagLimitUse) { 122 // If either magnitude limit was specfied it a apply both. 123 // If one of the limits is not used it is initialized to an unphysical value so test will succeed 124 if (MagLimitUse || MinMagUse) { 121 125 mag = NAN; 122 126 if (needMeas) { … … 132 136 } 133 137 if (isnan(mag) || (mag > MagLimitValue)) continue; 138 if (isnan(mag) || (mag < MinMagValue)) continue; 134 139 } 135 140
Note:
See TracChangeset
for help on using the changeset viewer.
