aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic/freefree.py
Commit message (Collapse)AuthorAgeFilesLines
* utils/__init__.py: Only import "setup_logging" from "logging.py"Aaron LI2016-10-291-1/+1
| | | | | | | | | | Since some modules (e.g., healpix.py) under "utils" involves Numba JIT optimization, which significantly slows the start-up speed, even some consumers (e.g., bin/fg21sim-webui) do not need them at all. Fix various import statements of other modules. NOTE: not test at the moment!
* Update to use the new "checksum" config optionAaron LI2016-10-271-1/+2
| | | | | Also add a warning log message for "galactic/snr.py" and "extragalactic/clusters.py".
* galactic/{freefree,synchrotron}.py: Fix small bugsAaron LI2016-10-181-1/+1
| | | | | * freefree.py: Add the missing "/" to the config "halphamap" * synchrotron.py: Fix "comp" to have the correct value
* galactic/freefree.py: Add preocess(), postprocess, _make_filepath()Aaron LI2016-10-181-52/+90
| | | | | | | * Add the "preprocess()" and "postprocess()" for a better interface; * Add "_make_filepath()" to compose the output filename; * Reorder some methods for consistency; * Some refactorings and cleanups.
* galactic: Move the "simulate()" method; Add "UNIT" keywordAaron LI2016-10-171-12/+13
|
* Fix the reStructuredText citation syntaxAaron LI2016-10-171-3/+3
|
* Tweak the docstring stylesAaron LI2016-10-111-3/+6
|
* galactic/freefree: Mask regions where absorption is uncertainAaron LI2016-10-111-4/+25
| | | | | | | | | | | | | | * Mask the regions where the dust absorption is too high to well determine the true Halpha absorption. There are regions (e.g., Galactic plane) have too large dust absorption which cause float overflow when applying absorption correction to the Halpha map. * Fix a bug on the wrong parameter passed to "_calc_ratio_a()" method in "_simulate_frequency()" * Move "_correct_dust_absorption()" invokation from "simulate()" to "_simulate_frequency()" Already tested and OK!
* Update bin/fg21sim to support Galactic free-free componentAaron LI2016-10-111-0/+4
| | | | | | | | | * bin/fg21sim: check the "common/components" config to simulate the enabled components; * bin/fg21sim: add Galactic free-free component support; * galactic/freefree.py: fix missing attributes. NOTE: simulated free-free maps are WRONG!! Need check/debug!
* galactic: Add free-free component simulationAaron LI2016-10-111-0/+227
* New class "galactic.FreeFree" to simulate free-free emission * Add new config section "galactic/freefree" NOTE: current untested