Commit 3aec2c9b authored by Andreas Theodosiou's avatar Andreas Theodosiou 馃惂

馃帹 Format swath_geo with black

parent db64f162
......@@ -19,7 +19,16 @@ __email__ = "F.LopezDekker@tudeft.nl"
Swath = namedtuple(
"Swath",
["lat", "lon", "incident", "Northing", "GP_mask", "LoS_satcoord", "R", "xyz",],
[
"lat",
"lon",
"incident",
"Northing",
"GP_mask",
"LoS_satcoord",
"R",
"xyz",
],
)
Swaths = namedtuple("Swaths", ["master_swath", "slave_swath"])
......@@ -181,11 +190,12 @@ class SingleSwath(keplerian.SingleOrbit):
squint=0,
companion_delay=0,
):
"""Initialise SingleSwath
"""
"""Initialise SingleSwath"""
# Call SingleOrbit initialization
super().__init__(
orb_type=orb_type, conffile=par_file, companion_delay=companion_delay,
orb_type=orb_type,
conffile=par_file,
companion_delay=companion_delay,
)
cfgdata = cfg.ConfigFile(drtls.get_par_file(par_file))
# create look angle vector
......@@ -499,7 +509,11 @@ class SingleSwath(keplerian.SingleOrbit):
# Interpolation
interpol_results = [
interpolate.griddata(
(lon, lat), x, (lon_i_asc, lat_i_asc), method="linear", fill_value=999,
(lon, lat),
x,
(lon_i_asc, lat_i_asc),
method="linear",
fill_value=999,
)
for x in (
inc_angle,
......@@ -717,7 +731,8 @@ class SingleSwathBistatic(object):
# Look for
mid_range = int(self.lats.shape[1] / 2)
asclats = self.lats[
self.master_orbit.asc_idx[0] : self.master_orbit.asc_idx[1], mid_range,
self.master_orbit.asc_idx[0] : self.master_orbit.asc_idx[1],
mid_range,
]
dsclats = self.lats[self.master_orbit.asc_idx[1] :, mid_range]
self.__asc_latind = (
......
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