-
Notifications
You must be signed in to change notification settings - Fork 0
markushaider/generate_tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This should serve as a fast way to generate merger trees out of gadget snapshots. We use the rockstar halo finder (http://code.google.com/p/rockstar/) and consistent-trees (http://code.google.com/p/consistent-trees/) by Peter Behroozi. 1) Building Rockstar: Simply type make in the Rockstar directory 2) Building Consistent-Trees: Using consistent_trees-0.96.1, typing make gives an error that the linking of math.h went wrong. This can be fixed by adding -lm to OFLAGS in src/Makefile (already corrected in this repo). Apart from that, make should work without problems. 2) Running Rockstar: In the files rockstar-server.cfg and rockstar-client.cfg we have to specify the path to our snapshot files (INBASE) and the directory, where the output should be saved. We also have to provide a list with the filenames to be processed (snapshot_names.dat). To do this, one one can use the provided prepare_rockstar.py and giving the snapshot directory as argument, the *.cfg file are updated automatically, and also the snapshot_names is generated. After this is done, we can start Rockstar through ./rockstar -c rockstar-server.cfg ./rockstar -c rockstar-client.cfg 3) Running Consistent-Trees First we have to generate the DescScales.txt. To do this, execute python extract_scales.py Then we switch into the consistent_trees directory and start consistent_trees via the command perl do_merger_tree.pl ../ctree.cfg TODO: - ask peter about importance of the h values which can be given to rockstar and consistent_trees That's it :-)
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published