diff options
author | Aaron LI <aly@aaronly.me> | 2018-05-22 10:35:53 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2018-05-22 10:35:53 +0800 |
commit | cf23bbee3bd9f0457e0f7a0a2ebff0424d287fa8 (patch) | |
tree | 6cd4cd32538173c707b4c42f31ab7b7f42b70a56 /fg21sim/extragalactic/clusters | |
parent | 73e7fe043cb7e9f83174b922d4eb916f948a5632 (diff) | |
download | fg21sim-cf23bbee3bd9f0457e0f7a0a2ebff0424d287fa8.tar.bz2 |
clusters: Add parameter felong_min
Diffstat (limited to 'fg21sim/extragalactic/clusters')
-rw-r--r-- | fg21sim/extragalactic/clusters/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py index 1c3f8e7..0af41ab 100644 --- a/fg21sim/extragalactic/clusters/main.py +++ b/fg21sim/extragalactic/clusters/main.py @@ -82,6 +82,7 @@ class GalaxyClusters: self.dump_halos_data = configs.getn(comp+"/dump_halos_data") self.use_dump_halos_data = configs.getn( comp+"/use_dump_halos_data") + self.felong_min = configs.getn(comp+"/felong_min") self.halo_dropout = configs.getn(comp+"/halo_dropout") self.prefix = configs.getn(comp+"/prefix") self.output_dir = configs.get_path(comp+"/output_dir") @@ -154,10 +155,9 @@ class GalaxyClusters: logger.info("Preliminary processes to the catalog ...") num = len(self.catalog) lon, lat = self.sky.random_points(n=num) - felong_min = 0.6 - sigma = (1.0 - felong_min) / 3.0 + sigma = (1.0 - self.felong_min) / 3.0 felong = 1.0 - np.abs(np.random.normal(scale=sigma, size=num)) - felong[felong < felong_min] = felong_min + felong[felong < self.felong_min] = self.felong_min rotation = np.random.uniform(low=0.0, high=360.0, size=num) for i, cdict in enumerate(self.catalog): |