dbdreader 0.5.7__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dbdreader-0.5.7 → dbdreader-0.6.0}/MANIFEST.in +1 -1
- {dbdreader-0.5.7/dbdreader.egg-info → dbdreader-0.6.0}/PKG-INFO +113 -90
- dbdreader-0.5.7/PKG-INFO → dbdreader-0.6.0/README.md +104 -101
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/__init__.py +7 -5
- dbdreader-0.6.0/dbdreader/_dbdreader.py +294 -0
- dbdreader-0.6.0/dbdreader/data/02380107.ecd +0 -0
- dbdreader-0.6.0/dbdreader/data/02380108.ecd +0 -0
- dbdreader-0.6.0/dbdreader/data/02450133.tcd +0 -0
- dbdreader-0.6.0/dbdreader/data/02450137.tcd +0 -0
- dbdreader-0.6.0/dbdreader/data/amadeus-2014-203-00-000.SBD +0 -0
- dbdreader-0.6.0/dbdreader/data/amadeus-2014-203-00-000.TBD +0 -0
- dbdreader-0.6.0/dbdreader/data/cac/39b2c12e.cac +111 -0
- dbdreader-0.6.0/dbdreader/data/cac/5fbf5947.cac +99 -0
- dbdreader-0.6.0/dbdreader/data/cac/6f9a08d3.cac +99 -0
- dbdreader-0.6.0/dbdreader/data/cac/8d31d0c8.cac +51 -0
- dbdreader-0.6.0/dbdreader/data/dbd2asc_output.txt +25 -0
- dbdreader-0.6.0/dbdreader/data/hal_1002-2024-183-4-4.sbd +0 -0
- dbdreader-0.6.0/dbdreader/data/hal_1002-2024-183-4-4.tbd +0 -0
- dbdreader-0.6.0/dbdreader/data/hal_1002-2024-183-4-6.tbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/dbdreader.py +460 -144
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/decompress.py +81 -6
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/scripts.py +14 -10
- dbdreader-0.5.7/README.rst → dbdreader-0.6.0/dbdreader.egg-info/PKG-INFO +123 -85
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader.egg-info/SOURCES.txt +18 -4
- dbdreader-0.6.0/dbdreader.egg-info/requires.txt +3 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/extension/dbdreader.c +73 -66
- {dbdreader-0.5.7 → dbdreader-0.6.0}/extension/decompress.c +54 -35
- {dbdreader-0.5.7 → dbdreader-0.6.0}/extension/include/dbdreader.h +1 -1
- {dbdreader-0.5.7 → dbdreader-0.6.0}/extension/include/decompress.h +6 -1
- {dbdreader-0.5.7 → dbdreader-0.6.0}/extension/py_dbdreader.c +18 -4
- dbdreader-0.6.0/pyproject.toml +78 -0
- dbdreader-0.5.7/dbdreader.egg-info/requires.txt → dbdreader-0.6.0/requirements.txt +2 -0
- dbdreader-0.6.0/setup.py +94 -0
- dbdreader-0.6.0/tests/test_dbdreader.py +693 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/tests/test_decompress.py +72 -46
- dbdreader-0.5.7/requirements.txt +0 -4
- dbdreader-0.5.7/setup.py +0 -133
- dbdreader-0.5.7/tests/dbd_test.py +0 -50
- dbdreader-0.5.7/tests/dbd_test_2.py +0 -63
- dbdreader-0.5.7/tests/dbdreader_test.py +0 -478
- {dbdreader-0.5.7 → dbdreader-0.6.0}/COPYING +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/COPYRIGHT +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/INSTALL.rst +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/LICENSE +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600000.dcd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600000.ebd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600000.ecd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600000.mcg +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600000.mlg +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600001.dbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600001.dcd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600001.ebd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/01600001.ecd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-000.dbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-000.ebd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-000.sbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-000.tbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-001.sbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-001.tbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-002.sbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/amadeus-2014-204-05-002.tbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/ammonite-2008-028-01-000.mbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/06a36d4e.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/06a36d4e.ccc +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/093bd5ed.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/0f682cb2.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/468fd1be.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/61b1780f.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/813b137d.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/92610b65.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/c4ec741e.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/d6f44165.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/daad1b20.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/daad1b20.ccc +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac/dc76ebd5.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/cac_missing/d6f44165.cac +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/electa-2023-143-00-050.sbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/electa-2023-143-00-050.tbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/empty-2014-204-05-000.dbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/invalid_encoding-2014-204-05-000.dbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/sebastian-2014-204-05-000.dbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/sebastian-2014-204-05-000.ebd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/sebastian-2014-204-05-001.dbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/sebastian-2014-204-05-001.ebd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/unit_887-2021-321-3-0.sbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader/data/unit_887-2021-321-3-0.tbd +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader.egg-info/dependency_links.txt +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader.egg-info/entry_points.txt +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/dbdreader.egg-info/top_level.txt +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/examples/read_multiple_dbd_files.py +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/examples/read_single_dbd_file.py +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/lz4/include/lz4.h +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/lz4/lz4.c +0 -0
- {dbdreader-0.5.7 → dbdreader-0.6.0}/setup.cfg +0 -0
|
@@ -1,66 +1,103 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: dbdreader
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.6.0
|
|
4
4
|
Summary: A python module to access binary data files generated by Teledyne WebbResearch gliders
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
Author-email: Lucas Merckelbach <lucas.merckelbach@hereon.de>
|
|
6
|
+
License: GPL-3.0
|
|
7
|
+
Project-URL: Homepage, https://dbdreader.readthedocs.io/en/latest/
|
|
8
8
|
Classifier: Programming Language :: Python :: 3
|
|
9
9
|
Classifier: Intended Audience :: Science/Research
|
|
10
10
|
Classifier: License :: OSI Approved :: GNU General Public License v3 (GPLv3)
|
|
11
11
|
Classifier: Operating System :: POSIX
|
|
12
|
-
|
|
12
|
+
Requires-Python: >=3.10
|
|
13
|
+
Description-Content-Type: text/markdown
|
|
13
14
|
License-File: LICENSE
|
|
14
15
|
License-File: COPYING
|
|
16
|
+
Requires-Dist: lz4>=4.4.5
|
|
17
|
+
Requires-Dist: numpy>=2.2.6
|
|
18
|
+
Requires-Dist: scipy>=1.15.3
|
|
19
|
+
Dynamic: license-file
|
|
15
20
|
|
|
16
|
-
|
|
21
|
+
[](https://pypi.org/project/dbdreader)
|
|
22
|
+
[](https://dbdreader.readthedocs.io/en/latest/)
|
|
23
|
+
[](https://www.gnu.org/licenses/gpl-3.0)
|
|
17
24
|
|
|
18
|
-
DBDREADER
|
|
19
|
-
|
|
25
|
+
# DBDREADER
|
|
26
|
+
|
|
27
|
+
## Synopsis
|
|
20
28
|
|
|
21
|
-
Synopsis
|
|
22
|
-
--------
|
|
23
29
|
Slocum ocean gliders are autonomous underwater vehicles, used for
|
|
24
30
|
making oceanographic measurements. The data that these devices and
|
|
25
31
|
their sensors collect, are stored in binary data files. The python
|
|
26
32
|
module *dbdreader* provides the utilities to extract the data from the
|
|
27
33
|
binary files, so that they can be further analysed.
|
|
28
34
|
|
|
29
|
-
Change log
|
|
30
|
-
|
|
35
|
+
## Change log
|
|
36
|
+
|
|
37
|
+
### Version 6.0.0
|
|
38
|
+
|
|
39
|
+
* Offers a python only implementation, alongside the C-extension to
|
|
40
|
+
read the binary files. At the expense of processing speed, no
|
|
41
|
+
compiler is required to use this package.
|
|
42
|
+
|
|
43
|
+
* A github workflow is implemented that generates pre-compiled wheels
|
|
44
|
+
for linux and windows platforms for python version 3.10, 3.11, 3.12
|
|
45
|
+
and 3.13.
|
|
46
|
+
|
|
47
|
+
* Some speed improvements of the C-extenstion
|
|
48
|
+
|
|
49
|
+
### version 0.5.9
|
|
50
|
+
|
|
51
|
+
* Handles reading errors that can occur when a compressed file turns
|
|
52
|
+
out to be corrupted.
|
|
31
53
|
|
|
32
|
-
|
|
54
|
+
### version 0.5.8
|
|
55
|
+
|
|
56
|
+
* Changes default location for cache files on linux from
|
|
57
|
+
`$HOME/.dbdreader` to `$HOME/.local/share/dbdreader`
|
|
58
|
+
|
|
59
|
+
* Introduces new class DBDCache to manage the location where cache
|
|
60
|
+
files are looked up. Constructing an object with an arguments (re-)sets a
|
|
61
|
+
default path, avoiding the need to use the keyword cacheDir when
|
|
62
|
+
creating objects of DBD and MultiDBD classes.
|
|
63
|
+
|
|
64
|
+
* Fixes an issue with MultiDBD when a parameter is requested that is
|
|
65
|
+
not present in all files, but in at least one. The get() method
|
|
66
|
+
returns just those data that are present. In case of get_sync and
|
|
67
|
+
friends, data are interpolated if possible, or padded with nans.
|
|
68
|
+
|
|
69
|
+
### Version 0.5.7
|
|
33
70
|
|
|
34
71
|
* Drops dependency on python 3.10+, introduced in 0.5.6, and should
|
|
35
72
|
work still with python 3.9.
|
|
36
73
|
|
|
37
|
-
Version 0.5.6
|
|
74
|
+
### Version 0.5.6
|
|
38
75
|
|
|
39
76
|
* Moves data directory under dbdreader, making these files accessible
|
|
40
77
|
after an pip install
|
|
41
78
|
|
|
42
|
-
Version 0.5.5
|
|
79
|
+
### Version 0.5.5
|
|
43
80
|
|
|
44
81
|
* Makes MultiDBD's get_CTD_sync method compatible with RBR CTD data.
|
|
45
82
|
|
|
46
|
-
Version 0.5.4
|
|
83
|
+
### Version 0.5.4
|
|
47
84
|
|
|
48
85
|
* Adds support for reading compressed data files for windows platform.
|
|
49
86
|
* Improved building environment
|
|
50
87
|
|
|
51
|
-
Version 0.5.1
|
|
88
|
+
### Version 0.5.1
|
|
52
89
|
|
|
53
90
|
* Adds support for reading compressed data files
|
|
54
|
-
* dbdrename
|
|
91
|
+
* dbdrename now accepts -x and -X options to rename compressed data files as uncompressed data files
|
|
55
92
|
|
|
56
|
-
Version 0.4.15
|
|
93
|
+
### Version 0.4.15
|
|
57
94
|
|
|
58
|
-
* Modifies sorting key algorithm to the DBDList class. This fixes a
|
|
59
|
-
bug when glider data filenames are composed of a glider name that
|
|
95
|
+
* Modifies sorting key algorithm to the DBDList class. This fixes a
|
|
96
|
+
bug when glider data filenames are composed of a glider name that
|
|
60
97
|
contains a dash. For example, filenames such as hereon-amadeus-2019-3-1.sbd
|
|
61
98
|
would fail, but are valid now.
|
|
62
99
|
|
|
63
|
-
Version 0.4.14
|
|
100
|
+
### Version 0.4.14
|
|
64
101
|
|
|
65
102
|
* Adds a new option to the get() method of the MultiDBD class, where
|
|
66
103
|
if the keyword include_sources=True, for each parameter an
|
|
@@ -70,7 +107,7 @@ Version 0.4.14
|
|
|
70
107
|
|
|
71
108
|
This merges the (modified) pull request #14 by MCazaly.
|
|
72
109
|
|
|
73
|
-
Version 0.4.13
|
|
110
|
+
### Version 0.4.13
|
|
74
111
|
|
|
75
112
|
* Modifies behaviour when the user requests a parameter that has no
|
|
76
113
|
data. If the requested parameter is not a valid glider sensor name,
|
|
@@ -80,13 +117,13 @@ Version 0.4.13
|
|
|
80
117
|
This behaviour fixes a bug for MultiDBD:
|
|
81
118
|
each file opened with MultiDBD would fail to produce any data if one or
|
|
82
119
|
more parameters that are asked for, are not present in the file.
|
|
83
|
-
|
|
120
|
+
|
|
84
121
|
New behaviour returns data for the exisiting parameters (only); empty
|
|
85
122
|
array for the missing parameters (or nans if return_nans=True)
|
|
86
123
|
|
|
87
124
|
Concludes pull request #16 by jklymak.
|
|
88
125
|
|
|
89
|
-
Version 0.4.12
|
|
126
|
+
### Version 0.4.12
|
|
90
127
|
|
|
91
128
|
* PatternSelect now accepts the option of a non-standard cache
|
|
92
129
|
directory.
|
|
@@ -94,9 +131,9 @@ Version 0.4.12
|
|
|
94
131
|
|
|
95
132
|
* MultiDBD's get_sync() now returns nan's for those parameters for
|
|
96
133
|
which no data exist, provided that at least one of the requested
|
|
97
|
-
parameters contains data.
|
|
98
|
-
|
|
99
|
-
Version 0.4.11
|
|
134
|
+
parameters contains data.
|
|
135
|
+
|
|
136
|
+
### Version 0.4.11
|
|
100
137
|
|
|
101
138
|
* Version 0.4.9 introduced a bug that in some rare circumstances caused
|
|
102
139
|
segmentation faults. This has been fixed.
|
|
@@ -106,8 +143,7 @@ Version 0.4.11
|
|
|
106
143
|
cache file, detailed information can be obtained from the .data
|
|
107
144
|
property of the exception instance.
|
|
108
145
|
|
|
109
|
-
|
|
110
|
-
Version 0.4.10
|
|
146
|
+
### Version 0.4.10
|
|
111
147
|
|
|
112
148
|
* Includes pull request by jklymak, which allows dbdreader to deal
|
|
113
149
|
with empty files, and files capitalised file extensions, as well as
|
|
@@ -121,65 +157,61 @@ Version 0.4.10
|
|
|
121
157
|
pattern. An error is raised if pattern is specified explicitly when
|
|
122
158
|
filenames is given as a string.
|
|
123
159
|
|
|
124
|
-
Version 0.4.9
|
|
160
|
+
### Version 0.4.9
|
|
125
161
|
|
|
126
162
|
* Bug fix for handling inf values correctly (issue #8). Thanks to jr3cermak for spotting this bug.
|
|
127
163
|
* Bug fix for incorrect behaviour when reading the time parameter explicitly for example xxx.get("m_present_time").
|
|
128
164
|
|
|
129
|
-
Version 0.4.8
|
|
165
|
+
### Version 0.4.8
|
|
130
166
|
|
|
131
167
|
* Support for reading {demnst}bd files from G3S gliders (issue #6). (Thanks to Owain Jones)
|
|
132
168
|
|
|
133
169
|
* Bug fix for correctly throwing an exception when cache file is missing(issue #5)
|
|
134
170
|
|
|
135
|
-
Version 0.4.7
|
|
171
|
+
### Version 0.4.7
|
|
136
172
|
|
|
137
173
|
* Bug fix for reading dbd files on Windows.
|
|
138
174
|
|
|
139
|
-
* a wheel provided for CPython 3.9 on Windows 64 bit.
|
|
175
|
+
* a wheel provided for CPython 3.9 on Windows 64 bit.
|
|
140
176
|
|
|
141
|
-
Version 0.4.6
|
|
177
|
+
### Version 0.4.6
|
|
142
178
|
|
|
143
179
|
* Added get_CTD_sync, a convenience method to retrieve CTD data, and other parameters mapped on the CTD time stamps. Also ensures time stamps are monotonically increasing.
|
|
144
180
|
|
|
145
181
|
* Adds bounds to what values of latitude and longitude are considered valid.
|
|
146
182
|
|
|
147
|
-
Version 0.4.5
|
|
183
|
+
### Version 0.4.5
|
|
148
184
|
|
|
149
185
|
* dbdreader now ignores the first line of data in each binary file
|
|
150
|
-
|
|
151
|
-
* dbdreader checks whether the value of the parameters read are finite, ignoring them if they are not.
|
|
152
|
-
|
|
153
186
|
|
|
187
|
+
* dbdreader checks whether the value of the parameters read are finite, ignoring them if they are not.
|
|
154
188
|
|
|
155
|
-
Installation (linux)
|
|
156
|
-
--------------------
|
|
189
|
+
## Installation (linux)
|
|
157
190
|
|
|
158
191
|
The python module *dbdreader* can be installed from source, using the
|
|
159
192
|
standard method to install python code. Note that this method requires
|
|
160
193
|
an C-extension to be build. (The actual reading from files is done in
|
|
161
194
|
C for speed.) In order to build the extension successfully, you would
|
|
162
195
|
need a C-compiler. On Linux, this can be gcc, with supporting
|
|
163
|
-
development/header files for python. On Fedora you would do
|
|
164
|
-
install python3-devel
|
|
196
|
+
development/header files for python. On Fedora you would do `sudo dnf
|
|
197
|
+
install python3-devel`, or `sudo apt-get install python3-dev` on
|
|
165
198
|
Ubuntu.
|
|
166
199
|
|
|
167
200
|
Furthermore, as of version 0.5, which adds support for reading
|
|
168
201
|
compressed files, a dependency on the lz4 library is introduced. If
|
|
169
202
|
available, the system-wide library will be used (recommended
|
|
170
203
|
approach). Alternatively, the lz4.[ch] files from the original source
|
|
171
|
-
(https://github.com/lz4/lz4), and included in this package, will be
|
|
204
|
+
(<https://github.com/lz4/lz4>), and included in this package, will be
|
|
172
205
|
compiled into the C-extension. To install the system-wide lz4 library
|
|
173
|
-
on Fedora you would do
|
|
174
|
-
Ubuntu this can be achieved by
|
|
175
|
-
liblz4-1
|
|
206
|
+
on Fedora you would do `sudo dnf install lz4-devel lz4-libs`. On
|
|
207
|
+
Ubuntu this can be achieved by `sudo apt-get install liblz4-dev
|
|
208
|
+
liblz4-1`.
|
|
176
209
|
|
|
177
|
-
Alternatively, dbdreader can also be installed from PyPi, using
|
|
178
|
-
install dbdreader
|
|
210
|
+
Alternatively, dbdreader can also be installed from PyPi, using `pip3
|
|
211
|
+
install dbdreader`.
|
|
179
212
|
|
|
213
|
+
## Installation on Windows
|
|
180
214
|
|
|
181
|
-
Installation on Windows
|
|
182
|
-
-----------------------
|
|
183
215
|
If you want to install dbdreader from source, you will need a C
|
|
184
216
|
compiler as well to compile the C-extension. Besides the Python
|
|
185
217
|
environment you will need to install the Microsoft Visual Studio
|
|
@@ -188,29 +220,29 @@ you tick the box *python development* during the setup. Once installed
|
|
|
188
220
|
dbdreader can be installed, and the C-extension should be compiled
|
|
189
221
|
automatically.
|
|
190
222
|
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
dbdreader`` also requires the C compiler. For Python version 3.9,
|
|
223
|
+
Installiation using pip, for example as in `py -m pip install
|
|
224
|
+
dbdreader` also requires the C compiler. For Python version 3.9,
|
|
194
225
|
however, a wheel is provided, which can be installed adding the option
|
|
195
|
-
|
|
226
|
+
`--only-binary :all:` to the pip command:
|
|
227
|
+
|
|
228
|
+
```
|
|
229
|
+
$ pip install --only-binary :all: dbdreader
|
|
230
|
+
```
|
|
196
231
|
|
|
197
|
-
|
|
232
|
+
## Documentation
|
|
198
233
|
|
|
234
|
+
Comprehensive documentation is provided at <https://dbdreader.readthedocs.io/en/latest/>
|
|
199
235
|
|
|
200
|
-
|
|
201
|
-
-------------
|
|
202
|
-
Comprehensive documentation is provided at https://dbdreader.readthedocs.io/en/latest/
|
|
236
|
+
## Quick-start
|
|
203
237
|
|
|
204
|
-
Quick-start
|
|
205
|
-
-----------
|
|
206
238
|
For the impatient...
|
|
207
239
|
|
|
208
240
|
The dbdreader module implements a class DBD() which provides the
|
|
209
241
|
machinery to read a single dbd file. The most commonly used methods
|
|
210
242
|
are:
|
|
211
243
|
|
|
212
|
-
* get(parametername)
|
|
213
|
-
* get_sync(parametername,
|
|
244
|
+
* `get(parametername)`
|
|
245
|
+
* `get_sync(parametername, *other_parameternames)`
|
|
214
246
|
|
|
215
247
|
The first method returs a tuple with time and values for requested
|
|
216
248
|
parameter. The second method, returns a tuple with time and values of
|
|
@@ -222,40 +254,31 @@ number of them. This interface is implemented by the MultiDBD
|
|
|
222
254
|
class. Files can either be specified as a list of filenames, or as a
|
|
223
255
|
pattern using wildcards.
|
|
224
256
|
|
|
225
|
-
Examples
|
|
226
|
-
^^^^^^^^
|
|
257
|
+
### Examples
|
|
227
258
|
|
|
228
|
-
To read a single file
|
|
259
|
+
To read a single file:
|
|
229
260
|
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
261
|
+
```python
|
|
262
|
+
>>> dbd = DBD("00010010.dbd")
|
|
263
|
+
>>> t, pitch = dbd.get("m_pitch")
|
|
264
|
+
>>> t, hdg, ptch, roll = dbd.get_sync("m_heading", "m_pitch", "m_roll")
|
|
265
|
+
```
|
|
233
266
|
|
|
234
|
-
Or, doing the same, but using both dbd and ebd files
|
|
235
|
-
|
|
236
|
-
>>> dbd = DBD(pattern="00010010.[de]bd")
|
|
237
|
-
>>> t, pitch = dbd.get("m_pitch")
|
|
238
|
-
>>> t, hdg, ptch, roll = dbd.get_sync("m_heading", "m_pitch", "m_roll")
|
|
239
|
-
>>> t, p_ctd, p_nav = dbd.get_sync("sci_water_pressure", "m_water_pressure")
|
|
267
|
+
Or, doing the same, but using both dbd and ebd files:
|
|
240
268
|
|
|
241
|
-
|
|
269
|
+
```python
|
|
270
|
+
>>> dbd = DBD(pattern="00010010.[de]bd")
|
|
271
|
+
>>> t, pitch = dbd.get("m_pitch")
|
|
272
|
+
>>> t, hdg, ptch, roll = dbd.get_sync("m_heading", "m_pitch", "m_roll")
|
|
273
|
+
>>> t, p_ctd, p_nav = dbd.get_sync("sci_water_pressure", "m_water_pressure")
|
|
274
|
+
```
|
|
275
|
+
|
|
276
|
+
## Python 2
|
|
242
277
|
|
|
243
|
-
Python 2
|
|
244
|
-
--------
|
|
245
278
|
Python 2.7 is not supported anymore. However, you should be able to
|
|
246
279
|
make the code able to run on python2.7 using the *future* package.
|
|
247
280
|
|
|
248
281
|
* pip install future
|
|
249
282
|
* pasteurize dbdreader.
|
|
250
283
|
|
|
251
|
-
For details see http://python-future.org/pasteurize.html
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
.. |PyPI version| image:: https://badgen.net/pypi/v/dbdreader
|
|
255
|
-
:target: https://pypi.org/project/dbdreader
|
|
256
|
-
.. |Docs badge| image:: https://readthedocs.org/projects/dbdreader/badge/?version=latest
|
|
257
|
-
:target: https://dbdreader.readthedocs.io/en/latest/
|
|
258
|
-
.. |License| image:: https://img.shields.io/badge/License-GPLv3-blue.svg
|
|
259
|
-
:target: https://www.gnu.org/licenses/gpl-3.0
|
|
260
|
-
|
|
261
|
-
|
|
284
|
+
For details see <http://python-future.org/pasteurize.html>.
|