Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | galactic: Add free-free component simulation | Aaron LI | 2016-10-11 | 3 | -0/+247 | |
| | | | | | | | * New class "galactic.FreeFree" to simulate free-free emission * Add new config section "galactic/freefree" NOTE: current untested | |||||
* | galactic/synchrotron: Merge up/downgrade Nside to load method | Aaron LI | 2016-10-11 | 1 | -45/+29 | |
| | | | | | | | * Merge the upgrade/downgrade resolution w.r.t Nside to the map loading methods; * Update the variable names; * Check the status of smallscales addition. | |||||
* | configs: Note that input templates should be HEALPix full-sky maps | Aaron LI | 2016-10-10 | 1 | -0/+4 | |
| | ||||||
* | configs: Change default Nside to 1024 | Aaron LI | 2016-10-10 | 1 | -2/+2 | |
| | ||||||
* | utils/healpix.py: log that HPX indices calculation may take a while. | Aaron LI | 2016-10-10 | 1 | -0/+1 | |
| | ||||||
* | utils: zea2heapix(): Set value NaN for missing pixels | Aaron LI | 2016-10-10 | 1 | -5/+9 | |
| | ||||||
* | utils: zea2healpix(): Implement inpainting missing pixels | Aaron LI | 2016-10-10 | 1 | -3/+51 | |
| | | | | | | | The missing pixels in the reprojected HEALPix map are filled with the averages of their 8 neighboring pixels (excluding the NaN's if any). Also add the "--inpaint" argument to the executable script. | |||||
* | utils: zea2healpix(): Average the duplicate pixels | Aaron LI | 2016-10-10 | 1 | -2/+4 | |
| | | | | Also fix typos | |||||
* | utils: zea2healpix() also return the mask array | Aaron LI | 2016-10-10 | 1 | -5/+13 | |
| | | | | | | | The mask array has values 0, 1, and 2, which indicate the different statuses of the reprojected HEALPix pixels. Also update the executable script to use the new return results. | |||||
* | utils/reproject.py: Add more logging and some minor changes | Aaron LI | 2016-10-10 | 1 | -1/+22 | |
| | ||||||
* | utils/reproject.py: Implement zea2healpix() | Aaron LI | 2016-10-10 | 2 | -0/+241 | |
| | | | | | | | | | | | | | | | | The "zea2healpix()" function reprojects the maps in ZEA (zenithal/azithumal equal area) projection to HEALPix data in Galactic frame with RING ordering. The other two helper functions "_image_to_healpix()" and "_convert_wcs()" are almost copied from the "reproject" project [1]. Thanks! TODO: * Add some more logging * Implement the "inpaint" argument to inpaint the HEALPix map if exists missing pixels [1] reproject: https://github.com/astrofrog/reproject | |||||
* | utils: Preseve the dtype when read/write FITS files | Aaron LI | 2016-10-10 | 2 | -11/+17 | |
| | | | | | | | | * utils/fits.py: hack the dtype to ignore the byteorder (FITS data use big endianness, e.g., dtype(">f4")) * utils/healpix.py: explicit convert the dtype and log the dtype * bin/healpix2hpx, bin/hpx2healpix: remove the --float argument * other minor fixes/updates | |||||
* | Use newly added "read_fits_healpix()" | Aaron LI | 2016-10-09 | 2 | -15/+8 | |
| | | | | Also remove a unused variable in "galactic/synchrotron.py" | |||||
* | utils/fits.py: read_fits_healpix() also accept HDU | Aaron LI | 2016-10-09 | 1 | -4/+9 | |
| | ||||||
* | utils: Add function "read_fits_healpix()" | Aaron LI | 2016-10-09 | 2 | -1/+30 | |
| | | | | | | This function wraps on the `healpy.read_map()`, but reset the data array to its original dtype in FITS file, as well as return the FITS header in `astropy.io.fits.Header` object. | |||||
* | utils/healpix.py: fix logging import; minor style fixes | Aaron LI | 2016-10-09 | 1 | -10/+5 | |
| | ||||||
* | Update to use the "write_fits_healpix()" function | Aaron LI | 2016-10-05 | 1 | -5/+4 | |
| | ||||||
* | utils: Add "write_fits_healpix()" to replace "healpy.write_map()" | Aaron LI | 2016-10-05 | 2 | -0/+101 | |
| | | | | | | NOTE: This "write_fits_healpix()" function only implements the most common case of the HEALPix FITS style. | |||||
* | Add bin/fg21sim and some updates to galactic/synchrotron | Aaron LI | 2016-10-04 | 2 | -4/+34 | |
| | | | | | | | | | | | | * Add new executable "bin/fg21sim" * galactic/synchrotron: update to use "configs.get_path()" * galactic/synchrotron: create output dir if not exists * galactic/synchrotron: add logging support * galactic/synchrotron: append FITS extension to filename * galactic/synchrotron: pass the basic test TODO: * "output()" needs fixes with the FITS header | |||||
* | Rewrite configs/validate.py to check whole config without break | Aaron LI | 2016-10-04 | 1 | -23/+52 | |
| | ||||||
* | Remove the "common/data_dir" config item | Aaron LI | 2016-10-04 | 3 | -10/+4 | |
| | ||||||
* | Fix wrong config syntax and minor changes to ConfigManager | Aaron LI | 2016-10-04 | 2 | -12/+18 | |
| | ||||||
* | configs/manager.py: Add logging support | Aaron LI | 2016-10-04 | 1 | -2/+6 | |
| | ||||||
* | configs/manager.py: Add method "get_path()" | Aaron LI | 2016-10-04 | 1 | -0/+21 | |
| | ||||||
* | configs/manager.py: Add method "read_userconfig()" | Aaron LI | 2016-10-04 | 1 | -3/+35 | |
| | | | | | | | | This "read_userconfig()" method is specifically used to load the user configuration file, and record the absolute path of the configuration file, which allows the use of relative path to specify the input files (e.g., galactic/synchrotron/template) for simulation within the configurations. | |||||
* | configs/validate.py: Explain these checkers differ to Validator's | Aaron LI | 2016-10-04 | 1 | -1/+7 | |
| | | | | | | NOTE: these checker functions check on the whole configuration, and have no relation to the checker functions of the `Validator` class. | |||||
* | configs/manager.py: Fix a bug that "_validate()" not working | Aaron LI | 2016-10-04 | 1 | -1/+1 | |
| | ||||||
* | configs/manager.py: Add "frequencies" property | Aaron LI | 2016-10-04 | 1 | -0/+16 | |
| | | | | | The "frequencies" property will return or calculate the frequency values of the simulation. | |||||
* | Update the default config specifications. | Aaron LI | 2016-10-03 | 2 | -6/+14 | |
| | | | | | | * Add new configs for the [frequency] section * Use "None" as the default value for some configs * Fix the syntax of "cosmology/OmegaM0" | |||||
* | Add custom configuration checkers. | Aaron LI | 2016-10-03 | 2 | -0/+95 | |
| | | | | | These additional checker functions validate the required configs whether provided by the user config file, as well as against necessary contexts. | |||||
* | Arrange customs errors/exceptions in a module | Aaron LI | 2016-10-03 | 2 | -4/+12 | |
| | ||||||
* | Update general configurations and synchrotron configs | Aaron LI | 2016-10-03 | 2 | -1/+12 | |
| | ||||||
* | Add preliminary Galactic synchrotron simulation support. | Aaron LI | 2016-10-03 | 1 | -0/+204 | |
| | | | | NOTE: untested | |||||
* | utils/logging.py: Close handler before removing | Aaron LI | 2016-10-02 | 1 | -0/+3 | |
| | ||||||
* | configs: Add sample config spec for galactic components | Aaron LI | 2016-10-02 | 1 | -0/+30 | |
| | ||||||
* | configs: Add new sections to "00-general.conf.spec" | Aaron LI | 2016-10-02 | 1 | -0/+66 | |
| | | | | | | | | These new sections added: * common * frequency * output * cosmology | |||||
* | configs/manager.py: Add "getn()" method to get multi-level config value | Aaron LI | 2016-10-02 | 1 | -0/+25 | |
| | ||||||
* | configs/manager.py: Refactor "get()" method and remove "set()" | Aaron LI | 2016-10-02 | 1 | -8/+1 | |
| | ||||||
* | configs: Update comments for the logging configs | Aaron LI | 2016-10-02 | 1 | -2/+6 | |
| | ||||||
* | configs/manager.py: Make "validate()" method private. | Aaron LI | 2016-09-30 | 1 | -8/+8 | |
| | | | | Also unify the quote style. | |||||
* | configs/manager.py: Update docstrings. | Aaron LI | 2016-09-30 | 1 | -2/+21 | |
| | | | | The NumPy docstring style is used. | |||||
* | Remove origin sample files: core.py, helpers.py | Aaron LI | 2016-09-30 | 2 | -9/+0 | |
| | ||||||
* | utils/logging.py: Save existing formatter for new handlers | Aaron LI | 2016-09-29 | 1 | -0/+5 | |
| | | | | | | | By saving the existing formatter and setting for the new handlers, the configured format styles are kept. Otherwise, the newly created handlers does not have a formatter, thus the default format style gets used. | |||||
* | utils/logging: reset handlers before initialization/reconfiguration | Aaron LI | 2016-09-29 | 2 | -3/+16 | |
| | | | | Also improve the comments. | |||||
* | utils/logging.py: Hack the "filemode" arg of "basicConfig()" | Aaron LI | 2016-09-29 | 1 | -1/+4 | |
| | | | | | "logging.basicConfig()" does NOT accept parameter "filemode" if the corresponding paramter "filename" NOT specified. | |||||
* | utils/healpix.py: Fix logger name | Aaron LI | 2016-09-29 | 1 | -1/+1 | |
| | ||||||
* | setup_logging(): Add parameter "level" | Aaron LI | 2016-09-29 | 1 | -2/+14 | |
| | | | | Also fix a bug about parameter "stream". | |||||
* | utils/healpix.py: Add various log INFO messages | Aaron LI | 2016-09-29 | 1 | -6/+22 | |
| | | | | Also fix a bug about "append_comment". | |||||
* | Add utility "setup_logging()" to setup/update logging | Aaron LI | 2016-09-29 | 2 | -0/+71 | |
| | | | | | | This "setup_logging()" utility can setup the logging module with the given configuration dict, and can also update the logging configs by specify the additional parameters. | |||||
* | configs/manager.py: Add "filemode" to the logging dict | Aaron LI | 2016-09-29 | 1 | -1/+3 | |
| |