diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-05-21 21:23:28 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-05-21 21:23:28 +0800 |
commit | 8257049e7947e95858295ddd2cc55b758a432194 (patch) | |
tree | 07458e1c8f2348b9a5969de64f6ebc08148327aa /fg21sim/galactic | |
parent | b0c2d36a04d3b4ff89c0b8ed0540dd56df051cef (diff) | |
download | fg21sim-8257049e7947e95858295ddd2cc55b758a432194.tar.bz2 |
Minor updates to galactic/{freefree,synchrotron}.py
Diffstat (limited to 'fg21sim/galactic')
-rw-r--r-- | fg21sim/galactic/freefree.py | 15 | ||||
-rw-r--r-- | fg21sim/galactic/synchrotron.py | 7 |
2 files changed, 10 insertions, 12 deletions
diff --git a/fg21sim/galactic/freefree.py b/fg21sim/galactic/freefree.py index b34a361..ffce01a 100644 --- a/fg21sim/galactic/freefree.py +++ b/fg21sim/galactic/freefree.py @@ -174,8 +174,7 @@ class FreeFree: history) for the simulated products. """ header = fits.Header() - header["COMP"] = ("Galactic free-free emission", - "Emission component") + header["COMP"] = (self.name, "Emission component") header["UNIT"] = ("Kelvin", "Map unit") header["CREATOR"] = (__name__, "File creator") # TODO: @@ -246,10 +245,10 @@ class FreeFree: Returns ------- - hpmap_f : 1D `~numpy.ndarray` - The HEALPix map (RING ordering) at the input frequency. + skymap_f : 1D `~numpy.ndarray` + The sky map at the input frequency. filepath : str - The (absolute) path to the output HEALPix file if saved, + The (absolute) path to the output sky map if saved, otherwise ``None``. """ self.preprocess() @@ -280,10 +279,10 @@ class FreeFree: Returns ------- - hpmaps : list[1D `~numpy.ndarray`] - List of HEALPix maps (in RING ordering) at each frequency. + skymaps : list[1D `~numpy.ndarray`] + List of sky maps at each frequency. paths : list[str] - List of (absolute) path to the output HEALPix maps. + List of (absolute) path to the output sky maps. """ skymaps = [] paths = [] diff --git a/fg21sim/galactic/synchrotron.py b/fg21sim/galactic/synchrotron.py index 3c9c4b2..7c9f465 100644 --- a/fg21sim/galactic/synchrotron.py +++ b/fg21sim/galactic/synchrotron.py @@ -40,7 +40,7 @@ class Synchrotron: ??? """ # Component name - name = "Galactic synchrotron" + name = "Galactic synchrotron (unpolarized)" def __init__(self, configs): self.configs = configs @@ -144,8 +144,7 @@ class Synchrotron: history) for the simulated products. """ header = fits.Header() - header["COMP"] = ("Galactic synchrotron (unpolarized)", - "Emission component") + header["COMP"] = (self.name, "Emission component") header["UNIT"] = ("Kelvin", "Map unit") header["CREATOR"] = (__name__, "File creator") # TODO: @@ -215,7 +214,7 @@ class Synchrotron: skymap_f : 1D `~numpy.ndarray` The sky map at the input frequency. filepath : str - The (absolute) path to the output file if saved, + The (absolute) path to the output sky map if saved, otherwise ``None``. """ self.preprocess() |