Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | utils/io: Support 'NESTED' ordering in read_fits_healpix() | Aaron LI | 2019-11-02 | 1 | -5/+11 |
| | |||||
* | utils/ds: Add pad_dict_list() function | Aaron LI | 2019-02-28 | 1 | -4/+26 |
| | |||||
* | Add utils/virial module | Aaron LI | 2019-02-25 | 1 | -0/+71 |
| | | | | Implement the M500 to M200 conversion. | ||||
* | utils/analyze: PEP8 fix | Aaron LI | 2019-02-25 | 1 | -1/+1 |
| | |||||
* | utils/analyze: Extend loglinfit() to accept x/y limits | Aaron LI | 2019-02-24 | 1 | -5/+27 |
| | |||||
* | utils/analyze: Add parameter 'coef0' to loglinfit() | Aaron LI | 2019-02-24 | 1 | -3/+6 |
| | |||||
* | utils/analyze: Improve logfit() to output uncertainties | Aaron LI | 2019-02-22 | 1 | -8/+25 |
| | | | | | | | Use ``scipy.optimize.curve_fit()`` to do the underlying fitting, which can give the uncertainties of the fitted parameters. Rename logfit() to loglinfit(). | ||||
* | utils/unit: Minor cleanups | Aaron LI | 2019-02-21 | 1 | -6/+10 |
| | |||||
* | utils/analyze: Add countdist() function | Aaron LI | 2019-01-30 | 1 | -8/+16 |
| | | | | Modified from the original countdist_integrated(). | ||||
* | utils/healpix: Minor cleanups | Aaron LI | 2019-01-29 | 1 | -22/+36 |
| | |||||
* | Use UTC time instead of local time | Aaron LI | 2019-01-29 | 2 | -18/+13 |
| | |||||
* | utils/analyze: Add logfit() | Aaron LI | 2019-01-28 | 1 | -2/+27 |
| | | | | This function helps fit the index of a scaling relation. | ||||
* | cosmology: Update virial overdensity calculation | Aaron LI | 2019-01-17 | 1 | -10/+16 |
| | | | | | | References: * https://en.wikipedia.org/wiki/Virial_mass * http://adsabs.harvard.edu/abs/1998ApJ...495...80B | ||||
* | PEP8 fix | Aaron LI | 2018-10-31 | 1 | -2/+2 |
| | |||||
* | utils/units: Add J2erg and erg2J | Aaron LI | 2018-10-26 | 1 | -0/+2 |
| | |||||
* | clusters: Fix cluster distribution calculation about mass | Aaron LI | 2018-05-12 | 1 | -3/+2 |
| | |||||
* | Numba: disable/restrict JIT usage -> TODO: Cython | Aaron LI | 2018-02-03 | 1 | -2/+4 |
| | |||||
* | Numba: disable/restrict the Numba JIT usage; needs refactor -> Cython ... | Aaron LI | 2018-02-02 | 2 | -24/+27 |
| | |||||
* | utils/convert.py: Add flux_to_power() to calculate power from flux density | Aaron LI | 2018-02-01 | 1 | -1/+34 |
| | |||||
* | Deprecate np.int, np.float | Aaron LI | 2017-11-03 | 1 | -3/+3 |
| | | | | See: https://github.com/numpy/numpy/pull/6103 | ||||
* | utils/grid.py: Disable Numba JIT for make_ellipse() & make_grid_ellipse() | Aaron LI | 2017-10-26 | 1 | -8/+0 |
| | |||||
* | utils/transform/circle2ellipse: skip rotation if it's None | Aaron LI | 2017-10-23 | 1 | -4/+5 |
| | |||||
* | clusters/halo: Add function "speed_sound()" | Aaron LI | 2017-10-21 | 1 | -0/+3 |
| | | | | Also add "gamma" the adiabatic index of ideal gas to utils/units.py | ||||
* | utils/units.py: add "rad2arcmin" and some cleanup/simplifications | Aaron LI | 2017-10-18 | 1 | -16/+20 |
| | |||||
* | utils/analyze.py: countdist_integrated(): Add xmin and xmax param. | Aaron LI | 2017-10-18 | 1 | -2/+15 |
| | |||||
* | clusters: Use "hmf" to calculate halo mass functions/distributions | Aaron LI | 2017-10-04 | 1 | -0/+46 |
| | | | | | | | | | | | | * New dependency "hmf" (halo mass functions) module * Calculate halo mass distributions/functions (dndlnm) with respect to masses and redshifts, instead of use the previous data file ("ps_data") * New section "[extragalactic][psformalism]" in configurations * New functions to write and read the dndlnm data TODO: * update the method to sample (mass, redshift) for clusters from the dndlnm data | ||||
* | utils/cosmology.py: Add parameter Tcmb0 [K] | Aaron LI | 2017-10-04 | 1 | -4/+9 |
| | |||||
* | utils/units.py: Add "K2eV" and "K2keV" | Aaron LI | 2017-10-04 | 1 | -0/+2 |
| | |||||
* | utils/cosmology: Add scalar spectral index "ns" | Aaron LI | 2017-10-04 | 1 | -4/+6 |
| | |||||
* | 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> |