Skip to content

emilymmoser/illstack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

illstack

Download:

pip install --user -e .

Running illstack:

Set base parameters in istk-params*.txt and scripts/params_tng.py:

-Basepath for simulation data

-radial limits and number of bins for profiles

-searching for halos by mass option: Option 1 inputs upper/lower mass bounds given as mass_low and mass_high, Option 2 inputs a central mass and searches +- the mass_option_percent, given as a fraction

-scaled radius option, True for scaled (r/r200c) and False for unscaled (r)

-searching for halos by mass kind, options "stellar" or "halo" for stellar mass or halo mass

Using example/generate.py:

This script allows for runs of multiple snapshots, and can be adjusted to loop through other things like simulations, mass cuts, color cuts, profile types, etc.

In the first few lines set the desired simulations and central masses.

It will automatically create shell scripts that call profiles_mult.py to create the npz files.

Possible Permissions Problem:

Depending on individual permissions settings, the two subprocess.call in generate.py might give an error like "permission denied." Currently the way around this is to run generate.py once so the shell scripts are created even if they aren't run, give permission to run the shell scripts with

chmod +x *.sh

then run generate.py again

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 79.6%
  • Cython 19.7%
  • Shell 0.7%