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?

4
  • 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
    Commented Mar 21, 2016 at 17:52
  • 1
    Alternatively, you could use the command line version gdal.org/gdal_calc.html in the OSGEO4W shell.
    – AndreJ
    Commented Mar 21, 2016 at 19:55
  • 1
    Add also the gdalinfo report about your source data because some raster formats eat more memory than some others.
    – user30184
    Commented Mar 21, 2016 at 20:01
  • @AndreJ: I will try it, but I am not very used to shell.. thanks
    – user16032
    Commented Mar 22, 2016 at 9:41

1 Answer 1

3

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

3
  • 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
    Commented Sep 8, 2017 at 22:24
  • Are you saying about bands of a raster? one raster that has several layers?
    – HMadadi
    Commented Sep 9, 2017 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
    Commented Sep 9, 2017 at 14:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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