SMS:ARC/INFO ASCII Grid Files *.arc: Difference between revisions

From XMS Wiki
Jump to navigationJump to search
No edit summary
(update)
Line 3: Line 3:
[[Image:WMS Import ArcInfo Grid.jpg|thumb|none|left|350 px|''Importing ArcInfo Grid'' dialog]]
[[Image:WMS Import ArcInfo Grid.jpg|thumb|none|left|350 px|''Importing ArcInfo Grid'' dialog]]


The CASC2D model may also import and used ARC/INFO® grid files when defining map parameters. The file format is shown in Figure 1 and an example file in Figure 2.
The CASC2D model (now [[GSSHA]]) may also import and use ARC/INFO® grid files when defining map parameters. The file format is shown below in Figure 1 and an example file in Figure 2.





Revision as of 20:35, 22 June 2015

SMS can import ARC/INFO® ASCII grid. Since it is a simple file format, other digital elevation data can be formatted in the same way and then imported into SMS using the Open command in the File menu. This will bring up the Importing ArcInfo Grid dialog.

Importing ArcInfo Grid dialog

The CASC2D model (now GSSHA) may also import and use ARC/INFO® grid files when defining map parameters. The file format is shown below in Figure 1 and an example file in Figure 2.


ncols ncol /* Number of columns in the grid */
nrows nrow /* Number of rows in the grid */
xllcorner x /* Lower left x coordinate of grid */
yllcorner y /* Lower left x coordinate of grid */
cellsize size /* Grid cell size */
NODATRA_value NODATA /* value of an empty grid cell */
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. ARC/INFO® ASCII Grid File Format.


ncols 128
nrows 136
xllcorner 422415
yllcorner 4515405
cellsize 30
NODATA_value -9999
1287 1286 1286 1288 ...
1288 1288 -9999 1289 ...
.
.
1282 -9999 1283 1284 ...

Figure 2. Sample ARC/INFO® ASCII Grid File.


The card types used in the ARC/INFO® grid file format are self explanatory.