CSV2RSK.m
Arguments
Input
- Required-
fname - name of the csv file
-Optional-
model
: instrument model from which data was collected, default is `unknown`serialID
: serial ID of the instrument from which data was collected, default is 0.
Output
RSK -
rsk structure containing data from the csv file
The function reads a csv file into rsk structure in MATLAB. The header of the csv file must follow exactly the format below to make the function work:
"Time (ms)","Conductivity (mS/cm)","Temperature (°C)","Pressure (dbar)"
1564099200000,49.5392,21.8148,95.387
1564099200167,49.5725,21.8453,95.311
1564099200333,49.5948,21.8752,95.237
...
where the first column represents time stamp, which is milliseconds elapsed since Jan 1 1970 (i.e. unix time or POSIX time). Header for each column is comprised with channel name followed by space and unit (with parentheses) with double quotes.
Example:
rsk = CSV2RSK(filename);