aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/galactic
Commit message (Collapse)AuthorAgeFilesLines
* 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-263-3/+26
|
* snr.py: Update to use "sky" moduleAaron LI2017-08-261-114/+39
| | | | XXX: significant cleanups required, to make `SkyPatch` works!
* freefree.py: Update to use "sky" module; cleanupsAaron LI2017-08-261-104/+59
|
* synchrotron.py: Update to use "sky" module; significant cleanupsAaron LI2017-08-261-111/+69
|
* configs: Remove option "save"; all enabled components will be savedAaron LI2017-08-261-1/+0
|
* sky.py: Rename load() -> open(), read() -> load()Aaron LI2017-08-262-6/+6
|
* galactic/synchrotron.py: Take absolute value on spectral indexAaron LI2017-08-231-1/+2
|
* Make "frequencies" optional in the simulate() methodAaron LI2017-08-143-12/+46
| | | | | | XXX: foregrounds.py needs update! Signed-off-by: Aaron LI <aly@aaronly.me>
* Update against "Fnu_to_Tb_fast()" unit changesAaron LI2017-08-031-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Update references a bitAaron LI2017-07-311-19/+19
| | | | 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 [arcsec] as the unit for pixel size and resolutionAaron LI2017-07-191-3/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use keyword "BUNIT" and unit "K"Aaron LI2017-06-133-3/+3
|
* galactic/snr.py: Explain size_{major,minor} are diameter valuesAaron LI2017-06-111-4/+6
|
* extragalactic/clusters: Update to use sky.pyAaron LI2017-05-261-1/+1
|
* galactic/snr: Update to support the sky.pyAaron LI2017-05-221-102/+118
| | | | Also fix a typo in configs/checkers.py
* Minor updates to galactic/{freefree,synchrotron}.pyAaron LI2017-05-212-12/+10
|
* galactic/freefree: Update to support sky.pyAaron LI2017-05-212-70/+54
|
* galactic/synchrotron: Update to support sky.pyAaron LI2017-05-211-73/+61
| | | | | | | * Also update foregrounds.py to use sky.py * Minor fixes to configs/manager.py TODO: update synchrotron/add_smallscales() to also work with sky patch.
* galactic/synchrotron.py: Fix typo w.r.t. component nameAaron LI2017-05-211-1/+1
|
* configs : Drop "output/filetype"; only support FITSAaron LI2017-05-173-15/+0
|
* configs: New "sky" section, and remove "common" sectionAaron LI2017-05-161-2/+2
| | | | * Update checkers accordingly
* galactic/snr.py: Small cleanup; Update default resolutionAaron LI2016-12-131-2/+3
|
* galactic/snr.py: Use HEALPix pixel area if object smaller than itAaron LI2016-12-131-1/+5
|
* galactic/snr.py: Update to use "Fnu_to_Tb_fast()"; some cleanupsAaron LI2016-12-131-18/+19
|
* galactic/snr.py: Change a logging levelAaron LI2016-11-211-1/+2
|
* Update "simulate_frequency()" to also return the output file pathAaron LI2016-11-213-15/+82
| | | | | * 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-293-3/+3
| | | | | | | | | | 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-273-3/+8
| | | | | Also add a warning log message for "galactic/snr.py" and "extragalactic/clusters.py".
* galactic/snr.py: Fix wrong astropy quantity operationAaron LI2016-10-221-1/+1
| | | | | | | When two quantities of same unit class divides, to get the correct numerical value, whether use `.decompose().value`, or just convert to plain Python object, e.g., `float(...)`, which will fail if the input quantity is not dimensionless.
* galactic/snr.py: Add one reference and update docstringAaron LI2016-10-221-5/+12
|
* galactic/{freefree,synchrotron}.py: Fix small bugsAaron LI2016-10-182-2/+2
| | | | | * freefree.py: Add the missing "/" to the config "halphamap" * synchrotron.py: Fix "comp" to have the correct value
* galactic/synchrotron.py: Add preocess(), postprocess, _make_filepath()Aaron LI2016-10-181-41/+75
| | | | | | * Add the "preprocess()" and "postprocess()" for a better interface; * Add "_make_filepath()" to compose the output filename; * Reorder some methods for consistency.
* 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.
* galctic/snr.py: Add "preprocess()" and "postprocess()" methodsAaron LI2016-10-181-70/+86
| | | | | | | * Add "preprocess()" and "postprocess()" methods * Add the "name" property * Tweak the places of preparation procedures been invoked * Reorder some methods
* galactic/snr.py: Fix the existence check of dir of catalog ouputAaron LI2016-10-171-1/+1
|
* galactic: Move the "simulate()" method; Add "UNIT" keywordAaron LI2016-10-172-26/+28
|
* galactic/snr.py: Create dir if necessary and adhere clobber configAaron LI2016-10-171-0/+11
|
* galactic/snr.py: Fix various issues, and works almost OK.Aaron LI2016-10-171-7/+22
| | | | Barely test and seems OK.
* galactic/snr.py: Implemented missing but necessary functionalitiesAaron LI2016-10-171-25/+164
| | | | | | | | The necessary but missing functionalities to simulate the Galactic SNRs emission maps are implemented, and this new emission component is ready for testing. Also fix a typo in "utils/grid.py".
* galactic: Add new component "galactic/snr": supernova remnantsAaron LI2016-10-172-0/+256
| | | | NOTE: very preliminary, and missing many necessary functions!
* Fix the reStructuredText citation syntaxAaron LI2016-10-171-3/+3
|
* Tweak the docstring stylesAaron LI2016-10-112-6/+12
|
* 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-112-0/+228
| | | | | | | * New class "galactic.FreeFree" to simulate free-free emission * Add new config section "galactic/freefree" NOTE: current untested