aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* sky.py: Add new properties to SkyBaseAaron LI2017-08-131-1/+35
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/io.py: Add "float32" param and update "write_fits_healpix()"Aaron LI2017-08-131-15/+30
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/io.py: Fix a dtype bug; Improve comments and FITS headerAaron LI2017-08-131-3/+26
| | | | | | Fix the dtype bug in "write_fits_image()" function. Signed-off-by: Aaron LI <aly@aaronly.me>
* bin/get-healpix-patch: Postpone modules import with JITAaron LI2017-08-131-7/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils: Merge fits.py into io.pyAaron LI2017-08-137-159/+149
| | | | | | Functions "{read,write}_fits_healpix()" merged into io.py Signed-off-by: Aaron LI <aly@aaronly.me>
* sky.py: Add float32/clobber/checksum etc. to SkyBaseAaron LI2017-08-131-6/+61
|
* utils/io.py: Implement new function "write_fits_image()"Aaron LI2017-08-131-0/+37
|
* utils/io.py: Improve documentationsAaron LI2017-08-131-1/+19
|
* sky.py: Add basic SkyBase class as the base of SkyPatch and SkyHealpixAaron LI2017-08-131-0/+113
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Implement "_draw_halos()" methodAaron LI2017-08-122-2/+89
| | | | | | New functions "halo_rprofile()" and "draw_halo()" added to helper.py Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/transform.py: Update comment and minor cleanupsAaron LI2017-08-121-5/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Inherent cluster catalog info to halos dataAaron LI2017-08-121-4/+9
| | | | | | Also rename "frequencies" to "frequency" Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Add missing columns to DataFrame conversionAaron LI2017-08-121-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters: Implement calc_{power,flux,brightness_mean} in helperAaron LI2017-08-112-40/+116
| | | | | | Help development & debug ... Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/halo: "volume" use unit "kpc^3" instead of "cm^3"Aaron LI2017-08-112-4/+7
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Calculate and cache more halo dataAaron LI2017-08-061-4/+9
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Fix a bug in clusters/halo.py; Add a comment to utils/io/_create_dir()Aaron LI2017-08-062-1/+5
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Update against "Fnu_to_Tb_fast()" unit changesAaron LI2017-08-037-30/+38
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/convert.py: omega unit default to [arcsec^2], other improvementsAaron LI2017-08-031-10/+11
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/convert.py: Improve various comments/descriptionsAaron LI2017-08-031-23/+33
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/convert.py: Improve unit check and conversionAaron LI2017-08-031-2/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/main.py: Convert halos data to be a DataFrame and dumpAaron LI2017-08-031-0/+19
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils: Add ds.py with function "dictlist_to_dataframe()"Aaron LI2017-08-031-0/+82
| | | | | | | This function convert a list of dictionaries created by e.g., GalaxyClusters._simulate_halos() to be a Pandas DataFrame. Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/emission.py: Make "F()" be class method, fixing memory hole!Aaron LI2017-08-011-22/+35
| | | | | | | | | | | For unknown reason! Each instance of "SynchrotronEmission" will cost ~5 MiB memory when interpolating the kernel function cached as "self._F_interp", which won't be collected/freed by GC, for UNKNOWN reason! Therefore, make the method "F()" be class-wide, to avoid the memory hole! Signed-off-by: Aaron LI <aly@aaronly.me>
* utils/io.py: Fix issue in "_create_dir()" with empty directory pathAaron LI2017-08-011-1/+3
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* Improve logging messagesAaron LI2017-08-013-5/+14
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* utils: Add profile.py to diagnose memory usageAaron LI2017-08-011-0/+97
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* clusters/emission.py: Fix bug in "F()"Aaron LI2017-08-011-13/+14
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* configs: Clean up importsAaron LI2017-08-012-3/+2
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* configs: Default logging to INFO; remove a obsolete config optionAaron LI2017-08-012-6/+1
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>