Data Analyzer Class

Class to analyze the data from the N-body simulation snapshots.

class dataAnalyzer.DataAnalyzer(data, mCentral)

Data Analyzer

A Class to analyze the data from the simulation.

data

DataFrame containing the concatenated data from all snapshot files.

Type:

pd.DataFrame

mCentral

mass of the central body

Type:

float

get_time_func(prop_name, func='max')

Get the statistc of the property at each snapshot time.

Parameters:
  • prop_name (string) – string of the property name

  • func (string) – string of the function to apply to the property

Returns:

the time of the simulation. func_prop (np.array): the statistic of property at each time of the simulation.

Return type:

time (np.array)

get_time_prop(id, prop_name)

Get the time and the property of the particale with the given id.

Parameters:
  • id (integer) – id of the particle

  • prop_name (string) – string of the property name

Returns:

the time of the particle prop (np.array): the property of the particle

Return type:

time (np.array)