<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
It appears to me that the raster calculator treats a nodata pixel
the same as any other pixel, performing the requested operation on
the nodata pixel as if it were a valid value. In addition, it
appears that there is no way to create an output raster that has a
nodata value.* Are these two statements correct?<br>
<br>
I know that I can write a formula<br>
(raster@1 = <nodata>) * <nodata> + (raster@1 !=
<nodata>) * <whatever you want for valid pixels><br>
<br>
but this requires you know the nodata value. Even in this case, the
resulting raster does not encode that value as nodata.<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
*The GDAL processing algorithm "Raster Calculator" does allow
specifying a nodata value<br>
</body>
</html>