read_ll3m
Read in data from a Little Leonardo data Logger.
Syntax
ncfile = read_ll3m(datapath,depid) % Matlab & Octave Y <- block_rms(X,n,nov)
Description
Read in data from a Little Leonardo data Logger.
Inputs
Input var | Description | Default value |
---|---|---|
datapath | Path to directory containing the Little Leonardo raw binary (*.obj) and text files. For example 'C:/tag/lleo/mn12_186a' | N/A |
depid | Deployment ID. This follows the same naming protocol as the DTag deployment naming protocol, for example mn12_186a. Where the first two characters indicate the species name (mn), the two digits immediately following indicate the year of the deployment (12 for 2012) followed by a underscore, next the Julian day of the deployment (186 for 4 July 2012), and finally a character indicating if it was the first or second deployment of the day (a in this case, i.e. the first deployment of the day. | N/A |
Outputs
Output var | Description | Units |
---|---|---|
ncfile | This functions generates a netCDF file called 'depid'_raw.nc containing the following variables: A Accelerometer data structure, M Magnetometer data structure, P Pressure sensor data structure, T Temperature sensor data structure, S Speed sensor (propeller) data structure, info Information structure for the deployment | N/A |
Notes & assumptions
Example
Matlab & Octave
datapath='C:\tagTools\testdata\mn12_186a' depid='mn12_186a' read_ll3m(datapath,depid) loadnc([depid '_raw'])
The workspace should now contain variables A, M, P, T, S and info each of which is a structure. e.g.
Matlab output
A = struct with fields: data: [1172115×3 double] sampling: 'regular' sampling_rate: 32 sampling_rate_unit: 'Hz' depid: 'mn12_186a' creation_date: '24-Jul-2017 12:40:14' history: 'read_ll3m' name: 'A' full_name: 'Acceleration' description: 'triaxial acceleration' unit: '1' unit_name: 'counts' unit_label: 'counts' column_name: 'x,y,z' frame: 'tag' axes: 'FRU' files: '20120704-57537-Mn-XXXX-U-NoName-Acceleration…'
Octave output
If your output looks like this in Octave:
A A = scalar structure containing the fields: data = 2355 2071 1923 2340 2052 1940 2324 2058 1961 ...... -- less -- (f)orward, (b)ack, (q)uit
You need to set struct_levels_to_print(0), and it should now list all the first level structure names, see below. For details and information about the Sensor Data structure.
struct_levels_to_print(0) A A = scalar structure containing the fields: data: 1172115x3 matrix sampling: 1x7 sq_string sampling_rate: 1x1 scalar sampling_rate_unit: 1x2 sq_string depid: 1x9 sq_string creation_date: 1x20 sq_string history: 1x9 sq_string name: 1x1 sq_string full_name: 1x12 sq_string description: 1x21 sq_string unit: 1x1 sq_string unit_name: 1x6 sq_string unit_label: 1x6 sq_string column_name: 1x5 sq_string frame: 1x3 sq_string axes: 1x3 sq_string files: 1x150 sq_string
R
About
bugs@animaltags.org Last modified: 10 May 2017