From 8257049e7947e95858295ddd2cc55b758a432194 Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Sun, 21 May 2017 21:23:28 +0800 Subject: Minor updates to galactic/{freefree,synchrotron}.py --- fg21sim/galactic/freefree.py | 15 +++++++-------- fg21sim/galactic/synchrotron.py | 7 +++---- 2 files changed, 10 insertions(+), 12 deletions(-) (limited to 'fg21sim') 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() -- cgit v1.2.2