Skip to content

earnric/python_histograms

Repository files navigation

python_histograms

##Version 1.0 This version generates normalized 2D histograms where the bins are normalized and weighed by the mass of the star particles. For the plots where Zsol is the x-axis, the weight of the entire star particle is used. Where the x-axis is Zsol/fpol the weight is the mass of the polluted portion of the star particle (mass * (1-fpristine)). The fully normalized plots divide out the bin area (hist2d) or the bin width (1d) along with the comoving volume of the simulation (27 Mpc/0.713)

##Initial version Python code to generate 2D histograms with 1D histograms along the x & y axes

The starHist2d-MassLogNorm.py program seems to work fine and generates a 2D histogram that is log of the weighted mass of the star particles.

The starHist2d-MassLogNorm-fullNorm.py is supposed to normalize this data by the area of the bins (d log x / d log y) and the volume of the simulation: 27 Mpc^3 / h^3. This isn't working yet.

#pyn-gas_and_star_analysis.ipynb

Uses lin alg to determine all stars within radius of a given coordinate. Use HOP to find halo centers.

About

Python code to generate 2D histograms with 1D histograms along the x & y axes

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published