• RSK


  • channel : ' ' (all channels default).
  • profile : [ ] (all profiles default).
  • direction : [ ] (both directions default).
  • outputdir : ' ' (current directory as default)
  • comment : ' '


  • CSV file(s)

RSK2CSV outputs channel data and metadata from the RSK structure into one or more CSV files. The CSV file header contains logger metadata, station metadata (see RSKaddmetadata).  The data table starts with a row of variable names and units above each column of channel data.  If the data has been parsed into profiles, then one file will be written for each profile. Furthermore, an extra column called 'cast_direction' will be included.  The column will contain 'd' or 'u' to indicate whether the sample is part of the downcast or upcast, respectively.

Users can customize which channel, profile for outputs, output directory and comments attached to the end of the header.

Example using RSK2CSV as below:

rsk = RSKopen(fname);
rsk = RSKreadprofiles(rsk);
RSK2CSV(rsk,'channel',{'Conductivity','Pressure','Dissolved O2'},'outputdir','/Users/decide/where','comment','Hey Jude');

Example of a CSV file created with RSK2CSV:

//Creator: RBR Ltd
//Create Time: 23-Jan-2018 09:49:17
//Instrument model firmware and serialID: RBRmaestro 12.03 80217
//Sample period: 0.167 second
//Processing history:
///Users/RZhang/code/rsk_files/080217_20150919_1417.rsk opened using RSKtools v2.1.0.
//Sea pressure calculated using an atmospheric pressure of 10.1325 dbar.
//Bottom depth:
//Date and Time:
//Weather conditions:
//Comment: Hey Jude

//Time(yyyy-mm-dd HH:MM:ss.FFF),  Conductivity(mS/cm),   Pressure(dbar),   Dissolved_O2(%)     
2015-09-19 08:32:16.000,           34.6058,           12.6400,          694.7396
2015-09-19 08:32:16.167,           34.6085,           12.4154,          682.4502
2015-09-19 08:32:16.333,           34.6130,           12.4157,          666.1949

The header also includes entries for station metadata. Some of these fields may be filled automatically with Ruskin annotations if they were added by the user. Alternatively, they can be populated with RSKaddmetadata.m.