I am trying to generate a raster layer from the subtraction of a DSM raster layer and a DTM raster layer. Both my DSM and DTM are in float64 data type. When I run the raster calculator to do the subtraction, I could not specify the data type of the output and the default output that I got was in float32 after subtraction. Is there an option and button to specify the output data type?

I am using QGIS 3.0.


The Raster calculator from the menu toolbar does not have the option to specify the output raster type.

But if you go to the Raster calculator from Processing toolbox -> GDAL -> Raster miscellaneous -> Raster calculator, it will give you the option to specify the Output raster type as you can see below:

enter image description here

  • Unfortunately not anymore in 3.6 – christian.gobel Mar 25 '19 at 15:12
  • 1
    @christian.gobel Specifying the output type is still there in both QGIS 3.4.5 and 3.6. Use the Raster calculator under the GDAL -> Raster miscellaneous not the one under the Raster analysis. – ahmadhanb Mar 26 '19 at 0:58
  • you are right. Thanks. Both tools use the same syntax, with the exception that miscellaneous refer to each layer as A,B...? Right? – christian.gobel Mar 26 '19 at 22:01

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.