[GRASS-dev] [GRASS GIS] #2620: r.neighbours should offer to ignore centre value

GRASS GIS trac at osgeo.org
Mon Mar 16 07:21:24 PDT 2015


#2620: r.neighbours should offer to ignore centre value
--------------------------+-------------------------------------------------
 Reporter:  marisn        |       Owner:  grass-dev@…              
     Type:  enhancement   |      Status:  new                      
 Priority:  minor         |   Milestone:  7.0.1                    
Component:  Raster        |     Version:  7.0.0                    
 Keywords:  r.neighbours  |    Platform:  Unspecified              
      Cpu:  Unspecified   |  
--------------------------+-------------------------------------------------

Comment(by glynn):

 Replying to [comment:3 marisn]:

 > Second - it is not possible to use weights and circular neighbourhood at
 the same time (documentation states: "The -c flag and the weights
 parameter are mutually exclusive.")

 More accurately, it is not possible to use weight= and an automatically-
 generated mask (either the circular mask generated by -c or the Gaussian
 mask generated by gauss= or the square mask generated in the absence of
 any other applicable option). Nothing prevents weight= from being used to
 supply a circular mask.

 However, any automatically-generated mask (whether square, circular or
 Gaussian) is simply a short-cut whose behaviour could also be obtained by
 passing the appropriate mask via weight=. So the question isn't about
 what's possible, but what's possible without providing an explicit weights
 file.

 There's no end to the set of masks which could be generated internally;
 the only question is which ones are common enough to warrant a short-cut.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2620#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list