SMS:CMS-Wave Depth File: Difference between revisions
No edit summary |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
CMS-Wave requires a depth at each cell in the domain. In SMS terminology, the depth values comprise a dataset on the grid. | CMS-Wave requires a depth at each cell in the domain. In SMS terminology, the depth values comprise a dataset on the grid. | ||
The depths are passed into CMS-Wave in the form of an ASCII data file. There is no header or identifier as to what the data in the file is, other than the default extension of " | The depths are passed into CMS-Wave in the form of an ASCII data file. There is no header or identifier as to what the data in the file is, other than the default extension of ".dep". However, that is not even required. | ||
The first line of the file contains the dimensions of the grid (number of columns, number of rows) and the default size of a grid cell (in the I direction and then the J direction). If the grid does not consist of cells of constant size, the size for the J direction will be written as 999. In this case, the cell dimensions (width of each column and height of each row) are included at the bottom of the depth file. | The first line of the file contains the dimensions of the grid (number of columns, number of rows) and the default size of a grid cell (in the I direction and then the J direction). If the grid does not consist of cells of constant size, the size for the J direction will be written as 999. In this case, the cell dimensions (width of each column and height of each row) are included at the bottom of the depth file. | ||
Line 11: | Line 11: | ||
===Sample File=== | ===Sample File=== | ||
<blockquote> | |||
{|style = "background: #F9F9F9" | |||
|width="300px" |25 12 10.000 999.000 || // number of columns, number of rows, cell dimensions | |width="300px" |25 12 10.000 999.000 || // number of columns, number of rows, cell dimensions | ||
|- | |- | ||
Line 26: | Line 27: | ||
| . . . || // remaining widths and heights | | . . . || // remaining widths and heights | ||
|} | |} | ||
</blockquote> | |||
==Related Topics== | ==Related Topics== | ||
Line 34: | Line 35: | ||
{{Template:Navbox SMS}} | {{Template:Navbox SMS}} | ||
[[Category:CMS-Wave]] | |||
[[Category:CMS-Wave|D]] | |||
[[Category:SMS File Formats|C]] |
Latest revision as of 18:23, 15 February 2016
CMS-Wave requires a depth at each cell in the domain. In SMS terminology, the depth values comprise a dataset on the grid.
The depths are passed into CMS-Wave in the form of an ASCII data file. There is no header or identifier as to what the data in the file is, other than the default extension of ".dep". However, that is not even required.
The first line of the file contains the dimensions of the grid (number of columns, number of rows) and the default size of a grid cell (in the I direction and then the J direction). If the grid does not consist of cells of constant size, the size for the J direction will be written as 999. In this case, the cell dimensions (width of each column and height of each row) are included at the bottom of the depth file.
The values in the file are organized in row major format, starting with the "top" row (farthest away from the grid origin) and ending with the "bottom" row (closest to the origin and following the I direction).
SMS writes files with five values per row.
Sample File
25 12 10.000 999.000 // number of columns, number of rows, cell dimensions 46.65 42.56 38.85 35.47 32.40 // first 5 depths of cells on the top row 29.61 27.07 24.77 22.67 20.76 // next 5 values, second row will continue on same line . . . // remaining depth values 7.97 7.25 6.55 5.99 5.44 // first five column widths 4.95 4.50 4.09 3.72 3.38 // next 5 widths, heights will follow on same line . . . // remaining widths and heights
Related Topics
SMS – Surface-water Modeling System | ||
---|---|---|
Modules: | 1D Grid • Cartesian Grid • Curvilinear Grid • GIS • Map • Mesh • Particle • Quadtree • Raster • Scatter • UGrid | |
General Models: | 3D Structure • FVCOM • Generic • PTM | |
Coastal Models: | ADCIRC • BOUSS-2D • CGWAVE • CMS-Flow • CMS-Wave • GenCade • STWAVE • WAM | |
Riverine/Estuarine Models: | AdH • HEC-RAS • HYDRO AS-2D • RMA2 • RMA4 • SRH-2D • TUFLOW • TUFLOW FV | |
Aquaveo • SMS Tutorials • SMS Workflows |