New answers tagged

0 votes

Raster Calculator in Model Designer doesn't take my input number into account

Have you made sure that you have defined the individual weights as a number parameter in your model? If so, then make sure that the expression dialog for the calculation in gdalnumeric syntax looks ...
user avatar
0 votes

Raster Calculator in processing scripts crashes using PyQGIS

I get a similar crash but it works when I remove the use of QgsProcessingMultiStepFeedback in the process.
user avatar
4 votes

QGIS Apply Correction to Elevation Datum

Use this expression in the raster calculator: "name_of_your_dtm@1" + 2 But as Erik suggested it you shall have a look at the official tutorial where most of the solutions are already ...
user avatar
  • 1,428
0 votes

Calculate seasonal precipitation and temperature from CRU TS 4.05 in ArcGIS Pro

Often first steps to automation, without any code in ESRI software is learning to use modelbuilder. You would use an iterator to step through layers/values and use that to help extract out specific ...
user avatar
  • 38.4k
0 votes

Error 000539 in ArcGIS Desktop?

A colleague and I just had a similar error with rcexe. Looking at the error, it appeared to actually be a problem with NumPy. After a lot of investigation including looking at the path that the ArcMap ...
user avatar
0 votes

ArcGIS Raster Calculator Error 000539

A colleague and I just had a similar error with rcexe. Looking at the error it appeared to actually be a problem with NumPy. After a lot of investigation including looking at the path that the ArcMap ...
user avatar
2 votes

gdal_calc - How to calculate where raster A is not equal to raster B?

From GDAL version >= 3.3, you can use --hideNoDatata option to ignore the NaNs in the calculation (it takes the NoData value as if it was a real value).
user avatar
1 vote

Calculate multiple bands average raster in QGIS with high number of bands

You can use python to build the expression. This should work for any number of bands: rasterlayer = QgsProject.instance().mapLayersByName('infra-red')[0] #Change infra-red to the name of your layer ...
user avatar
  • 51.3k
0 votes

Rounding raster values in QGIS raster calculator?

I used floor instead of round, floor function "cut" the pixel value, if you have 2.5 and want to get 2, you have to use the floor function, in that case if you use round you will get 3.
user avatar

Top 50 recent answers are included