GithubHelp home page GithubHelp logo

anand-avinash / 21cm-signal-with-multifrequency-fitting Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 28 KB

Statistical Detection of 21 cm Signal from the Epoch of Reionization

License: The Unlicense

Shell 1.19% C 64.75% Python 34.06%
c python

21cm-signal-with-multifrequency-fitting's Introduction

Statistical Detection of 21 cm Signal from the Epoch of Reionization

Here is the program I wrote for my master's thesis project. This program uses the multi-frequency fitting method to extract the 21 cm signal blindly from a contaminated signal [1,2]. It also covers an attempt to recover the 21cm signal power spectrum from the contaminated signal cube [3,4].

Program description

  • Usage:

    1. Modify the compiler flags in compile.sh as per your system specs

    2. Run the shell script compile.sh:

      sh compile.sh
    3. Run the executable execute with appropriate arguments:

      #To simulate the 21 cm fields
      ./execute [frequency (in MHz)] [XY_pix] [Z_pix] [Int_time (hrs)] [expo_array]

      OR

      #To read the 21 cm fields from SKA blind challenge data
      ./execute [header] [XY_pix] [Int_time (hrs)] -o [offset] [expo_array]
  • You must have FFTW and GSL installed. See
    FFTW: http://www.fftw.org/download.html
    GSL: https://www.gnu.org/software/gsl/

  • Simulation parameters to simulate 21 cm signal and foreground contaminations are stored in params.h and foreg_params.h respectively. Cosmological parameters to compute the comoving distance between two redshifts are stored in power_params.h.

Notes

  • You'll need dimensionless power spectrum in ps_table/ to simulate the 21 cm field.
  • ska_data/ stores the SKA blind challenge data. See ska_data/.gitignore for the list of files that needs to be there.
  • .bin files need to be generated by combining the datasets from the original .fits files of the SKA blind challenge data. To do so, copy the SKA_Blind_Challenge_Pilot/images folder to ska_data/ and run the ska_data/codes/fit_bin.py. This will copy the signal data from the .fits files to .bin in ska_data/ with the help of ska_data/codes/box_copy.c.
  • The SKA blind challenge dataset was scaled down and had positive and negative data points as well. The multi-frequency fitting method requires computing the logarithm of the data points to fit the foreground. So in order to apply the foreground removal technique, a constant positive offset was added to all the data points prior to the foreground removal.

Plotting description

  • plots/plot_2dps_1.py
    Plots the 2D power spectrum [3,4] of simulated eor, eor + free-free, eor + free-free + point sources, and eor + total foreground fields
  • plots/plot_2dps_2.py
    Plots the 2D power spectrum of SKA blind challenge data for a given tau, polystr, offset and header
  • plots/plot_3dps_1.py
    Plots the 3D power spectrum of simulated eor, eor + free-free, eor + free-free + point sources, and eor + total foreground fields
  • plots/plot_3dps_2.py
    Plots the 3D power spectrum of SKA blind challenge data for given polystr, tau and offset. Plots eor_p_fg, eor_p_noise, eor_p_noise_fg in different panels for total and recovered signal together
  • plots/plot_los_signal_1.py
    Plots line-of-sight (los) signal for 4 given los for a given offset, polystr and tau
  • plots/plot_los_signal_2.py
    Plots los signal for a given los, offset and polystr. Plots eor_p_fg, eor_p_noise, eor_p_noise_fg in different panels for all tau
  • plots/plot_los_signal_3.py
    Plots los signal for a given los, tau and polystr. Plots eor_p_fg, eor_p_noise, eor_p_noise_fg in different panels for all offsets

References

  1. Li-Ping He. Foreground removal of 21 cm fluctuation with multifrequency fitting. Research in Astronomy and Astrophysics 9.6 (2009), p. 653.
  2. Max Tegmark et al. Foregrounds and Forecasts for the Cosmic Microwave Background. The Astrophysical Journal 530.1 (2000), p. 133.
  3. A. Datta, J. D. Bowman, and C. L. Carilli. Bright Source Subtraction Requirements for Redshifted 21 cm Measurements. The Astrophysical Journal 724 (Nov. 2010), pp. 526โ€“538.
  4. Adrian Liu, Aaron R. Parsons, and Cathryn M. Trott. Epoch of reionization window. II. Statistical methods for foreground wedge reduction. Phys. Rev. D 90 (2 2014), p. 023019.

21cm-signal-with-multifrequency-fitting's People

Contributors

anand-avinash avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.