Scalar/Vector Conversion in SMS

Datasets in SMS can be rendered as either scalar or vector data. Furthermore, SMS allows you to convert datasets between scalar and vector using either a right-click menu command or the Dataset Toolbox.

In the Project Explorer, the icon next to the dataset will show if it is a scalar or a vector dataset. In SMS, scalar datasets typically represent water surface elevation, depth, and magnitude. Vector datasets typically represent flow velocities and observed wind fields in the area.

When converting a scalar dataset to a vector dataset, two scalar datasets are needed. The scalar datasets need to be either magnitude and direction data, or x and y components. When converting vector data to scalar data, the result will be one or more datasets.

Converting Datasets with the Right-Click Menu

To convert a vector dataset to a scalar dataset, do the following:

  1. Right-click on the desired vector dataset in the Project Explorer.
  2. Select Vector to Scalars.
  3. After the dialog appears, options are available for the specification of either magnitude and direction or x and y components for the resulting scalar datasets.
Vector to scalar using the right-click menu

To convert scalar dataset to a vector dataset, do the following:

  1. Select two scalar datasets: either magnitude and direction or x and y components.
  2. Right-click and select Scalars to Vectors.
  3. In the dialog that appears, confirm that the components have been assigned correctly.

Note that if only one scalar dataset is selected, another dialog will appear asking you to select the second scalar dataset.

Converting Datasets with the Dataset Toolbox

The Dataset Toolbox can also be used to convert scalar datasets into vector datasets or vector datasets to scalar datasets. To do this:

  1. Click on the dataset in the Project Explorer to make it active.
  2. Select Data | Dataset Toolbox... This will bring up the Dataset Toolbox where options will be made available that are relative to the altering of the dataset.
  3. Navigate to the Tools section of the dialog and select either Scalar to Vector or Vector to Scalar.
  4. For the Scalar to Vector tool, select the dataset components to use.
  5. For the Vector to Scalar tool, select whether you want the dataset to be magnitude and velocity, or x and y components in the Options section of the dialog.
Vector to scalar using the Dataset Toolbox

The Dataset Toolbox also contains many other tools. Try them out in SMS today!

Blog tags: