[Qgis-user] How to create a clipped grayscale raster with pixel values of 0 only on the unclipped areas

2014-07-02 Thread Andrea Acinelli
Hi everyone, I was hoping to get some help with the following problem. I'm working with a grayscale georeferenced and clipped raster (.tif). The raster has been clipped with the 'clipper' tool using a shapefile as a mask. The resulting raster has black bands of color along the four edges which

Re: [Qgis-user] How to create a clipped grayscale raster with pixel values of 0 only on the unclipped areas

2014-07-02 Thread Carlos Cerdán
Hi Andrea: I think you can use raster calculator and divide your clipped raster by a mask raster. The mask raster has 1 value inside your area of interest and 0 value outside, so: INSIDE: non 0 value / 1 = non 0 value; and 0 / 1 = 0 OUTSIDE: 0 or non 0 value / 0 = ¿null? Greetings Carlos