LSDTopoTools
 All Classes Files Functions Variables Friends Pages
myLSDRasterobject.read_ascii_raster

reads a raster from an ascii file, populates an LSDRaster object array

Author
DAV

This method takes a filename (the .asc file). It reads in the ascii file and fills in the array (and header) part of the LSDRaster object with double precision values in the array. You must have declared an instance of an LSDRaster object. ("elevations.asc")

Returns
The myLSDRasterobject.RasterData_dbl data member is now populated with an array of the DEM data. The data members for NCols, NRows, etc. are also updated.