Skip to content

Commit 9c10f54

Browse files
committed
Tuned the scatter in UVJ colors at high-z to better match the optical counts
1 parent 06a3d9e commit 9c10f54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/egg-gencat.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1123,7 +1123,10 @@ int main(int argc, char* argv[]) {
11231123
// Calibrate "UVJ vector" from mass and redshift
11241124
vec1f a0 = 0.58*erf(m-10) + 1.39;
11251125
vec1f as = -0.34 + 0.3*max(m-10.35, 0.0);
1126-
vec1f a = min(a0 + as*z, 2.0) + 0.1*randomn(seed, m.size());
1126+
vec1f a = min(a0 + as*z, 2.0);
1127+
vec1d rnd_amp = 0.3*clamp(z-1.0, 0, 1)*clamp(1.0 - abs(m - 10.3), 0, 1)
1128+
+ 0.1 + 0.05*clamp(z-1.0, 0, 1);
1129+
a += rnd_amp*randomn(seed, m.size());
11271130

11281131
// Move in the UVJ diagram according to the UVJ vector
11291132
double slope = 0.65;

0 commit comments

Comments
 (0)