Skip to content

Commit 133f681

Browse files
Update src/s1reader/s1_burst_slc.py
Co-authored-by: Scott Staniewicz <[email protected]>
1 parent 59e673f commit 133f681

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/s1reader/s1_burst_slc.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,13 @@ def _evaluate_polynomial_array(arr_polynomial, grid_tau, vec_tau0):
130130
ncol = grid_tau.shape[1]
131131
term_tau = grid_tau - vec_tau0 * np.ones(ncol)[np.newaxis, ...]
132132

133-
eval_out = (arr_polynomial[:,0][..., np.newaxis]
134-
*np.ones(ncol)[np.newaxis, ...]
135-
+ (arr_polynomial[:,1][..., np.newaxis]
136-
* np.ones(ncol)[np.newaxis, ...]) * term_tau
137-
+ (arr_polynomial[:,2][..., np.newaxis]
138-
* np.ones(ncol)[np.newaxis, ...]) * term_tau**2)
133+
eval_out = (
134+
arr_polynomial[:, 0][..., np.newaxis] * np.ones(ncol)[np.newaxis, ...]
135+
+ (arr_polynomial[:, 1][..., np.newaxis] * np.ones(ncol)[np.newaxis, ...])
136+
* term_tau
137+
+ (arr_polynomial[:, 2][..., np.newaxis] * np.ones(ncol)[np.newaxis, ...])
138+
* term_tau**2
139+
)
139140

140141
return eval_out
141142

0 commit comments

Comments
 (0)