@@ -46,15 +46,6 @@ stated so.
46
46
Definitions and Common Data Conventions
47
47
---------------------------------------
48
48
49
- All GUANO metadata must be persisted in big-endian format; multi-byte values
50
- are to be written such that the most significant byte has the lowest address
51
- and the least significant byte has the highest address. This is because files
52
- are written once, but read many times; by standardizing on an endianness we
53
- ease the burden on subsequent processing and analysis, regardless of hardware
54
- platform used for recording. This has no bearing on whether recorders choose
55
- to write little- or big-endian .WAV data, as specified in the .WAV (RIFF) file
56
- header; the GUANO metadata itself must be written big-endian.
57
-
58
49
All GUANO metadata must be persisted as UTF-8 Unicode string. This is a multi-
59
50
byte encoding which uses just a single byte for all "ASCII" data, but a
60
51
variable number of bytes for encoding "special" characters.
@@ -73,13 +64,9 @@ string "\n" as a newline. At this time, this specification makes no attempt
73
64
to define an escape for encoding the literal string "\n" with a meaning apart
74
65
from "newline".
75
66
76
- Binary field values should be encoded as Base64. However, Base64 enforces
77
- a maximum line length, and the GUANO metadata format thus far delimits fields
78
- by newline. Enforcing a short line length for potentially-large binary values
79
- would ease the development of reading implementations which must allocate
80
- memory to read in lines. What is the best way to support these multi-line,
81
- potentially large (perhaps megabytes in size for an embedded voice note, for
82
- example) binary values?
67
+ Binary field values should be encoded as Base64 strings as defined in
68
+ [ RFC 4648] ( https://www.ietf.org/rfc/rfc4648.txt ) . Newlines may not be inserted
69
+ into the data, and the "Base 64 Alphabet" must be used.
83
70
84
71
Extra whitespace may be used when formatting field names and values; whitespace
85
72
should be trimmed upon reading. This gives writing implementations freedom to
@@ -196,6 +183,12 @@ this list so that it isn't accidentally used by another manufacturer.
196
183
This reserved namespace is for meta-metadata pertaining specifically to the
197
184
GUANO metadata in use.
198
185
186
+ ** User**
187
+ Reserved namespace for user-defined fields.
188
+
189
+ ** Anabat**
190
+ Titley Scientific
191
+
199
192
** BAT**
200
193
Binary Acoustic Technologies
201
194
@@ -208,9 +201,6 @@ this list so that it isn't accidentally used by another manufacturer.
208
201
** SB**
209
202
SonoBat
210
203
211
- ** Anabat**
212
- Titley Scientific
213
-
214
204
** WAC**
215
205
Wildlife Acoustics
216
206
@@ -325,6 +315,9 @@ fields in a compliant GUANO file.
325
315
Specification History
326
316
---------------------
327
317
318
+ 2016-03-02 | 0.0.3 | Clarified Base64 encoding of binary data. Added ` User ` namespace. Removed
319
+ mention of UTF-8 endianness.
320
+
328
321
2016-01-30 | 0.0.2 | Added well-known fields: Hardware Version, Firmware Version, Temperature, Humidity.
329
322
Clarified Loc Position description.
330
323
@@ -334,4 +327,6 @@ Specification History
334
327
Notes
335
328
-----
336
329
337
- * The use of manufacturer or product names in this specification does not imply endorsement, support, or any other association by those manufacturers or products; nor does it imply compliance with the GUANO specification.
330
+ * The use of manufacturer or product names in this specification does not imply endorsement,
331
+ support, or any other association by those manufacturers or products; nor does it imply compliance
332
+ with the GUANO specification.
0 commit comments