ytree.frontends.ytree.arbor.YTreeArbor.ytds¶
-
YTreeArbor.
ytds
¶ Load as a yt dataset.
Merger tree data is loaded as a yt dataset, providing full access to yt functionality. Fields are accessed with the naming convention, (“halos”, <field name>).
Examples
>>> import ytree >>> a = ytree.load("arbor/arbor.h5") >>> >>> ds = a.ytds >>> sphere = ds.sphere(ds.domain_center, (5, "Mpc")) >>> print (sphere["halos", "mass"]) >>> >>> for node in a.get_nodes_from_selection(sphere): ... print (node["position"])