6

I use QGIS 2.14 (Windows, 64bit) and try to do some raster calculations with EUNIS habitat data, filter for specific habitat types, files are about 3 GB.

RAM: 8 GB (7,85 GB usable) Virtual RAM: 8043 MB (automatic)

But there is always the following error: Raster calculator: Insufficient memory available for operation.

Any suggestions?

  • Please edit the question to specify how much physical RAM and virtual RAM you have configured on your system, with an indication of how much free RAM was available before you attempted the operation. – Vince Mar 21 '16 at 17:52
  • 1
    Alternatively, you could use the command line version gdal.org/gdal_calc.html in the OSGEO4W shell. – AndreJ Mar 21 '16 at 19:55
  • 1
    Add also the gdalinfo report about your source data because some raster formats eat more memory than some others. – user30184 Mar 21 '16 at 20:01
  • @AndreJ: I will try it, but I am not very used to shell.. thanks – user16032 Mar 22 '16 at 9:41
3

For large raster files you can use r.mapcalculator in QGIS Processing Toolbox.

  • I am trying this answer, but seems that for that you have to provide all layers you wish to include in your calculation as individual layers. Is there an option to use that method with only one raster that has several layers? – DarkCygnus Sep 8 '17 at 22:24
  • Are you saying about bands of a raster? one raster that has several layers? – nickan Sep 9 '17 at 5:37
  • I mean that 'r.mapcalculator' receives several single-layered rasters and outputs one single-layered raster (at least that is what I saw on its options). Is there an option to give as input one multi-layered raster and operate with those bands? – DarkCygnus Sep 9 '17 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.