SMS

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: 

Exporting SRH-2D Results

After completing an SHR-2D model in SMS, are you needing to export the results so that they can be examined by someone not using SMS? SMS provides a few different ways that SHR-2D results can be exported.

ASCII and Binary

The simplest method of exporting SRH-2D results is to export them as either a generic ASCII file or binary file. This is done by doing the following:

  1. In the Project Explorer, right-click on the SRH-2D solution dataset and select Export.
  2. In the Export dialog, select to export the dataset as either a generic ASCII file or a generic binary file.
Shapefile

Shapefiles can be opened by a multitude of programs, making it a useful format to use when sharing your results. To export a dataset as a shapefile, do the following:

  1. In the Project Explorer, select the solution dataset and time step you want to export.
  2. Use the File | Save As command.
  3. In the Save As dialog, change the File Type to be "Shapefile (*.shp)".

The dataset can then be saved using the mesh contours to create either an arch shapefile or a polygon shapefile.

Raster

Raster files are also a file format that can be used by many different programs. To convert your SRH-2D solution sets into a raster file, do the following:

  1. Convert the mesh with the solution sets into a scatter set by using the Data | Mesh to Scatterpoint command.
  2. Select the desired dataset and time step under the converted scatter set.
  3. Right-click on the scatter set and select Convert | Scatter to Raster.
  4. Save out the raster file.
Text File

A delimited text file allows you more control over what is exported. To export your solution set as a text file:

  1. Select the File | Save As command.
  2. In the Save As dialog, change the File Type to be "Tabular Data Files (*.txt)".
  3. Use the Export Tabular Data dialog to specify how the file will be set up, which datasets to export, and which time steps to use.
Exporting SRH-2D datasets as a text file

These are just a few of the ways that SHR-2D solution files could be exported. After exporting the solution set, follow the user guidelines for importing the file into other software. Other file export options are also available, try them out in SMS today!

Blog tags: 

Converting Mesh Data to a Raster

After creating a mesh in SMS, you may want to share the data in the mesh as a raster file. For example, you might want to convert the water elevation or velocity dataset from a model run into a raster. Raster files can be opened by many programs and can contain a lot of useful information.

While a raster cannot be created directly from the Mesh module, it can be created from other modules, so the mesh data will need to be converted. To do this:

  1. In the Project Explorer, select the mesh you want to convert to a raster.
  2. Right-click and select Convert | Mesh to 2D Scatter.
  3. In the Convert Mesh to Scatter Points dialog, use the Convert only corner nodes option and give the scatter set a name.

After the mesh has been converted to a scatter set, a couple more things have to be done. The datasets, except for the elevation set, will need to then be interpolated over to the scatter set.

  1. In the Project Explorer, right-click on the mesh and select Interpolate to command.
  2. In the Interpolation Options dialog, select the datasets to interpolate over to the scatter set generated from the Mesh.

Once the mesh and datasets have been converted to the Scatter module, they can be converted to a raster by doing the following:

  1. Select the dataset and time step to be converted.
  2. In the Project Explorer, right-click and select Convert | Scatter to Raster.
  3. Select raster options in the Interpolate Scatter to Raster dialog.
  4. Give the raster a file name and save it as a GeoTIFF.

When going through this process, the active dataset and the active time step at the time of the conversion will be the information saved to the GeoTIFF file.

Mesh data to raster

Feel free to try out the above process of converting a mesh dataset to a raster file in SMS today!

Blog tags: 

Using the Select/Delete Data tool in SMS

Do you have a project that requires selecting a specific region of a mesh or grid to properly gather the necessary data for that area? For example, perhaps you need to select the mesh elements in the area of a bridge so that the elements can be refined. In order to accomplish either of this, there are a couple of options.

One option is to change the attributes directly within an already established mesh or grid by selecting individual cells, elements, or nodes. This could be very time consuming in a large mesh or grid.

Other selection tools, such as the Select by Poly tool, could be used. However, another option is to use the Select/Delete Data tool in SMS.

The Select/ Delete Data tool uses a polygon in the Map module to select objects in a grid, or mesh. It can also be used for selecting points or triangles in a scatter set or feature objects on a different map coverage. This can go quickly if you already have the desired polygon created on a map coverage, such as a materials coverage. Furthermore, the tool can be used to delete objects inside the select polygon.

Select/Delete Data in SMS

Only a few steps are needed in order to use the Select/ Delete Data tool.

  1. After locating the area that needs to be altered, use the Create Feature Arc tool to enclose the desired area or use an existing polygon.
  2. Next, build a polygon using the Feature Objects | Build Polygons menu command if you are not using an existing polygon.
  3. Select the polygon using the Select Polygon tool.
  4. Select the Feature Objects | Select/ Delete Data menu command.
  5. In the Select/Delete Data dialog, choose whether to select or delete the data and which data the function should be applied to.

The data options to choose from are based on what is in the project. You can also select what object in the data object to select or delete. For example, with a 2D mesh, you may choose to select the mesh elements, nodes, or duplicate nodes.

Try out the Select/Delete Data tool in SMS today!

Blog tags: 

Pages