aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic/freefree.py
Commit message (Collapse)AuthorAgeFilesLines
* freefree.py: Fix bug: "comp" -> "compID"Aaron LI2017-08-271-1/+1
|
* freefree.py: Remove units of "halphamap" and "dustmap"Aaron LI2017-08-271-13/+0
|
* Return the list of filepath to the written sky filesAaron LI2017-08-261-0/+8
|
* freefree.py: Update to use "sky" module; cleanupsAaron LI2017-08-261-104/+59
|
* sky.py: Rename load() -> open(), read() -> load()Aaron LI2017-08-261-3/+3
|
* Make "frequencies" optional in the simulate() methodAaron LI2017-08-141-3/+16
| | | | | | XXX: foregrounds.py needs update! Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/freefree: Add "dust_fraction" and "halpha_abs_th" configsAaron LI2017-07-291-10/+6
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/freefree.py: Add method "_calc_halpha_to_freefree()"Aaron LI2017-07-291-14/+24
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/freefree.py: Some cleanupsAaron LI2017-07-291-33/+33
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/freefree: Add config "electron_temperature"Aaron LI2017-07-291-10/+23
| | | | | | Update method "_calc_ratio_a()" to "_calc_factor_a()" Signed-off-by: Aaron LI <aly@aaronly.me>
* Use keyword "BUNIT" and unit "K"Aaron LI2017-06-131-1/+1
|
* Minor updates to galactic/{freefree,synchrotron}.pyAaron LI2017-05-211-8/+7
|
* galactic/freefree: Update to support sky.pyAaron LI2017-05-211-67/+49
|
* configs : Drop "output/filetype"; only support FITSAaron LI2017-05-171-5/+0
|
* Update "simulate_frequency()" to also return the output file pathAaron LI2016-11-211-5/+31
| | | | | * Update "output()" method to return the output file path * Update "simulate()" to also return the list of output file paths
* 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