|
|
| File Information |
| Description |
ASCII2XYZ reads in a raster text file in ARC ASCII format and converts values to a m x 3 matrix of x, y, a z values.
This code is mostly vectorized and performs well with reasonably large files (see example below).
%read in a 25 MB file
a=dir('foo.txt')
a =
name: 'foo.txt'
date: '17-Oct-2008 08:53:34'
bytes: 25437683
isdir: 0
datenum: 7.3370e+005
tic
xyz=ascii2xyz('foo.txt');
toc
Elapsed time is 8.110956 seconds. |
| Acknowledgements |
The author wishes to acknowledge the following in the creation of this submission:
Raster to XYZ
|
| MATLAB release |
MATLAB 7.6 (R2008a)
|
| Other requirements |
Will likely only run on Matlab Version 7.1 (R14SP3) or later |
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 17 Oct 2008 |
Joaquim Luis
|
|
|
| 20 Oct 2008 |
Andrew Stevens
|
|
|
| 26 Jan 2010 |
fran anwar
|
|
|
| 27 Jan 2010 |
Andrew Stevens
|
|
|
| 26 Jul 2011 |
Ric
|
|
|
| Updates |
| 17 Oct 2008 |
update description |
| 21 Oct 2008 |
Added support for ASCII files that specify either the corner of the grid or the center of the lower left pixel in the header. |
| 27 Oct 2008 |
fixed error in how y-values are allocated |
|
Contact us at files@mathworks.com