Function nyx_space::io::traj::traj_from_csv [−][src]
pub fn traj_from_csv(
filename: &str,
default_frame: Option<Frame>,
cosm: Arc<Cosm>
) -> Result<Ephemeris, NyxError>
Expand description
Imports a trajectory from a CSV. This is experimental and is subject to change between minor versions.
The CSV must have a column for each of the following fields with that specific case
[frame, epoch, x, y, z, vx, vy, vz]
The Epoch should be formatted in the ISO standard and include the time system (UTC, TAI, TT, etc.)
You may also specify unit_position
and unit_velocity
in an extra column for every item
Caveats: only the frame of the first item is considered. Also, this is super slow!