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:
- In the Project Explorer, select the mesh you want to convert to a raster.
- Right-click and select Convert | Mesh to 2D Scatter.
- 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.
- In the Project Explorer, right-click on the mesh and select Interpolate to command.
- 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:
- Select the dataset and time step to be converted.
- In the Project Explorer, right-click and select Convert | Scatter to Raster.
- Select raster options in the Interpolate Scatter to Raster dialog.
- 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.
Feel free to try out the above process of converting a mesh dataset to a raster file in SMS today!