This is my first question here. I have a big raster of the world's nighttime lights and want to clip it down to the Adm0 of a country:
In order to do so, in QGIS 2.18 what I do is using the Clipper function and checking the option "Crop the extent of the target dataset o the extent of the cutline":
I expected to get a clipped raster with Nodata values for the pixels outside the boundaries of my mask vector. What I get instead is a zero value for those pixels:
Apparently, the algorithm sets a zero value for all the pixels outside my Adm0 boundaries. Specifying "No data value" to zero is not an option, since some original pixels within the Adm0 boundaries actually have a value equal to zero, so I would miss some significant information.
I haven't had this problem with previous clipping operations on other raster layers.
I get the same problem in QGIS 3.2.