README
database.py: for postprocess of merger tree DataImport/*: Modules of importing merger tree, halo properties, particles
USAGE:
-
put the directory DataImport in to the package-site path or put it in the
-
working directory or put to any path you like and import it to the PATH enviroment.
-
import DataImport
tree = DataImport(inputfile, type='filetype', keyword=keyword, maxsnap=maxsnap, filez=filez) tree[snap][haoid][nth pro]=proid
halo = DataImport(filez=filez)
halo.import_one_snap(file, col=col, ftype=ftype)
halo.import_all_snap(file, col=col, keyword=keyword, ftype=ftype)
halo[snap]['property'][haloid]=value