Code covered by the BSD License  

Highlights from
srh2sms

Be the first to rate this file! 1 Download (last 30 days) File Size: 3.99 KB File ID: #28310

srh2sms

by Jeff Tuhtan

 

27 Jul 2010 (Updated 23 Sep 2010)

Convert SRH-2D model outputs into an SMS friendly format.

| Watch this File

File Information
Description

This function carries out the following tasks:

1) Allows the user to select the first timestep of an SRH model output to convert, regardless of the SRH version used.

2) Automatically renames SRH files from SRH1, SRH2...SRH100 to a machine-friendly format: SRH001, SRH002...SRH100.

3) Parses each SRH output file into separate output files for the water elevation, depth, velocity magnitude, Froude number, and boundary shear stress.

4) Creates single time series of each parsed file which can be opened in SMS.

5) Saves the model outputs in .mat binary file so that the SRH model results can be read in and analyzed much faster than using the text files as input!

Note: The SRH model needs to be set up so that the outputs are NODE-CENTERED for the conversion to work properly.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
23 Aug 2010

- Added automatic recognition of output data, regardless of the SRH version or model used.
- Exports output as binary .mat files, as well as .dat text files.
- Files are renumbered instead of saved with new name, speeding up the function.

23 Sep 2010

- Fixed output file name bug

Tag Activity for this File
Tag Applied By Date/Time
srh Jeff Tuhtan 27 Jul 2010 11:36:54
sms Jeff Tuhtan 27 Jul 2010 11:36:54
file conversion Jeff Tuhtan 27 Jul 2010 11:36:54
hydraulic model Jeff Tuhtan 27 Jul 2010 11:36:54
srh2d Jeff Tuhtan 23 Aug 2010 09:56:25
2d flow model Jeff Tuhtan 23 Aug 2010 09:56:26
hydraulic model jun 26 Oct 2010 16:28:51

Contact us at files@mathworks.com