Skip to content

Commit 87e4e26

Browse files
committed
update dop docstrings for sphinx compatibility"
1 parent c765a3d commit 87e4e26

1 file changed

Lines changed: 43 additions & 25 deletions

File tree

gnss_lib_py/utils/dop.py

Lines changed: 43 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -45,15 +45,21 @@ def get_dop(navdata, **which_dop):
4545
4646
Note that the dop matrix output is splatted across entries following
4747
the behavior below:
48-
[[EE, EN, EU, ET],
49-
[NE, NN, NU, NT],
50-
[UE, UN, UU, UT],
51-
[TE, TN, TU, TT]] (16 values in 2D array)
52-
is stored as
53-
[EE, EN, EU, ET,
54-
NN, NU, NT,
55-
UU, UT,
56-
TT] (10 values in 1D array),
48+
::
49+
50+
[[EE, EN, EU, ET],
51+
[NE, NN, NU, NT],
52+
[UE, UN, UU, UT],
53+
[TE, TN, TU, TT]] (16 values in 2D array)
54+
55+
is stored as:
56+
::
57+
58+
[EE, EN, EU, ET,
59+
NN, NU, NT,
60+
UU, UT,
61+
TT] (10 values in 1D array)
62+
5763
recognizing that the dop matrix is symmetric.
5864
5965
Returns
@@ -135,26 +141,32 @@ def splat_dop_matrix(dop_matrix):
135141
Splat the DOP matrix into a 1D array. Note that the dop matrix output
136142
is splatted across entries following
137143
the behavior below:
144+
::
145+
138146
[[EE, EN, EU, ET],
139147
[NE, NN, NU, NT],
140148
[UE, UN, UU, UT],
141149
[TE, TN, TU, TT]] (16 values in 2D array)
142-
is stored as
150+
151+
is stored as:
152+
::
153+
143154
[EE, EN, EU, ET,
144155
NN, NU, NT,
145156
UU, UT,
146-
TT] (10 values in 1D array),
157+
TT] (10 values in 1D array)
158+
147159
recognizing that the dop matrix is symmetric.
148160
149161
Parameters
150162
----------
151-
dop_matrix : np.ndarray (4, 4)
152-
DOP matrix in ENU coordinates.
163+
dop_matrix : np.ndarray
164+
DOP matrix in ENU coordinates of size (4, 4).
153165
154166
Returns
155167
-------
156-
dop_splat : np.ndarray (10,)
157-
DOP matrix splatted into a 1D array.
168+
dop_splat : np.ndarray
169+
DOP matrix splatted into a 1D array of size (10,).
158170
"""
159171

160172
# Splat the DOP matrix
@@ -168,26 +180,32 @@ def unsplat_dop_matrix(dop_splat):
168180
"""
169181
Un-splat the DOP matrix from a 1D array. Note that the dop matrix output
170182
is unsplatted across entries following the behavior below:
183+
::
184+
171185
[EE, EN, EU, ET,
172186
NN, NU, NT,
173187
UU, UT,
174188
TT] (10 values in 1D array)
189+
175190
is unsplatted to
191+
::
192+
176193
[[EE, EN, EU, ET],
177194
[NE, NN, NU, NT],
178195
[UE, UN, UU, UT],
179196
[TE, TN, TU, TT]] (16 values in 2D array)
197+
180198
recognizing that the dop matrix is symmetric.
181199
182200
Parameters
183201
----------
184-
dop_splat : np.ndarray (10,)
185-
DOP matrix splatted into a 1D array.
202+
dop_splat : np.ndarray
203+
DOP matrix splatted into a 1D array of size (10,).
186204
187205
Returns
188206
-------
189-
dop_matrix : np.ndarray (4, 4)
190-
DOP matrix in ENU coordinates.
207+
dop_matrix : np.ndarray
208+
DOP matrix in ENU coordinates of size (4, 4).
191209
"""
192210

193211
# Un-splat the DOP matrix
@@ -218,8 +236,8 @@ def calculate_enu_dop_matrix(derived):
218236
219237
Returns
220238
-------
221-
dop_matrix : np.ndarray (4, 4)
222-
DOP matrix.
239+
dop_matrix : np.ndarray
240+
DOP matrix of size (4, 4).
223241
"""
224242

225243
# Use the elevation and azimuth angles to get the ENU and Time matrix
@@ -242,8 +260,8 @@ def parse_dop(dop_matrix):
242260
243261
Parameters
244262
----------
245-
dop_matrix : np.ndarray (4, 4)
246-
DOP matrix in ENU coordinates.
263+
dop_matrix : np.ndarray
264+
DOP matrix in ENU coordinates of size (4, 4).
247265
248266
Returns
249267
-------
@@ -306,8 +324,8 @@ def _calculate_enut_matrix(derived):
306324
307325
Returns
308326
-------
309-
enut_matrix : np.ndarray (num_satellites, 4)
310-
Matrix of ENU and Time vectors.
327+
enut_matrix : np.ndarray
328+
Matrix of ENU and Time vectors of size (num_satellites, 4).
311329
312330
"""
313331
enu_unit_dir_mat = el_az_to_enu_unit_vector(derived['el_sv_deg'],

0 commit comments

Comments
 (0)