aboutsummaryrefslogtreecommitdiffstats
path: root/fg21sim/foregrounds.py
Commit message (Collapse)AuthorAgeFilesLines
* Improve costing time report: use seconds if <= 3 minutesAaron LI2018-02-031-6/+14
|
* Update time cost report; Also fix a variable name errorAaron LI2017-09-011-4/+4
|
* Update logging messages; also remove creator __name__Aaron LI2017-08-261-0/+1
| | | | | This script is invoked on the CLI, and will have __name__ of __main__
* foregrounds.py: Simulate components one by one; Add timersAaron LI2017-08-261-47/+58
|
* foregrounds.py: Remove foreground components combinationAaron LI2017-08-261-110/+16
| | | | | * Remove output configs "combine", "combine_prefix", "output_dir" * Remove configuration checker "check_output"
* foregrounds.py: Do not create products manifest if not configuredAaron LI2017-07-211-6/+15
| | | | Signed-off-by: Aaron LI <aly@aaronly.me>
* galactic/synchrotron: Update to support sky.pyAaron LI2017-05-211-28/+28
| | | | | | | * Also update foregrounds.py to use sky.py * Minor fixes to configs/manager.py TODO: update synchrotron/add_smallscales() to also work with sky patch.
* configs : Drop "output/filetype"; only support FITSAaron LI2017-05-171-5/+0
|
* configs: Use separate section "foregrounds" to config componentsAaron LI2017-05-161-2/+2
| | | | Also update copyright information.
* products.py: Add parameter "load" to __init__()Aaron LI2016-12-091-1/+1
| | | | | | | | | | The "load" parameter explicitly controls whether to load the specified manifest file. Update "foregrounds.py" to use this new "load" parameter, which prevent the manifest file been loaded. Otherwise, if the output manifest file already exists, it will be loaded to Products, which may cause inconsistencies with the manifest of newly simulated products.
* products: Support frequency unit; Add "reset()" methodAaron LI2016-11-221-1/+1
|
* Fix two bugs and change one variable nameAaron LI2016-11-211-7/+7
| | | | | | | | * foregrounds.py: Use "configs.get_path()" to get the manifest file path; * foregrounds.py: Use "min()" and "max()" since "self.frequencies" has been changed to be a plain Python list instead of a Numpy array; * foregrounds.py: Change the variable "freqid" to "freq_id"; * products.py: Assign the attribute "self.manifestfile"
* foregrounds.py: Import "Products" to build the manifestAaron LI2016-11-211-9/+22
|
* Update "simulate_frequency()" to also return the output file pathAaron LI2016-11-211-0/+6
| | | | | * Update "output()" method to return the output file path * Update "simulate()" to also return the list of output file paths
* foregrounds.py: Fix import and COMPONENTS_ALLAaron LI2016-11-191-11/+10
|
* utils/__init__.py: Only import "setup_logging" from "logging.py"Aaron LI2016-10-291-1/+1
| | | | | | | | | | 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!
* extragalactic/pointsource (#3)Jason Ma2016-10-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge PR#3: Add new simulation component "extragalactic/pointsources", including SF, SB, RQ, FRI and FRII. * extragalactic/pointsource: add point source simulation module * extracgalactic/pointsource: add point source simulation module * Add configurating spec to extragalgactic point sources. * Modified some variables * base.py: modified * flux.py: modified * fr1.py: modified * fr2.py: modified * pointsources.py: modified * psparams.py: modified * radioquiet.py: modified * starforming.py: modified * starbursting.py: modified * Rewritten the comments. * base.py: modified * flux.py: modified * fr1.py: modified * fr2.py: modified * Modified * psparams.py: modified * radioquiet.py: modified * starforming.py: modified * starbursting.py: modified * Modified * Modified * Modified * Modified * Modified * MOdified * Modified * Modified * Modified * Modified * Modified * Modified * Modified * Modified * Modified * Changed pointsource to pointsources * Fixed some config keywords * Fixed some config keywords * Fixed some config keywords * Fixed some config keywords * Fixed some config keywords * Fixed some config keywords * Fixed some config keywords * base.py:rewrited * fr1.py:rewritten * pointsources.py: rewritten * radioquiet.py: rewritten * Rewritten * Rewritten * base.py: modified * fr1.py: modified * fr2.py: modified * radioquiet.py: modified * starbursting.py: modified * starforming.py: modified * Fix conflicts * fg21sim: fixed conflicts * base.py: modified frequencies loading in _get_configs() * Rewritten as forground.py * fg21sim: fixed conflicts * base.py: deteled loading for frequencies configurations. * fr1.py: modified * fr2.py: modified * pointsources.py: modified * radioquiet.py: modified * starbursting.py: modified * starforming.py: modified * Add new methods to calculate Tb. * Add new methods to calculate Tb. * Add new methods to calculate Tb. * Add new methods to calculate Tb. * Add new methods to calculate Tb. * Add new methods to calculate Tb. * Deleted useless comments. * Add pscomps to deal with multi-type PS problem. * Add a new key. * Fixed permission to 755. * Rejusted PS subsections. * Add methods to calcualte luminosity function and redshift distribution. * Rejusted generation of samples redshift and luminosity. * Fixed mistakes on FRII structure, added hotspots and offsets. * Reajusted generation of samples redshift and luminosity. * Readujsted generation of samples radii, redshifts and luminosity. * Readujsted generation of samples radii, redshifts and luminosity. * Fixed conflicts. * Fixed conficts. * Combined configurations of pointsources. * Removed the older extragalactic configuration file. * Fixed some mistakes. * Fixed mistakes of drawing PS. * Fixed mistakes of drawing PS. * Fixed code style by pep8 checking. * Fixed code style by pep8 checking. * Fixed code style by pep8 checking. * Fixed some coding style. * Reconfigured default redshift interval. * Reconfigured default redshift interval. * Reconfigured default redshift interval. * Fixed mistakes in method calc_single_Tb and changed resolution of grid. * Fixed mistakes in method calc_single_Tb and changed resolution of grid. * Deleted astropy.units style code to accelerate. * Deleted astropy.units style code to accelerate. * Deleted astropy.units style code to accelerate. * Deleted astropy.units style code to accelerate. * Deleted astropy.units style code to accelerate. * Deleted astropy.units style code to accelerate. * Deleted astropy.units style code to accelerate. * Fixed some mistakes. * Fixed some mistakes. * Changed dA from au.Mpc to float64. * Fixed some mistakes. * Fixed some mistakes. * Fixed some mistakes. * Reajusted grid resolution to generate discs. * Reajusted grid resolution to generate discs. * Reajusted loading strategy of parameter resolution. * Reajusted code style of configuration loading. * Reajusted code style of configuration loading. * Reajusted code style of configuration loading. * Reajusted code style of configuration loading. * Reajusted code style of configuration loading.
* foregrounds.py: Add new component extragalactic/clustersAaron LI2016-10-221-3/+5
|
* foregrounds.py: Fix the too-long FITS keyword with commentAaron LI2016-10-181-2/+3
|
* foregrounds.py: Fix two small bugs and test is OKAaron LI2016-10-181-4/+5
| | | | | | * Fix the wrong import path * Add the missing "output_dir" property * Tweak the comments/messages a bit
* Add "foregrounds.py" as the interface to foregrounds simulationAaron LI2016-10-181-0/+200
This module provides a simple/easy-to-use interface to the simulation of various supported foreground components.