Giter Club home page Giter Club logo

reionbub's Introduction

ReionBub

This repository contains scripts used to study the statistics of reionization bubble sizes from the simulation 21cmFast ([[6]]). This projects requires the following external packages:

numpy, matplotlib, scipy(ndimage), scikit-image, pycuda, ete3, vispy, pandas, seaborn, pyqt4 etc.

3D H-minima Transform and Watershed with PyCUDA

A 3d watershed algorithm is included for segmentation. The watershed algorithm is partly based on [1-4] and modified from 5. In particular, a H-minima transform (also on Pycuda) is used to reduce over-segmentation.

Sample usage:

python watershed.py -d /directory/to/21cmFast/Boxes/

MergerTree with ETE3

A python merger tree builder that scrolls through watershed results at different redshifts and build merger trees, storing various properties of the elements.

3D rendering with Vispy:

render_box.py

This general script can render various boxes such as distance transform, ionization field, density etc.

isosurface.py 

This script renders a single descendant bubble and its progenitors at each redshift slice, from the watershed and MergerTree output files.

VR_bubbles Renders 3D VR-goggle style movies. result

IO

tocmfastpy is a package that handles reading 21cmFast boxes, it is modified from [[7]].

References

[1] Vitor B, Körbes A. Fast image segmentation by watershed transform on graphical hardware. In: Proceedings of the 17th International Conference on Systems, Signals and Image Processing, pp. 376-379, Rio de Janeiro, Brazil.

[2] Körbes A et al. 2009. A proposal for a parallel watershed transform algorithm for real-time segmentation. In: V Workshop de Visão Computacional, São Paulo, Brazil.

[3] Körbes A et al. 2010. Analysis of a step-by-step watershed algorithm using CUDA. International Journal of Natural Computing Research. 1:16-28.

[4] Körbes A et al. 2011. Advances on Watershed Processing on GPU Architectures. In: 10th International Symposium on Mathematical Morphology, Lake Maggiore, Italy.

[5] ws_gpu.py by louismullie

[6] 21cmFast by Andrei Messinger

[7] tocmfastpy by Jonathan Pritchard

reionbub's People

Contributors

yunfanz avatar

Stargazers

 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.