arcgridread

Read gridded data set in Arc ASCII Grid Format

Syntax

[Z,R] = arcgridread(filename)

Description

[Z,R] = arcgridread(filename) reads a grid from a file in Arc ASCII Grid format. Z is a 2-D array containing the data values. R is a referencing matrix (see makrefmat). NaN is assigned to elements of V corresponding to null data values in the grid file.

Examples

[Z,R] = arcgridread('MtWashington-ft.grd');
mapshow(Z,R,'DisplayType','surface');
xlabel('x (easting in meters)'); ylabel('y (northing in meters)')
demcmap(Z)

% View the terrain in 3-D
axis normal; view(3); axis equal; grid on
zlabel('elevation in feet')

Was this topic helpful?