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