[GRASS5] Re: [GRASS5]r.neighbors question
Kevin Slover
kjslover at nhc.noaa.gov
Thu Mar 7 14:15:49 EST 2002
Glynn,
The -z option should be kept, unless the r.neighbors module is changed.
What I noticed is that it included areas that were equal to null, and set
those to zero.
Example using d.what.rast:
81:43:52.5W 27:58:22.5N
gabby62_rtest.rast in PERMANENT, quant (0)
gabby62_rtest.rast in PERMANENT, actual (0.000000)no data -> using
r.neighbors -z option
gabby62.rast in PERMANENT, quant (Null)
gabby62.rast in PERMANENT, actual (Null)no data -> initial raster
Maybe this is a bug...but I generally choose not to use the -z option, and
have found ways to work around the problem. I work with irregularly shaped
data sets...and taking out the -z option would make the images that I create
false...creating more work for me....
Glynn Clements wrote:
> Kevin Slover wrote:
>
> > I am using r.neighbors to increase the resolution of rasters that I have
> > created, and have noticed something interesting...maybe it is my lack of
> > understanding of something in the program, but....I am getting null
> > values in the resulting raster. It appears that it is setting values of
> > 0 to null in the result...which then creates gaps in the images...any
> > ideas on what might be causing this??
>
> then:
>
> > Please disregard the last email from me. I just read one of the options
> > for r.neighbors, and it appears that I should put a -z to preserve zero
> > outputs...
>
> Should r.neighbors' "-z" flag be kept? Is there any reason why zero
> should be converted to null?
>
> --
> Glynn Clements <glynn.clements at virgin.net>
> _______________________________________________
> grass5 mailing list
> grass5 at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grass5
--
LTJG Kevin Slover, NOAA
GIS Specialist/Meteorologist/Oceanographer
Tropical Prediction Center/Technical Support Branch
11691 SW 17th Street Miami FL 33165
(W) 305-229-4456 (F) 305-553-1264
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-dev/attachments/20020307/e987075d/attachment.html
More information about the grass-dev
mailing list