pip install --user -e .
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
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.
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