Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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 | |||||
* | cosmology: Use default parameters from configurations | Aaron LI | 2017-06-23 | 1 | -1/+5 | |
| | | | | Also add configuration option "cosmology/Omegab0". | |||||
* | utils/convert.py: Use 'utils.units' module | Aaron LI | 2017-06-23 | 1 | -6/+7 | |
| | ||||||
* | utils/units.py: Add "rad2deg" and "k_B" | Aaron LI | 2017-06-23 | 1 | -1/+5 | |
| | ||||||
* | utils/cosmology: Add methods DL() and DA() | Aaron LI | 2017-06-19 | 1 | -0/+14 | |
| | ||||||
* | clusters: Move units.py and cosmology.py to utils | Aaron LI | 2017-06-01 | 2 | -0/+287 | |
| | ||||||
* | Add utils/wcs.py with function "make_wcs()" | Aaron LI | 2017-05-22 | 1 | -0/+54 | |
| | ||||||
* | utils/grid: Add function "make_ellipse()" | Aaron LI | 2017-05-22 | 1 | -7/+47 | |
| | ||||||
* | utils/draw.py: Merge "_ellipse_in_shape()" to "ellipse()" | Aaron LI | 2016-12-13 | 2 | -85/+25 | |
| | | | | | * Fix the bug that "ellipse()" generate unexpected results. * Update the parameters of "ellipse()" also | |||||
* | utils/draw.py: Fix a wrong brace in "_ellipse_in_shape()" | Aaron LI | 2016-12-13 | 1 | -1/+1 | |
| | | | | | This bug causes wrong ellipse generation, which is the main reason to the strange and wrong SNRs shapes. | |||||
* | utils: Add download.py with function "download_file()" | Aaron LI | 2016-11-26 | 1 | -0/+112 | |
| | ||||||
* | utils: Rename function "md5()" to "calc_md5()" | Aaron LI | 2016-11-26 | 1 | -1/+1 | |
| | ||||||
* | utils: Add "hashutil.py" with function "md5()" | Aaron LI | 2016-11-21 | 1 | -0/+40 | |
| | | | | | | md5(): Calculate the MD5 checksum of the file. Credit: https://stackoverflow.com/a/3431838/4856091 | |||||
* | utils/draw.py: Remove the "Modified BSD" license; Update credit | Aaron LI | 2016-11-18 | 1 | -40/+4 | |
| | ||||||
* | utils/healpix.py: Fix the import issue | Aaron LI | 2016-11-09 | 1 | -1/+1 | |
| | ||||||
* | utils/__init__.py: Only import "setup_logging" from "logging.py" | Aaron LI | 2016-10-29 | 1 | -3/+0 | |
| | | | | | | | | | | 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! | |||||
* | utils/random.py: Add a note on conversion to (longitude, latitude) | Aaron LI | 2016-10-28 | 1 | -0/+5 | |
| | ||||||
* | utils/rotate.py: Add a new ref. which may help further vectorization | Aaron LI | 2016-10-28 | 1 | -0/+2 | |
| | | | | Investigate whether the vectorization will improve the speed. | |||||
* | utils/fits.py: Add parameter "checksum" for write_fits_healpix() | Aaron LI | 2016-10-27 | 1 | -8/+13 | |
| | | | | Also update the docstring and one comment. | |||||
* | utils/rotate.py: Fix two bugs which cause wrong results | Aaron LI | 2016-10-26 | 1 | -4/+13 | |
| | | | | | | | * Fix the wrong output shape: wrongly swap the row and column * Fix the area mapping method, which may give zero values when the index of the input is integer, which cause problem to calculate the overlapping areas. | |||||
* | utils/grid.py: JIT optimize "make_grid_ellipse()" | Aaron LI | 2016-10-26 | 1 | -10/+15 | |
| | | | | NOTE that the original optional paramter "rotation" is now required. | |||||
* | utils/grid.py: Use own-implemented JIT-optimized "rotate_center()" | Aaron LI | 2016-10-26 | 1 | -3/+3 | |
| | | | | Also remove the dependence on "scipy". | |||||
* | Add utils/rotate.py: Implement basic image rotation | Aaron LI | 2016-10-26 | 1 | -0/+131 | |
| | | | | | | | | | The "rotate_center()" function rotates a gray-scale image by a given angle about its center, using the area mapping method or simple nearest neighbor. This function is `numba` JIT-optimized, and can replace the `scipy.ndimage.rotate()` function. | |||||
* | draw.py: Remove the unused "circle()" function | Aaron LI | 2016-10-25 | 1 | -42/+0 | |
| | ||||||
* | draw.py: Optimize "ellipse()" using numba JIT | Aaron LI | 2016-10-25 | 1 | -17/+27 | |
| | | | | | | | | | | NOTE: However, there are two significant problems: * Cannot figure out why ``nb.optional(nb.types.UniTuple(nb.int64, 2))`` does NOT work. Therefore, make ``shape`` as mandatory parameter instead of optional. * Cannot figure out multi-dispatch that allows both int and float types for ``r``, ``c``, ``r_radius`` and ``c_radius``. Thus only support the int type for the moment. | |||||
* | draw.py: Optimize "_ellipse_in_shape()" using JIT | Aaron LI | 2016-10-25 | 1 | -3/+20 | |
| |