[Qgis-user] How to create a clipped grayscale raster with pixel values of 0 only on the unclipped areas
Carlos Cerdán
sig.upagu at gmail.com
Wed Jul 2 06:45:25 PDT 2014
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 Cerdán
2014-07-02 8:25 GMT-05:00 Andrea Acinelli <aacinelli at gmail.com>:
> 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 can be turned
> off by assigning 0 pixel values to NO DATA values in the transparency tab
> of the raster properties. The problem I have is that many other pixels
> within the clipped area have 0 value which are also turned off. How can I
> obtain a final raster that has 0 values only outside the clipped area?
>
> I'm using:
> QGIS standalone installer version 2.4 (64bit)
> Windows 7 Professional
> Service Pack 1
> Intel Core Duo CPU E6850 @3.00GHz 2.99GHz
> 8 GB RAM
> 64-bit OS
>
> Many Thanks
>
> Andrea
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20140702/9702a767/attachment.html>
More information about the Qgis-user
mailing list