aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/extragalactic
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-08-13 19:34:21 +0800
committerAaron LI <aly@aaronly.me>2017-08-13 19:34:21 +0800
commit65e93d7e2d585faa3a57a07864ed11305230248a (patch)
tree2287cda5168918384f7a55c46554fc697afd9d56 /fg21sim/extragalactic
parent0fbe7eb3a768ff604c5e979fb54159215bd56cba (diff)
downloadfg21sim-65e93d7e2d585faa3a57a07864ed11305230248a.tar.bz2
clusters/main.py: Set sky header properties
* Clean up the unused configurations * Add "FREQ" keyword to the sky FITS header Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'fg21sim/extragalactic')
-rw-r--r--fg21sim/extragalactic/clusters/main.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/fg21sim/extragalactic/clusters/main.py b/fg21sim/extragalactic/clusters/main.py
index 2d8f4d5..2361635 100644
--- a/fg21sim/extragalactic/clusters/main.py
+++ b/fg21sim/extragalactic/clusters/main.py
@@ -63,9 +63,13 @@ class GalaxyClusters:
def __init__(self, configs=CONFIGS):
self.configs = configs
- self.sky = get_sky(configs)
self._set_configs()
+ self.sky = get_sky(configs)
+ self.sky.add_header("CompName", self.name, "Emission component")
+ self.sky.add_header("BUNIT", "K", "Data in units of [Kelvin]")
+ self.sky.creator = __name__
+
def _set_configs(self):
"""
Load the configs and set the corresponding class attributes.
@@ -82,9 +86,6 @@ class GalaxyClusters:
self.frequencies = self.configs.frequencies
self.filename_pattern = self.configs.getn("output/filename_pattern")
- self.use_float = self.configs.getn("output/use_float")
- self.checksum = self.configs.getn("output/checksum")
- self.clobber = self.configs.getn("output/clobber")
# Sky and resolution
if self.sky.type_ == "patch":