Publisher review:arcgridwrite - Write gridded data set in Arc ASCII Grid Format Write gridded data set in Arc ASCII Grid Formatarcgridwrite(fileName,X,Y,Z)- converts data in a matlab grid (as produced by eg. meshgrid and griddata) into a text file in Arc ASCII Grid Format. The file can also be automatically converted to raster on PC's with ARCINFO installed.INPUTSfileName: output filename including extensionX: X coordinates (m x n) Y: Y coordinates (m x n) Z: gridded data (m x n) SYNTAX AND OPTIONSarcgridwrite('D: oolsathyGrid.txt',X,Y,Z)arcgridwrite('D: oolsathyGrid.txt',X,Y,Z,...'precision',5) - changes default floating point output from 3 to 5 decimal places.arcgridwrite('D: oolsathyGrid.txt',X,Y,Z,'convert') -attempts to convert the ASCII text file to raster using the ARCINFO command ASCIIGRID. This option currently only works on a pc with ARCINFO installed. If this fails, try using ARC directly. There are suggestions for how to do this below. EXAMPLE - create a raster grid of the peaks function[X,Y,Z]=peaks(100); arcgridwrite('peaksArc.txt',X,Y,Z,'precision',3,...'convert')NOTES 1) Because the Arc ASCII format has only one parameter for cell size, both X and Y must have the same, non-varying grid spacing. 2) Unfortunately, the .txt produced by this function cannot be read directly into Arc (at least for me). Rather, convert the ASCII format to raster. I provide an option to do this automatically. If the automatic conversion fails , you can convert the .txt file to raster using (in my version) the arctoolbox: ArcToolbox>Conversion>To Raster>ASCII to Raster or use the function ASCIIToRaster from the ArcMap command line. Requirements: ยท MATLAB Release: R2007a
arcgridwrite is a Matlab script for Scientific/Engineering scripts design by Andrew Stevens.
It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
Operating system:Windows / Linux / Mac OS / BSD / Solaris