WMS:GRASS Grid (GSSHA Maps): Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
 
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
WMS can import GRASS ASCII grid for use as a background DEM. Since it is a simple file format, other digital elevation data can be formatted in the same way and then imported into WMS using the Open command in the File menu.
WMS can import Geographic Resources Analysis Support System (GRASS) ASCII grid files for use as a background DEM for a GSSHA project. Since it is a simple file format, other digital elevation data can be formatted in the same way and then imported into WMS using the '''Open''' command in the [[WMS:File Menu|''File'' menu]].


The GSSHA model also uses GRASS ASCII grid files format for all of the map parameters. The GRASS ASCII format is shown in Figure 1, and an example of file is shown in Figure 2.
The card types used in the GRASS ASCII grid file format are self explanatory. The GSSHA model also uses the GRASS ASCII grid file format for all of the map parameters.  


{|class="wikitable" style="border:1px #AAA solid;"
==GRASS ASCII Grid File Format==
|-
Following is an explanation of the content of a GRASS ASCII grid file:
|north: n||/* Northern boundary grid coordinate */
<pre>
|-
north: n /* Northern boundary grid coordinate */
|south: s||/* Southern boundary grid coordinate */
|-
|east: e||/* Eastern boundary grid coordinate */
|-
|west: w||/* Western boundary grid coordinate */
|-
|rows: nrows||/* Number of rows in the grid */
|-
|cols: ncols||/* Number of columns in the grid */
|-
|z11 z12 z13 ... z1ncols||/* values of row 1 */
|-
|z21 z22 z23 ... z2ncols||/* values of row 2 */
|-
|.
|-
|.
|-
|.
|-
|znrows1 znrows2 znrows3 ... znrowsncols||/* values of last row*/
|}
''Figure 1. GRASS ASCII Grid File.''


{|class="wikitable" style="border:1px #AAA solid;"
south: s /* Southern boundary grid coordinate */
|-
|width="500"|north: 3451250
|-
|south: 3438850
|-
|east: 298960
|-
|west: 290860
|-
|rows: 10
|-
|cols: 5
|-
|0 1 1 0 1
|-
|1 1 0 0 1
|-
|.
|-
|.
|-
|0 0 1 1 0
|}
''Figure 2. Sample GRASS ASCII Grid File.''


The card types used in the GRASS grid file format are self explanatory.
east: e /* Eastern boundary grid coordinate */
 
west: w /* Western boundary grid coordinate */
 
rows: nrows /* Number of rows in the grid */
 
cols: ncols /* Number of columns in the grid */
 
z11 z12 z13 ... z1ncols /* values of row 1 */
 
z21 z22 z23 ... z2ncols /* values of row 2 */
 
.
.
.
 
znrows1 znrows2 znrows3 ... znrowsncols /* values of last row*/
</pre>
 
===Example===
Following is an example file in the GRASS ASCII grid file format:
 
<pre>
north: 3451250
south: 3438850
east: 298960
west: 290860
rows: 10
cols: 5
0 1 1 0 1
1 1 0 0 1
.
.
0 0 1 1 0
</pre>
 
==External Links==
*[https://grass.osgeo.org/ GRASS GIS at OSGeo]




{{WMSMain}}
{{WMSMain}}
[[Category:File Formats]]
[[Category:WMS File Formats|G]]
[[Category:GSSHA|GRASS]]
[[Category:External Links]]

Latest revision as of 21:32, 24 April 2019

WMS can import Geographic Resources Analysis Support System (GRASS) ASCII grid files for use as a background DEM for a GSSHA project. Since it is a simple file format, other digital elevation data can be formatted in the same way and then imported into WMS using the Open command in the File menu.

The card types used in the GRASS ASCII grid file format are self explanatory. The GSSHA model also uses the GRASS ASCII grid file format for all of the map parameters.

GRASS ASCII Grid File Format

Following is an explanation of the content of a GRASS ASCII grid file:

north: n /* Northern boundary grid coordinate */

south: s /* Southern boundary grid coordinate */

east: e /* Eastern boundary grid coordinate */

west: w /* Western boundary grid coordinate */

rows: nrows /* Number of rows in the grid */

cols: ncols /* Number of columns in the grid */

z11 z12 z13 ... z1ncols /* values of row 1 */

z21 z22 z23 ... z2ncols /* values of row 2 */

.
.
.

znrows1 znrows2 znrows3 ... znrowsncols /* values of last row*/

Example

Following is an example file in the GRASS ASCII grid file format:

north: 3451250
south: 3438850
east: 298960
west: 290860
rows: 10
cols: 5
0 1 1 0 1
1 1 0 0 1
.
.
0 0 1 1 0

External Links