Package: tools21cm
Tools21cmA python package for analysing simulated 21-cm signals from the Epoch of Reionization (EoR) and Cosmic Dawn (CD). Full documentation (with examples, installation instructions and complete module description) can be found atreadthedocs.Package detailsThe package provides tools to analyse cosmological simulations of EoR and CD. It contains modules to create mock 21-cm observations for current and upcoming radio telescopes, such as LOFAR, MWA and SKA, and to construct statistical measures.InputCurrently,Tools21cmsupports the following simulation codes:CUBEP3MC2RAYGRIZZLY21cmFASTSimfast21sem_numOutputsThere are various manipulation and analysis moduled inTools21cm.Angular coordinates: methods to convert data between physical (cMpc) coordinates and observational (angular-frequency) coordinatesBubble Statistics: methods to calcluate the sizes of the regions of interest and estimate the size distributionsCosmological calculators: various functions for calculating some cosmological stuffIdentifying regions: methods to identify regions of interest in imagesLightcone: methods to construct lightconesPower spectrum: contains functions to estimate various two point statisticsReading simuation outputs: methods to read simulations outputsSmoothing: methods to smooth or reduce resolution of the data to reduce noisePoint statistics: contains various useful statistical methodsTemperature: methods to estimate the brightness temperatureFor detail documentation and how to use them, seehere.Under DevelopementForeground model: methods to simulate and analyse the foreground signal for 21 cm signalPrimary beam: methods to simulate the primary beam of radio telescopeTelescope noise:simulate the radio telescope observation strategysimulate telescope noiseTopology: methods to estimate the topology of the region of interestINSTALLATIONOne can install a stable version of this package using pip by running the following command::pip install tools21cmThis package is being actively under-development, which involves addition of new modules and bug fixes. In order to use the latest version, one can clone this package.To install the package from source, one should clone this package running the following::git clone https://github.com/sambit-giri/tools21cm.gitTo install the package in the standard location, run the following in the root directory::python setup.py installIn order to install it in a separate directory::python setup.py install --home=directoryOne can also install the latest version using pip by running the following command::pip install git+https://github.com/sambit-giri/tools21cm.gitThe dependencies should be installed automatically during the installation process. If they fail for some reason, you can install them manually before installing tools21cm. The list of required packages can be found in the requirements.txt file present in the root directory.TestsFor testing, one can usepytestornosetests. Both packages can be installed using pip. To run all the test script, run the either of the following::python -m pytest tests

nosetests -vCONTRIBUTINGIf you find any bugs or unexpected behavior in the code, please feel free to open aGithub issue. The issue page is also good if you seek help or have suggestions for us. For more details, please seehere.