annotate wiki/AIMCDataFormat.wiki @ 434:e6ce337297a8
Created wiki page through web user interface.
author |
tom@acousticscale.org |
date |
Thu, 04 Nov 2010 18:22:42 +0000 |
parents |
|
children |
9f1a8d30c6da |
rev |
line source |
tom@434
|
1 #summary AIM-C simple data file format.
|
tom@434
|
2
|
tom@434
|
3 The module [http://code.google.com/p/aimc/source/browse/trunk/src/Modules/Output/FileOutputAIMC.cc FileOutputAIMC] provides data in a simple format which can be read by other programs.
|
tom@434
|
4
|
tom@434
|
5 The data is stored as 32-bit floats with the native byte-ordering of the machine the file was written on. Before the data, there is a simple header.
|
tom@434
|
6
|
tom@434
|
7 == Header format ==
|
tom@434
|
8 The first 20 bytes of the file contain the following fields:
|
tom@434
|
9
|
tom@434
|
10 32-bit unsigned integer: frame_count
|
tom@434
|
11 32-bit float: frame_period_ms
|
tom@434
|
12 32-bit unsigned integer: channel_count
|
tom@434
|
13 32-bit unsigned integer buffer_length
|
tom@434
|
14 32-bit float: sample_rate
|
tom@434
|
15
|
tom@434
|
16
|
tom@434
|
17
|
tom@434
|
18 == Reading the files using MATLAB ==
|
tom@434
|
19 Use [http://code.google.com/p/aimc/source/browse/trunk/matlab/AIMCread.m the MATLAB AIMCread function] to read the files.
|