arcgridwrite

版本 1.1.0.0 (2.9 KB) 作者: Andrew Stevens
Write gridded data set in Arc ASCII Grid Format
4.2K 次下载
更新时间 2015/11/17

arcgridwrite(fileName,X,Y,Z)- converts data in a matlab
grid into a text file in Arc ASCII Grid Format.

INPUTS
fileName: output filename including extension
X: X coordinates (vector 1 x N)
Y: Y coordinates (vector m x 1)
Z: gridded data (m x n)

SYNTAX AND OPTIONS
arcgridwrite('D:\tools\bathyGrid.asc',X,Y,Z)

arcgridwrite(...,'precision',5) - changes default output
from 3 to 5 decimal places.

arcgridwrite(...,'nodata',-32768) - changes no data value
from -9999 (default) to -32768.

arcgridwrite(...,'grid_mapping','center') - changes the
grid spatial reference from 'corner' (default) to 'center'.
This is useful when combining output from the mapping
toolbox's PIXCENTERS function.

EXAMPLE 1 - create a raster grid of the peaks function
[X,Y,Z]=peaks(100);
arcgridwrite('peaksArc.asc',X(1,:),Y(:,1),Z,'precision',5)

NOTES
Because the Arc ASCII format has only one parameter for cell size,
both X and Y must have the same, non-varying grid spacing.

引用格式

Andrew Stevens (2024). arcgridwrite (https://github.com/drewstev/arcgridwrite), GitHub. 检索时间: .

MATLAB 版本兼容性
创建方式 R2015a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 Coordinate Reference Systems 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

无法下载基于 GitHub 默认分支的版本

版本 已发布 发行说明
1.1.0.0

Finally incorporated lots of comments from everyone. Thanks!
Linked to github repository
changed description, help and example

1.0.0.0

change keyword in header from corner to center.

要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库
要查看或报告此来自 GitHub 的附加功能中的问题,请访问其 GitHub 仓库