swiftest.io.select_active_from_frame#
- swiftest.io.select_active_from_frame(ds, param, framenum=-1)[source]#
Selects a particular frame from a DataSet and returns only the active particles in that frame.
- Parameters:
ds (SwiftestDataset) – Dataset containing Swiftest n-body data
param (dict) – Swiftest input parameters. This method uses the names of the cb, pl, and tp files from the input
framenum (int, default=-1) – Time frame to extract. If this argument is not passed, the default is to use the last frame in the dataset.
- Returns:
xarray dataset – Dataset containing only the active particles at frame, framenum