SMS

Observation Arcs vs. SRH-2D Monitoring Lines

Have you ever wondered what is the difference between using an observation arc and using an SRH-2D monitoring line? Both make use of arcs drawn on map coverages and both are used to show the results of a model run. While they serve a similar purpose, there are significant differences between the two. This article will discuss some of these differences.

Observation Arcs

Observation arcs are made on an observation map coverage. This generic coverage can be used with nearly every numeric model in SMS. It is not specific to only SRH-2D. Observation arcs can be used to generate a profile plot based on the model run results. SMS does this by interpolating the results to locations along the observation arc.

An observation arc can be created before or after the model run. The arc can also be adjusted after the model run to change what is shown in an observation plot.

SRH-2D Monitoring Lines

SRH-2D monitoring lines are created on an SRH-2D monitor coverage. This is an SRH-2D specific coverage that will only work with an SRH-2D simulation. The monitor coverage must be included in the SRH-2D simulation during the simulation run in order for the monitoring lines to produce results. A plot from the monitor line can be viewed in the Simulation Run Queue during the model run.

When creating monitoring lines, arcs are drawn on the SRH-2D monitor coverage. It is important to pay attention to how these arcs snap to the SRH-2D mesh. Monitoring lines will follow the nodes of the mesh instead of interpolating to the location of the arc. For SRH-2D, this makes the results of the monitoring lines more accurate than observation arcs.

SHR-2D monitor lines snappingto mesh nodes

The results from the monitoring lines are found in the the *.dat file that starts with “LN”. If a change is made to a monitoring line after the simulation run, the simulation will need to be saved and run again to get the new results for the monitoring line.

Using both monitoring lines and observation arcs is common for many projects. Keeping in mind the differences will help you make better use of both of them. Try using observation arcs and monitoring lines in SMS today!

Blog tags: 

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: 

Pages