RSKgenerate2D.m
Arguments
Input
-Required-
RSK
-Optional-
channel
- longname of channel to generate data, default is all channelsprofile
- profile numbers to use, default is all available profilesdirection
- 'up' for upcast, 'down' for downcast, default is 'down'reference
- channel that will be used as y dimension, default is 'Sea Pressure`.
Output
RSK
RSKgenerate2D
arranges a series of profiles from selected channels into in a 3D matrix. The matrix has dimensions MxNxP, where M is the number depth or pressure levels, N is the number of profiles, and P is the number of channels. Arranged in this way, the matrices are useful for analysis and for 2D visualization (RSKimages uses RSKgenerate2D
). It may be particularly useful for users wishing to visualize multidimensional data without using RSKimages
. Each profile must be placed on a common reference grid before using RSKgenerate2D
(see RSKbinaverage).
RSK.im
includes fields as below:
RSK.im.x
- x axis vectorRSK.im.y
- y axis vectorRSK.im.channel
- channel index for data that are generatedRSK.im.profile
- profile number for data that are generatedRSK.im.direction
- direction for data that are generated ('up' or 'down')RSK.im.data
- data matrix with dimension in x, y and number of channelsRSK.im.reference
- reference channel nameRSK.im.reference_unit
- reference channel unit
Example:
rsk = RSKgenerate2D(rsk,'channel',{'Temperature','Conductivity'},'direction','down')