Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | utils/cosmology.py: Add methods Dc() and Dc_to_redshift() | Aaron LI | 2017-10-02 | 1 | -0/+48 |
| | | | | | | * Dc(): simple wrapper on astropy cosmology's comoving_distance() * Dc_to_redshift(): determine the redshift w.r.t. the input comoving distances using interpolation. | ||||
* | utils/units.py: Add eV and keV to temperature conversions | Aaron LI | 2017-09-26 | 1 | -0/+3 |
| | |||||
* | utils/io.py: Add function "csv_to_dataframe()" to support CSV comments | Aaron LI | 2017-09-03 | 1 | -2/+35 |
| | |||||
* | utils/convert.py: Remove the slow, astropy.units based functions | Aaron LI | 2017-09-01 | 1 | -64/+24 |
| | |||||
* | utils/draw.py: Replace "ellipse()" with the `skiimage' version | Aaron LI | 2017-08-31 | 1 | -27/+96 |
| | | | | | | | Also do not use Numba JIT here. Credit: scikit-image - skimage/draw/draw.py https://github.com/scikit-image/scikit-image/blob/master/skimage/draw/draw.py | ||||
* | utils: Add analyze.py with function "countsdist_integrate()" | Aaron LI | 2017-08-30 | 1 | -0/+66 |
| | |||||
* | clusters/psformalism: Remove config "f_darkmatter" | Aaron LI | 2017-08-29 | 1 | -0/+10 |
| | | | | Use "1 - baryon_fraction = 1 - Ob0/Om0" to replace "f_darkmatter". | ||||
* | convert.py: do not use Numba JIT | Aaron LI | 2017-08-29 | 1 | -14/+8 |
| | |||||
* | Fix the warning on scipy.ndimage.zoom output shape calculation | Aaron LI | 2017-08-14 | 1 | -1/+4 |
| | | | | | | | | | 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> | ||||
* | utils/convert.py: Add function "JyPerPix_to_K()" | Aaron LI | 2017-08-13 | 1 | -0/+17 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/io.py: Default float32=False to preserve the data type | Aaron LI | 2017-08-13 | 1 | -4/+4 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/io.py: Add "float32" param and update "write_fits_healpix()" | Aaron LI | 2017-08-13 | 1 | -15/+30 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/io.py: Fix a dtype bug; Improve comments and FITS header | Aaron LI | 2017-08-13 | 1 | -3/+26 |
| | | | | | | Fix the dtype bug in "write_fits_image()" function. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Merge fits.py into io.py | Aaron LI | 2017-08-13 | 3 | -155/+143 |
| | | | | | | Functions "{read,write}_fits_healpix()" merged into io.py Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/io.py: Implement new function "write_fits_image()" | Aaron LI | 2017-08-13 | 1 | -0/+37 |
| | |||||
* | utils/io.py: Improve documentations | Aaron LI | 2017-08-13 | 1 | -1/+19 |
| | |||||
* | utils/transform.py: Update comment and minor cleanups | Aaron LI | 2017-08-12 | 1 | -5/+3 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Fix a bug in clusters/halo.py; Add a comment to utils/io/_create_dir() | Aaron LI | 2017-08-06 | 1 | -0/+4 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/convert.py: omega unit default to [arcsec^2], other improvements | Aaron LI | 2017-08-03 | 1 | -10/+11 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/convert.py: Improve various comments/descriptions | Aaron LI | 2017-08-03 | 1 | -23/+33 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/convert.py: Improve unit check and conversion | Aaron LI | 2017-08-03 | 1 | -2/+2 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Add ds.py with function "dictlist_to_dataframe()" | Aaron LI | 2017-08-03 | 1 | -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> | ||||
* | utils/io.py: Fix issue in "_create_dir()" with empty directory path | Aaron LI | 2017-08-01 | 1 | -1/+3 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Improve logging messages | Aaron LI | 2017-08-01 | 1 | -1/+5 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Add profile.py to diagnose memory usage | Aaron LI | 2017-08-01 | 1 | -0/+97 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/io.py: Add functions "pickle_dump()" and "pickle_load()" | Aaron LI | 2017-08-01 | 1 | -0/+31 |
| | |||||
* | utils/io.py: Split out "_create_dir()" and "_check_existence()" | Aaron LI | 2017-08-01 | 1 | -12/+31 |
| | |||||
* | utils/cosmology.py: Add "dVc()": differential comoving volume | Aaron LI | 2017-07-31 | 1 | -0/+8 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Add interpolate.py with "bilinear()" function | Aaron LI | 2017-07-31 | 1 | -0/+42 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | cosmology: Avoid the circular importing issue | Aaron LI | 2017-07-31 | 2 | -7/+1 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Add `fg21sim.share` module to hold globally shared "CONFIGS" & "COSMO" | Aaron LI | 2017-07-31 | 2 | -3/+1 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | clusters/halo.py: Add property "angular_radius" (unit: [arcsec]) | Aaron LI | 2017-07-30 | 1 | -0/+2 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/units.py: Add several units conversions | Aaron LI | 2017-07-29 | 1 | -0/+4 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/cosmology.py: age() and redshift() accepts numpy arrays | Aaron LI | 2017-07-27 | 1 | -7/+10 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/cosmology.py: Update references and comments | Aaron LI | 2017-07-27 | 1 | -36/+66 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Use all uppercase to identify the global CONFIGS and COSMO | Aaron LI | 2017-07-22 | 2 | -6/+6 |
| | | | | | | Update to use the global CONFIGS and COSMO Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/units.py: Add "mec2" energy of a still electron | Aaron LI | 2017-07-22 | 1 | -1/+5 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/cosmology.py: Add property "baryon_fraction" | Aaron LI | 2017-07-21 | 1 | -0/+9 |
| | | | | | | XXX: assumed to be independent of redshifts! Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Fix parameter names about cosmology | Aaron LI | 2017-07-21 | 1 | -2/+2 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | bin/fg21sim: Setup cosmology model at the beginning | Aaron LI | 2017-07-21 | 1 | -1/+1 |
| | | | | | | | | * Update copyright * Add a help on "DEBUG_FG21SIM" * Also fix a bug in cosmology setup() Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils: Import Cosmology and make "cosmo" a global instance | Aaron LI | 2017-07-21 | 1 | -1/+4 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | cosmology.py: Add "setup()" method to allow update parameters | Aaron LI | 2017-07-21 | 1 | -11/+38 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | dataframe_to_csv(): Add parameter "comment" | Aaron LI | 2017-07-19 | 1 | -4/+17 |
| | | | | | | Also write the writer and datetime to header by default. Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Small updates to comments and configuration descriptions | Aaron LI | 2017-07-19 | 1 | -8/+11 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Add utils/io.py with function "dataframe_to_csv()" | Aaron LI | 2017-07-19 | 1 | -0/+47 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Use [arcsec] as the unit for pixel size and resolution | Aaron LI | 2017-07-19 | 2 | -3/+18 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/transform.py: Add function "circle2ellipse()" | Aaron LI | 2017-07-18 | 1 | -0/+40 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Rename utils/rotate.py to utils/transform.py | Aaron LI | 2017-07-18 | 2 | -4/+5 |
| | | | | Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | utils/draw.py: Add function circle() | Aaron LI | 2017-07-18 | 1 | -1/+62 |
| | | | | | | Draw a circle at the center of the output grid with radial profile Signed-off-by: Aaron LI <aly@aaronly.me> | ||||
* | Revert "utils/convert.py: Use 'utils.units' module" | Aaron LI | 2017-06-24 | 1 | -7/+6 |
| | | | | | | This reverts commit eb660ae70db40d36418f1e4eb886fd9bb02af1a7. Numba cannot recognize AUC/AC classes, or needs further updates |