Expand description
§Pressure on the telescope mount and mirror segments
§Examples
Loading telescope mount pressure
let telescope =
Telescope::from_path("data/Telescope_p_telescope_7.000000e+02.csv.z").unwrap();
println!("{telescope}");Converting telescope pressure data into a R-Tree
let telescope =
Telescope::from_path("data/Telescope_p_telescope_7.000000e+02.csv.z").unwrap();
println!("{telescope}");
let rtree = telescope.to_rtree();
let node = rtree.locate_at_point(&[-6.71743755562523, 1.18707466192993, -4.88465284781676]);
assert_eq!(
node.unwrap().clone(),
Node {
pressure: -7.29796930557952,
area_ijk: [
1.81847333261638e-06,
1.84800982152254e-06,
0.0126174546658134,
],
xyz: [-6.71743755562523, 1.18707466192993, -4.88465284781676],
}
);