Giter Club home page Giter Club logo

cosmommf's Introduction

Welcome to my Profile!

I'm a graduate student studying Astrophysics at Princeton University ๐ŸŒŒ๐Ÿ”ญ

My interests are in theoretical and computational astrophysics, high performance algorithms, and a little web design. My github repos consist of various projects I have worked on from analysis of cosmological simulations to teaching intro level programming courses. Along the way there are some interesting projects including games made with python and tools I made such as an automated email writer for mass distribution of information to large classes.

If you are interested, you can learn more about me at my personal website james-sunseri.com

James' GitHub stats James' GitHub stats

cosmommf's People

Contributors

james11222 avatar liuxx479 avatar xzackli avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

gracospa mardom

cosmommf's Issues

structure identification by density quartiles

Currently, the project plan involves:

  1. assign the particles to a regular gridded cube of size N
  2. smooth the field
  3. apply the NEXUS method to assign each grid cell to one of the following structure classes: 0-voids, 1-walls, 2-filaments, 3-halos/nodes
  4. compute the power spectrum (and PDF) of the DM-only grid, but with some cells swapped out by the corresponding hydro cells.

During today's telecon, I talked about an alternative to step-3; instead of applying NEXUS, identify the regions that are in the 4 different quartiles of the density fields (top 25% densest, 25-50% quantile density,.. and 25% emptiest regions); which can be done by rank order all the pixels, and take the top 1/4, next 1/4 values, etc.

This issue will attempt to address this alternative method (for step 3)

pseudo code:

rho = rho_DM ### where rho_DM is a grid of shape N^3

structure_class = NEXUS(rho_DM)

## structure_class is also a grid of shape N^3, where each cell has value=0,1,2,or 3, for either (1) the 4 different structures (void, walls, filaments, halos) or (2) different quantile values, (0-top 25% densest regions, 1-[25%-50%] quantile... etc)

### if we want to swap out filaments cells, i.e. only look at baryonic effects on filaments, we do
rho[np.where (structure_class==2)] = rho_hydro[np.where (structure_class==2)]

## finally, compare the resulting power spectrum to 
ratio = power_spectrum(rho)/power_spectrum(rho_DM)

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.