Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.
Disclaimer: The views expressed are purely those of the writer and may not in any circumstance be regarded as stating an official position of the European Commission.
The opinions I express are my own and are not representative of the official policy of the U.S.Fish and Wildlife Service or Dept. of the Interior. Life is too short for undocumented, proprietary data formats.
On Thu, Dec 19, 2013 at 3:35 AM, Margherita Di Leo <
dileomargherita@gmail.com> wrote:
Hi All,
Is it an expected behaviour that r.null doesn't affect vrt raster linked
via r.external?
Tested on forest map 2000 available for download from http://forest.jrc.ec.europa.eu/download/data/forest-data-download/
I build the mosaic with gdalbuildvrt and then use r.external
then I want to set to null the values 0,2,3:
r.null mosaic setnull=0-2-3
this command doesn't have any effect on the map.
thanks
madi
--
Best regards,
Dr. Margherita DI LEO
Scientific / technical project officer
European Commission - DG JRC
Institute for Environment and Sustainability (IES)
Via Fermi, 2749
I-21027 Ispra (VA) - Italy - TP 261
Disclaimer: The views expressed are purely those of the writer and may
not in any circumstance be regarded as stating an official position of the
European Commission.
---------------------------------------------------------------------------------------------------------
The opinions I express are my own and are not representative of the
official policy of the U.S.Fish and Wildlife Service or Dept. of the
Interior. Life is too short for undocumented, proprietary data formats.
Is it an expected behaviour that r.null doesn't affect vrt raster linked
via r.external?
Yes.
r.null manipulates the null bitmap directly. GDAL-linked (r.external)
maps don't have or use a null bitmap; null cells are those whose value
matches the value reported by the GDALGetRasterNoDataValue() function.
You'll need to either create a mask (e.g. with r.mask) then "apply" it
using e.g. r.resample, or use r.mapcalc to create a copy with the
appropriate categories changed to null, e.g.