This seems to happen by default. The maximum you see is an estimate based on sampling. You want the actual maximum of all samples in the raster.
In the Layer Styling panel, under Accuracy, select Actual(slower). The legend should then display 255 as required.
This produces the bad range, like this:
But if you look at the Layer Styling ...
A "True" condition evaluates numerically to 1, and a "False" condition to zero, so if you add up the result of multiplying the test conditions by the value expressions for those tests, you get the result you are after. So:
("slope@1" < 9 ) * (10.8 * sin("theta@1")+0.03) +
("slope@1" >=9 ) * (16.8 * sin(&...
The variable lulc1 is an image collection with 5 elements (images between years 2015 and 2019). If you want to reclassify it, it is preferable to map entire collection with a function. Following code fix up your issues and add your image collection to the Map View of GEE.
var lulc1 = ee.ImageCollection("COPERNICUS/Landcover/100m/Proba-V-C3/...
You might need more brackets, and you can replace logical AND with numerical *.
(layer1_null = 0) * (layer2 != 0)
selects the pixels that meet the criteria.
(layer1_null = 0) * (layer2 != 0) * (layer2 - layer1)
gets the difference for the relevant pixels.
To choose between layers, you could use:
(layer1 = 0) * layer2 + (layer1 != 0) * layer3
For example, ...
Use the Reclassify tool on your Euclidean Distance output raster to set all values greater than 100 to be equal to 100. As long as you keep the default missing_values parameter set to DATA you can ignore all you values less than 100 - the original value will carry through unchanged.
This way you can also play around with if 100m is actually the appropriate ...
I'm not familiar with raster format manipulation with QGIS but indeed, it sounds strange.
Anyway, you can get the wanted result by using grass r.rescale command (using Processing Tools) :
The r.rescale program rescales the range of category values appearing
in a raster map layer. A new raster map layer, and an appropriate
category file and color table based ...
you can use the rastercalculator for that with an expression like this one:
("raster@1" >= "raster@2" AND "raster@1" >= "raster@3" AND "raster@1" >= "raster@4") * "raster@1" +
("raster@2" > "raster@1" AND "raster@2" > "raster@3" AND &...