aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* configs: Update default values of some optionsAaron LI2017-08-272-7/+9
|
* Update README.rstAaron LI2017-08-271-11/+10
|
* configs: Use "utf-8" encoding to allow unicode in config filesAaron LI2017-08-271-6/+11
|
* freefree.py: Fix bug: "comp" -> "compID"Aaron LI2017-08-271-1/+1
|
* configs: Delete obsolete checks on "{halphamap,dustmap}_unit"Aaron LI2017-08-271-4/+0
|
* configs: synchrotron: default to not add smallscalesAaron LI2017-08-271-3/+5
|
* freefree.py: Remove units of "halphamap" and "dustmap"Aaron LI2017-08-272-19/+4
|
* clusters/halo.py: Update injection rate calculationAaron LI2017-08-261-10/+5
| | | | | The electrons are assumed to be injected throughout the whole cluster ICM/volume.
* configs: Import ConfigManager by defaultAaron LI2017-08-261-1/+1
|
* Update logging messages; also remove creator __name__Aaron LI2017-08-262-7/+9
| | | | | This script is invoked on the CLI, and will have __name__ of __main__
* get-healpix-patch: Add argument "--sigma-npix" (default: 2.0)Aaron LI2017-08-261-4/+8
|
* sky.py: Replace @header.setter with method "merge_header()"Aaron LI2017-08-262-13/+5
| | | | | * Avoid the duplicate "@header.setter" in the inherited classes * Update get-healpix-patch
* configs: Clean up unused options; clean up checkers as wellAaron LI2017-08-263-8/+4
|
* get-healpix-patch: Update against sky.pyAaron LI2017-08-261-4/+9
|
* sky.py: Allow to set "header"; add "add_history()"Aaron LI2017-08-261-0/+23
| | | | XXX: how to avoid the duplicate @header.setter???
* foregrounds.py: Simulate components one by one; Add timersAaron LI2017-08-261-47/+58
|
* Return the list of filepath to the written sky filesAaron LI2017-08-264-3/+34
|
* 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
|
* clusters/main.py: Update sky header; update comments etc.Aaron LI2017-08-261-5/+7
|
* configs: Remove unused option "unit", and minor cleanupsAaron LI2017-08-261-9/+4
|
* configs: Remove option "save"; all enabled components will be savedAaron LI2017-08-265-20/+4
|
* sky.py: Add more numeric special methodsAaron LI2017-08-261-0/+52
|
* config: Change "output/use_float" to "output/float32"Aaron LI2017-08-262-3/+3
|
* foregrounds.py: Remove foreground components combinationAaron LI2017-08-263-131/+19
| | | | | * Remove output configs "combine", "combine_prefix", "output_dir" * Remove configuration checker "check_output"
* sky.py: Rename load() -> open(), read() -> load()Aaron LI2017-08-263-24/+30
|
* galactic/synchrotron.py: Take absolute value on spectral indexAaron LI2017-08-231-1/+2
|
* clusters/halo.py: Rewrite electron acceleration coefficient calcAaron LI2017-08-143-28/+56
| | | | | | | | | | * Adopt the electron acceleration coefficient formula from [cassano2005] * Rename method "_tau_acceleration()" to "_chi_acceleration()", and rewrite * Add property "kT_merger" * Also save "kT_merger" and "chi" into halos data Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Use OrderedDict to easy keys manipulationAaron LI2017-08-141-29/+31
| | | | | | | Also avoid forgetting to add the newly added item for DataFrame conversion. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo.py: Simplify two coefficients usageAaron LI2017-08-141-7/+5
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Rename property "injection_rate" and save into halos dataAaron LI2017-08-142-37/+38
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Use "GalaxyClusters" from main.py, and remove clusters.pyAaron LI2017-08-143-735/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* 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>
* Fix the warning on scipy.ndimage.zoom output shape calculationAaron LI2017-08-142-2/+6
| | | | | | | | | scipy.ndimage.zoom calculate the output/zoomed image shape with round(), while the old versions use int() instead. When the two calculations are different, a warning is raised. This commit fixes the calculation mismatch. Signed-off-by: Aaron LI <aly@aaronly.me>
* Fix several bugsAaron LI2017-08-132-12/+7
| | | | | | | | | * Brought back "clobber" property * Delete the wrong "self.halos=[]" * Fix the wrong assignment of "cimax0" * Assign default values for {c,r}i{min,max}1 Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Fix the "pixelsize" propertyAaron LI2017-08-131-16/+16
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "simulate_frequency()" and "simulate()"Aaron LI2017-08-131-0/+46
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/convert.py: Add function "JyPerPix_to_K()"Aaron LI2017-08-131-0/+17
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Halo templates are normalized to have mean of 1Aaron LI2017-08-132-4/+12
| | | | | | Also update the documents of "draw_halo()" function Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add method "_outfilepath()"Aaron LI2017-08-131-0/+21
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Implement "add()" method for SkyPatch classAaron LI2017-08-131-9/+87
| | | | | | XXX/TODO: need implement this method for SkyHealpix as well! Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Set sky header propertiesAaron LI2017-08-132-4/+6
| | | | | | | * Clean up the unused configurations * Add "FREQ" keyword to the sky FITS header Signed-off-by: Aaron LI <aly@aaronly.me>
* Move Zhixian MA to the AuthorsAaron LI2017-08-131-6/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Add "add_header()" methodAaron LI2017-08-131-0/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Overload common arithmetic operatorsAaron LI2017-08-131-0/+58
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/io.py: Default float32=False to preserve the data typeAaron LI2017-08-131-4/+4
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Add parameter "clobber" to "write()" methodAaron LI2017-08-131-4/+12
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Update against the SkyBase class, various cleanupsAaron LI2017-08-131-88/+26
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Update to use "write_fits_{image,healpix}" functionsAaron LI2017-08-131-43/+19
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>