aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-06-13 22:04:35 +0800
committerAaron LI <aly@aaronly.me>2017-06-13 22:04:35 +0800
commitc0a4a548fcad249051da3ee41131a547940f1e7c (patch)
treeffc575864c67862501c57f4c41d319b6a5c29949
parent8956b1898911304c9b09d5c3a5bdefb2c8fc9326 (diff)
downloadfg21sim-c0a4a548fcad249051da3ee41131a547940f1e7c.tar.bz2
Use keyword "BUNIT" and unit "K"
-rw-r--r--fg21sim/configs/00-general.conf.spec2
-rw-r--r--fg21sim/extragalactic/clusters/clusters.py2
-rw-r--r--fg21sim/galactic/freefree.py2
-rw-r--r--fg21sim/galactic/snr.py2
-rw-r--r--fg21sim/galactic/synchrotron.py2
5 files changed, 5 insertions, 5 deletions
diff --git a/fg21sim/configs/00-general.conf.spec b/fg21sim/configs/00-general.conf.spec
index bf9a724..1914a1b 100644
--- a/fg21sim/configs/00-general.conf.spec
+++ b/fg21sim/configs/00-general.conf.spec
@@ -90,7 +90,7 @@ use_float = boolean(default=True)
# Filename pattern for the output products, which will be finally
# formatted using `str.format()`.
-filename_pattern = string(default="{prefix}_{frequency:05.1f}.fits")
+filename_pattern = string(default="{prefix}_{frequency:06.2f}.fits")
# Whether calculate the checksum for the output file (e.g., "CHECKSUM"
# keyword in FITS header)?
diff --git a/fg21sim/extragalactic/clusters/clusters.py b/fg21sim/extragalactic/clusters/clusters.py
index 304603b..6886d84 100644
--- a/fg21sim/extragalactic/clusters/clusters.py
+++ b/fg21sim/extragalactic/clusters/clusters.py
@@ -589,7 +589,7 @@ class GalaxyClusters:
"""
header = fits.Header()
header["COMP"] = (self.name, "Emission component")
- header["UNIT"] = ("Kelvin", "Map unit")
+ header["BUNIT"] = ("K", "data unit is Kelvin")
header["CREATOR"] = (__name__, "File creator")
# TODO:
history = []
diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py
index ffce01a..41e84e6 100644
--- a/fg21sim/galactic/freefree.py
+++ b/fg21sim/galactic/freefree.py
@@ -175,7 +175,7 @@ class FreeFree:
"""
header = fits.Header()
header["COMP"] = (self.name, "Emission component")
- header["UNIT"] = ("Kelvin", "Map unit")
+ header["BUNIT"] = ("K", "data unit is Kelvin")
header["CREATOR"] = (__name__, "File creator")
# TODO:
history = []
diff --git a/fg21sim/galactic/snr.py b/fg21sim/galactic/snr.py
index 02103d3..6897ce4 100644
--- a/fg21sim/galactic/snr.py
+++ b/fg21sim/galactic/snr.py
@@ -349,7 +349,7 @@ class SuperNovaRemnants:
"""
header = fits.Header()
header["COMP"] = (self.name, "Emission component")
- header["UNIT"] = ("Kelvin", "Map unit")
+ header["BUNIT"] = ("K", "data unit is Kelvin")
header["CREATOR"] = (__name__, "File creator")
# TODO:
history = []
diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py
index 7c9f465..f6b1db8 100644
--- a/fg21sim/galactic/synchrotron.py
+++ b/fg21sim/galactic/synchrotron.py
@@ -145,7 +145,7 @@ class Synchrotron:
"""
header = fits.Header()
header["COMP"] = (self.name, "Emission component")
- header["UNIT"] = ("Kelvin", "Map unit")
+ header["BUNIT"] = ("K", "data unit is Kelvin")
header["CREATOR"] = (__name__, "File creator")
# TODO:
history = []