Skip to content

Commit e01a607

Browse files
committed
Updated docstrings in sp3.py and clk.py
1 parent 480fc25 commit e01a607

4 files changed

Lines changed: 26 additions & 24 deletions

File tree

docs/source/requirements.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
alabaster==0.7.13 ; python_version >= "3.8" and python_version < "3.12"
22
anyio==3.7.1 ; python_version >= "3.8" and python_version < "3.12"
3-
appnope==0.1.3 ; python_version >= "3.8" and python_version < "3.12" and (platform_system == "Darwin" or sys_platform == "darwin")
3+
appnope==0.1.3 ; python_version >= "3.8" and python_version < "3.12" and platform_system == "Darwin" or python_version >= "3.8" and python_version < "3.12" and sys_platform == "darwin"
44
argon2-cffi-bindings==21.2.0 ; python_version >= "3.8" and python_version < "3.12"
55
argon2-cffi==21.3.0 ; python_version >= "3.8" and python_version < "3.12"
66
arrow==1.2.3 ; python_version >= "3.8" and python_version < "3.12"
@@ -14,7 +14,7 @@ bleach==6.0.0 ; python_version >= "3.8" and python_version < "3.12"
1414
certifi==2023.7.22 ; python_version >= "3.8" and python_version < "3.12"
1515
cffi==1.15.1 ; python_version >= "3.8" and python_version < "3.12"
1616
charset-normalizer==3.2.0 ; python_version >= "3.8" and python_version < "3.12"
17-
colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.12" and (sys_platform == "win32" or platform_system == "Windows")
17+
colorama==0.4.6 ; python_version >= "3.8" and python_version < "3.12" and sys_platform == "win32" or python_version >= "3.8" and python_version < "3.12" and platform_system == "Windows"
1818
comm==0.1.4 ; python_version >= "3.8" and python_version < "3.12"
1919
contourpy==1.1.0 ; python_version >= "3.8" and python_version < "3.12"
2020
coverage[toml]==7.2.7 ; python_version >= "3.8" and python_version < "3.12"
@@ -77,7 +77,7 @@ ncompress==1.0.1 ; python_version >= "3.8" and python_version < "3.12"
7777
nest-asyncio==1.5.7 ; python_version >= "3.8" and python_version < "3.12"
7878
notebook-shim==0.2.3 ; python_version >= "3.8" and python_version < "3.12"
7979
notebook==6.5.5 ; python_version >= "3.8" and python_version < "3.12"
80-
numpy==1.24.4 ; python_version >= "3.8" and python_version < "3.12"
80+
numpy==1.24.4 ; python_version < "3.12" and python_version >= "3.8"
8181
overrides==7.3.1 ; python_version >= "3.8" and python_version < "3.12"
8282
packaging==23.1 ; python_version >= "3.8" and python_version < "3.12"
8383
pandas==2.0.3 ; python_version >= "3.8" and python_version < "3.12"
@@ -94,7 +94,7 @@ pockets==0.9.1 ; python_version >= "3.8" and python_version < "3.12"
9494
prometheus-client==0.17.1 ; python_version >= "3.8" and python_version < "3.12"
9595
prompt-toolkit==3.0.39 ; python_version >= "3.8" and python_version < "3.12"
9696
psutil==5.9.5 ; python_version >= "3.8" and python_version < "3.12"
97-
ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "3.12" and (os_name != "nt" or sys_platform != "win32")
97+
ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "3.12" and os_name != "nt" or python_version >= "3.8" and python_version < "3.12" and sys_platform != "win32"
9898
pure-eval==0.2.2 ; python_version >= "3.8" and python_version < "3.12"
9999
py==1.11.0 ; python_version >= "3.8" and python_version < "3.12" and implementation_name == "pypy"
100100
pycparser==2.21 ; python_version >= "3.8" and python_version < "3.12"
@@ -141,7 +141,7 @@ stack-data==0.6.2 ; python_version >= "3.8" and python_version < "3.12"
141141
tenacity==8.2.2 ; python_version >= "3.8" and python_version < "3.12"
142142
terminado==0.17.1 ; python_version >= "3.8" and python_version < "3.12"
143143
tinycss2==1.2.1 ; python_version >= "3.8" and python_version < "3.12"
144-
tomli==2.0.1 ; python_version >= "3.8" and python_version < "3.11"
144+
tomli==2.0.1 ; python_version >= "3.8" and python_full_version <= "3.11.0a6"
145145
tomlkit==0.12.1 ; python_version >= "3.8" and python_version < "3.12"
146146
tornado==6.3.2 ; python_version >= "3.8" and python_version < "3.12"
147147
tqdm==4.65.0 ; python_version >= "3.8" and python_version < "3.12"

gnss_lib_py/parsers/clk.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Functions to process .clk and .CLK precise clock product files.
1+
"""Functions to process .clk precise clock product files.
22
33
"""
44

@@ -112,16 +112,18 @@ def extract_clk(self, gnss_sv_id, sidx, ipos = 10, \
112112
Parameters
113113
----------
114114
gnss_sv_id : string
115-
PRN of satellite for which position should be determined.
115+
Constellations and SV id of satellite for which position is
116+
to be determined.
117+
See standard nomenclature reference for more details.
116118
sidx : int
117119
Nearest index within clk time series around which interpolated
118-
function needs to be centered
120+
function needs to be centered.
119121
ipos : int
120122
No. of data points from clk data on either side of sidx
121-
that will be used for computing interpolated function
123+
that will be used for computing interpolated function.
122124
method : string
123125
Type of interpolation method used for clk data (the default is
124-
CubicSpline, which depicts third-order polynomial)
126+
CubicSpline, which depicts third-order polynomial).
125127
verbose : bool
126128
If true, prints extra debugging statements.
127129

gnss_lib_py/parsers/sp3.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Functions to process .sp3 or .SP3 precise orbit files.
1+
"""Functions to process .sp3 precise orbit files.
22
33
"""
44

@@ -18,12 +18,12 @@
1818

1919

2020
class Sp3(NavData):
21-
"""sp3 specific loading and preprocessing for any GNSS constellation
21+
"""sp3 specific loading and preprocessing for any GNSS constellation.
2222
2323
Parameters
2424
----------
2525
input_path : string or path-like
26-
Path to sp3 file
26+
Path to sp3 file.
2727
2828
Notes
2929
-----
@@ -112,13 +112,13 @@ def extract_sp3(self, gnss_sv_id, sidx, ipos = 10, \
112112
PRN of satellite for which position should be determined.
113113
sidx : int
114114
Nearest index within sp3 time series around which interpolated
115-
function needs to be centered
115+
function needs to be centered.
116116
ipos : int
117117
No. of data points from sp3 data on either side of sidx
118-
that will be used for computing interpolated function
118+
that will be used for computing interpolated function.
119119
method : string
120120
Type of interpolation method used for sp3 data (the default is
121-
CubicSpline, which depicts third-order polynomial)
121+
CubicSpline, which depicts third-order polynomial).
122122
verbose : bool
123123
If true, prints extra debugging statements.
124124
@@ -164,16 +164,16 @@ def sp3_snapshot(self, func_satpos, cxtime, hstep = 5e-1,
164164
----------
165165
func_satpos : np.ndarray
166166
Instance with 3-D array of scipy.interpolate.interpolate.interp1d
167-
that is loaded with .sp3 data
167+
that is loaded with .sp3 data.
168168
cxtime : float
169169
Time at which the satellite 3-D position and velocity needs to be
170-
computed, given 3-D array of interpolated functions
170+
computed, given 3-D array of interpolated functions.
171171
hstep : float
172172
Step size in milliseconds used to computing 3-D velocity of any
173-
given satellite using central differencing the default is 5e-1)
173+
given satellite using central differencing the default is 5e-1).
174174
method : string
175175
Type of interpolation method used for sp3 data (the default is
176-
CubicSpline, which depicts third-order polynomial)
176+
CubicSpline, which depicts third-order polynomial).
177177
178178
Returns
179179
-------

requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
anyio==3.7.1 ; python_version >= "3.8" and python_version < "3.12"
2-
appnope==0.1.3 ; python_version >= "3.8" and python_version < "3.12" and (platform_system == "Darwin" or sys_platform == "darwin")
2+
appnope==0.1.3 ; python_version >= "3.8" and python_version < "3.12" and platform_system == "Darwin" or python_version >= "3.8" and python_version < "3.12" and sys_platform == "darwin"
33
argon2-cffi-bindings==21.2.0 ; python_version >= "3.8" and python_version < "3.12"
44
argon2-cffi==21.3.0 ; python_version >= "3.8" and python_version < "3.12"
55
arrow==1.2.3 ; python_version >= "3.8" and python_version < "3.12"
@@ -71,7 +71,7 @@ ncompress==1.0.1 ; python_version >= "3.8" and python_version < "3.12"
7171
nest-asyncio==1.5.7 ; python_version >= "3.8" and python_version < "3.12"
7272
notebook-shim==0.2.3 ; python_version >= "3.8" and python_version < "3.12"
7373
notebook==6.5.5 ; python_version >= "3.8" and python_version < "3.12"
74-
numpy==1.24.4 ; python_version >= "3.8" and python_version < "3.12"
74+
numpy==1.24.4 ; python_version < "3.12" and python_version >= "3.8"
7575
overrides==7.3.1 ; python_version >= "3.8" and python_version < "3.12"
7676
packaging==23.1 ; python_version >= "3.8" and python_version < "3.12"
7777
pandas==2.0.3 ; python_version >= "3.8" and python_version < "3.12"
@@ -87,7 +87,7 @@ pluggy==1.2.0 ; python_version >= "3.8" and python_version < "3.12"
8787
prometheus-client==0.17.1 ; python_version >= "3.8" and python_version < "3.12"
8888
prompt-toolkit==3.0.39 ; python_version >= "3.8" and python_version < "3.12"
8989
psutil==5.9.5 ; python_version >= "3.8" and python_version < "3.12"
90-
ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "3.12" and (os_name != "nt" or sys_platform != "win32")
90+
ptyprocess==0.7.0 ; python_version >= "3.8" and python_version < "3.12" and os_name != "nt" or python_version >= "3.8" and python_version < "3.12" and sys_platform != "win32"
9191
pure-eval==0.2.2 ; python_version >= "3.8" and python_version < "3.12"
9292
py==1.11.0 ; python_version >= "3.8" and python_version < "3.12" and implementation_name == "pypy"
9393
pycparser==2.21 ; python_version >= "3.8" and python_version < "3.12"
@@ -123,7 +123,7 @@ stack-data==0.6.2 ; python_version >= "3.8" and python_version < "3.12"
123123
tenacity==8.2.2 ; python_version >= "3.8" and python_version < "3.12"
124124
terminado==0.17.1 ; python_version >= "3.8" and python_version < "3.12"
125125
tinycss2==1.2.1 ; python_version >= "3.8" and python_version < "3.12"
126-
tomli==2.0.1 ; python_version >= "3.8" and python_version < "3.11"
126+
tomli==2.0.1 ; python_version >= "3.8" and python_full_version <= "3.11.0a6"
127127
tomlkit==0.12.1 ; python_version >= "3.8" and python_version < "3.12"
128128
tornado==6.3.2 ; python_version >= "3.8" and python_version < "3.12"
129129
traitlets==5.9.0 ; python_version >= "3.8" and python_version < "3.12"

0 commit comments

Comments
 (0)