RSKgenerate2D.m

Arguments

Input

-Required- 

  • RSK

-Optional- 

  • channel - longname of channel to generate data, default is all channels

  • profile - profile numbers to use, default is all available profiles
  • direction - '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 vector
  • RSK.im.y - y axis vector
  • RSK.im.channel - channel index for data that are generated
  • RSK.im.profile - profile number for data that are generated
  • RSK.im.direction - direction for data that are generated ('up' or 'down')
  • RSK.im.data - data matrix with dimension in x, y and number of channels
  • RSK.im.reference - reference channel name
  • RSK.im.reference_unit - reference channel unit

Example:

rsk = RSKgenerate2D(rsk,'channel',{'Temperature','Conductivity'},'direction','down')