This function retrieves data from the rsk file and segmented into casts and stores it in the
data field. This function requires an RSK structure that contains a
profiles field with profiling metadata.
data field elements are segmented based on the metadata in the
profiles field; this field is organized by
downcast. Each cast direction contains vectors,
tend, which are the start time and end time of each profile.
From v2.2.0, the segmented
data field also adds
rsk.data.profilenumber field to indicate cast direction and profile sequence.
direction argument is
data field contains an element with all the samples between each set of
tend in the
data field elements are populated in chronological order from
tend from both
downcast, with the data elements alternating between downcasts and upcasts.
This function also adds an
order field which describes the cast direction order and
originalindex field which links between the metadata index in the
profiles field and
data field element.
If you select the first five profiles (
profile = 1:5) of upcasts, it will use the first five sets of
tend from the
RSK.profiles.upcast entries, as shown below.
If users prefer to split time series data in existing Matlab rsk structure into profiles, instead of directly reading profiles from the disk.
RSKtimeseries2profiles is recommended.