Skip to content

myinxd/fg21sim

 
 

Repository files navigation

Foreground Simulation for 21 cm Reionization Signal Detection

The FG21sim_ is a low-frequency radio foregrounds simulator aiming to provide the simulation of the common foregrounds impeding the 21 cm reionization signal detection. The simulated foregrounds can be used to evaluate the impacts of different foreground components on the EoR signal, and can be also used to help develop and test various foreground removal methods.

Features

  • Supported foreground components:
    • galactic/synchrotron: Galactic synchrotron emission (Note: only the unpolarized part considered)
    • galactic/freefree: Galactic free-free emission
    • galactic/snr: Emission from Galactic supernovae remnants (SNRs)
    • extragalactic/clusters: Emission from extragalactic galaxy clusters (Note: only giant radio halos) [WARNING: undergoing major changes]
  • All-sky simulation by utilizing HEALPix (Note: not all components are currently supported)
  • High-resolution simulation within sky patches
  • Fine-grained control via a configuration file
  • Well organized and commented
  • Modular and extensible
  • Command line utilities

Installation

  1. Install the required software and libraries:
  2. Clone this repository:

    $ git clone https://github.com/liweitianux/fg21sim
  3. Install the required third-party Python packages. And it is recommended to use the virtual environment:

    $ cd fg21sim/
    $ make venv
    $ . venv/bin/activate
    (venv) $

    Check to make sure that this virtual environment is activated so that the python3 and pip3 are pointed to the virtual environment.

  4. Install this software into the virtual environment:

    (venv) $ python3 setup.py install
  5. You are ready to use this software. Just have a look, e.g.:

    (venv) $ fg21sim --help

Development

To ease the development and tests, you may want to install this package in the editable state:

$ cd fg21sim/
$ pip3 install --user -r requirements.txt
$ pip3 install --editable .

In addition, setting the environment variable DEBUG_FG21SIM forces this software running at the DEBUG logging level.

Documentations

To get started, read the User Guide. See also this simulation example.

Authors

  • Weitian LI <wt@liwt.net>
  • Zhixian MA <zxma_sjtu@qq.com>

License

Unless otherwise declared:

  • Codes developed by us are distributed under the MIT License;
  • Documentations and products generated by us are distributed under the Creative Commons Attribution 3.0 License;
  • Third-party codes and products used are distributed under their own licenses. See also LICENSE-3RDPARTY_.

Releases

No releases published

Packages

No packages published

Languages

  • Python 80.0%
  • JavaScript 9.3%
  • HTML 6.1%
  • CSS 4.4%
  • Makefile 0.2%