Commit db64f162 authored by Andreas Theodosiou's avatar Andreas Theodosiou 馃惂

馃悰 Fix call to deprecated line_of_sight

* Remove leftover call to the old linfe_of_sight_bistatic function
* Use the new line_of_sight instead
parent 98d31245
......@@ -223,14 +223,6 @@ class SingleSwath(keplerian.SingleOrbit):
master_orb_data = drorb.SingleOrbit(conffile=par_file)
self.asc_idx = master_orb_data.asc_idx
self.desc_idx = master_orb_data.desc_idx
# swath_master, swath_data = line_of_sight_bistatic(
# la_vector,
# master_orb_data.r_ecef,
# self.r_ecef,
# master_orb_data.v_ecef,
# self.v_ecef,
# look=look,
# )
swath_master, swath_data = line_of_sight(
(la_vector, master_orb_data.r_ecef, master_orb_data.v_ecef),
(la_vector, self.r_ecef, self.v_ecef),
......@@ -667,12 +659,9 @@ class SingleSwathBistatic(object):
# Get lat, lon, incident & Northing information for both satellite when
# look at the same points on the ground
swath_master, swath_comp = line_of_sight_bistatic(
la_vector,
self.master_orbit.r_ecef,
self.slave_orbit.r_ecef,
self.master_orbit.v_ecef,
self.slave_orbit.v_ecef,
swath_master, swath_comp = line_of_sight(
(la_vector, self.master_orbit.r_ecef, self.master_orbit.v_ecef),
(la_vector, self.slave_orbit.r_ecef, self.slave_orbit.v_ecef),
look=look,
)
self.results = Swaths(swath_master, swath_comp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment