aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/configs
diff options
context:
space:
mode:
Diffstat (limited to 'fg21sim/configs')
-rw-r--r--fg21sim/configs/20-extragalactic.conf.spec14
-rw-r--r--fg21sim/configs/checkers.py3
2 files changed, 17 insertions, 0 deletions
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