From 007c6c667e2a4bd21bee9bdeeb187a73d3a41db9 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 3 Sep 2017 15:01:14 +0800 Subject: clusters: Add option "use_output_catalog" to continue halo simulation --- fg21sim/configs/20-extragalactic.conf.spec | 14 ++++++++++++++ fg21sim/configs/checkers.py | 3 +++ 2 files changed, 17 insertions(+) (limited to 'fg21sim/configs') diff --git a/fg21sim/configs/20-extragalactic.conf.spec b/fg21sim/configs/20-extragalactic.conf.spec index f2b0c30..74266cd 100644 --- a/fg21sim/configs/20-extragalactic.conf.spec +++ b/fg21sim/configs/20-extragalactic.conf.spec @@ -35,6 +35,20 @@ # mass, redshift, position, shape, and the recent major merger info. catalog_outfile = string(default=None) + # Directly use the (previously simulated) catalog file specified + # as the above "catalog_outfile" option. + # NOTE: + # By using an existing catalog, the steps to derive these data are + # simply skipped. + # Due to the small number density of the galaxy clusters, the simulated + # results within a small patch of sky (e.g., 100 [deg^2]) show + # significant fluctuations (several or even several tens of times + # of differences between simulations). Therefore, one may run many + # tests and only create images at some frequencies necessary for + # testing, then select the satisfying one to continue the simulation + # to generate images at all frequencies. + use_output_catalog = boolean(default=False) + # Output file for dumping the simulated cluster halos data in Python # native *pickle* format (i.e., .pkl) halos_dumpfile = string(default=None) diff --git a/fg21sim/configs/checkers.py b/fg21sim/configs/checkers.py index 3985e46..5316eac 100644 --- a/fg21sim/configs/checkers.py +++ b/fg21sim/configs/checkers.py @@ -157,6 +157,9 @@ def check_extragalactic_clusters(configs): if comp in comp_enabled: # Only validate the configs if this component is enabled results.update(_check_existence(configs, comp+"/ps_data")) + # catalog required when enabled to use it + if configs.get(comp+"/use_output_catalog"): + results.update(_check_existence(configs, comp+"/catalog_outfile")) results.update(_check_missing(configs, comp+"/output_dir")) return results -- cgit v1.2.2