ytree.frontends.ahf.arbor.AHFArbor
- class ytree.frontends.ahf.arbor.AHFArbor(filename, log_filename=None, parameter_filename=None, crm_filename=None, hubble_constant=1.0, box_size=None, omega_matter=None, omega_lambda=None, name_config=None)[source]
Arbor for Amiga Halo Finder data without a CRMratio2 file.
In this instance, we will use the mtree files to assemble the tree.
- __init__(filename, log_filename=None, parameter_filename=None, crm_filename=None, hubble_constant=1.0, box_size=None, omega_matter=None, omega_lambda=None, name_config=None)[source]
Initialize an Arbor given an input file.
Methods
__init__(filename[, log_filename, ...])Initialize an Arbor given an input file.
add_alias_field(alias, field[, units, force_add])Add a field as an alias to another field.
add_analysis_field(name, units[, dtype, default])Add an empty field to be filled by analysis operations.
add_derived_field(name, function[, units, ...])Add a field that is a function of other fields.
add_vector_field(name[, vector_components])Add vector fields for a set of x,y,z component fields.
get_nodes_from_selection(*args, **kwargs)get_yt_selection(*args, **kwargs)is_grown(tree_node)Return True if a tree has been fully assembled, i.e., the hierarchy of ancestor tree nodes has been built.
is_setup(tree_node)Return True if arrays of uids and descendent uids have been read in.
query(key)If given a string, return an array of field values for the roots of all trees.
reload_arbor()reset_node(tree_node)Reset all data structures for a single node.
save_arbor(**kwargs)Save the arbor to a file.
select_halos(criteria[, trees, select_from, ...])Select halos from the arbor based on a set of criteria given as a string.
set_selector(selector, *args, **kwargs)Sets the tree node selector to be used.
Attributes
arrCreate a unyt_array using the Arbor's unit system.
box_sizeThe simulation box size.
containerHelper function for creating
NodeContainerobjects.cosmologyCosmology calculator with self-consistent parameters and units.
crm_filenamefield_infoA dictionary containing information for each available field.
hubble_constantValue of the Hubble parameter.
is_plantedDetermine if trees have been planted.
omega_lambdaomega_matteromega_radiationquanCreate a unyt_quantity using the Arbor's unit system.
sizeReturn total number of trees.
unit_registryUnit system registry.
ytds