From c0a4a548fcad249051da3ee41131a547940f1e7c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Tue, 13 Jun 2017 22:04:35 +0800 Subject: Use keyword "BUNIT" and unit "K" --- fg21sim/configs/00-general.conf.spec | 2 +- fg21sim/extragalactic/clusters/clusters.py | 2 +- fg21sim/galactic/freefree.py | 2 +- fg21sim/galactic/snr.py | 2 +- fg21sim/galactic/synchrotron.py | 2 +- 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 = [] -- cgit v1.2.2