Generating an XYZ ASCII file from a QGIS rasterhttp://kartoza.com/generating-an-xyz-ascii-file-from-a-qgis-raster/