etopo
(To be removed) Read gridded global relief data (ETOPO products)
etopo will be removed in a future release. Use readgeoraster
instead. For more information, see Compatibility Considerations.
Syntax
[Z, refvec] = etopo
[Z, refvec] = etopo(samplefactor)
[Z, refvec] = etopo(samplefactor, latlim, lonlim)
[Z, refvec] = etopo(folder, ...)
[Z, refvec] = etopo(filename, ...)
[Z, refvec] = etopo({'etopo5.northern.bat', 'etopo5.southern.bat'},
...)
Description
[Z, refvec] = etopo reads the ETOPO data for the entire world from
the ETOPO data in the current folder. The etopo function searches the
current folder first for ETOPO1c binary data, then ETOPO2V2c binary data, then ETOPO2
(2001) binary data, then ETOPO5 binary data, and finally ETOPO5 ASCII data. Once the
function finds a case-insensitive file name match, it reads the data. See the table Supported ETOPO Data File Names for a list of possible file names. The
etopo function returns the data grid, Z, as an
array of elevations. Data values, in whole meters, represent the elevation of the center of
each cell. refvec, the associated three-element referencing vector,
geolocates Z.
[Z, refvec] = etopo(samplefactor) reads the data for the entire
world, downsampling the data by samplefactor. The scalar integer
samplefactor when equal to 1 gives the data at its full resolution
(10800 by 21600 values for ETOPO1 data, 5400 by 10800 values for ETOPO2 data, and 2160 by
4320 values for ETOPO5 data). When samplefactor is an integer
n greater than one, the etopo function returns
every nth point. If you omit
samplef