[GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North

GRASS GIS trac at osgeo.org
Mon Jan 29 04:01:17 PST 2018

#2637: Get direction raster in clockwise degrees starting from the North
  Reporter:  cgravelm     |      Owner:  grass-dev@…
      Type:  enhancement  |     Status:  new
  Priority:  normal       |  Milestone:  7.4.1
 Component:  Raster       |    Version:  7.0.0
Resolution:               |   Keywords:
       CPU:  Unspecified  |   Platform:  MacOSX

Comment (by hellik):

 Replying to [comment:26 mmetz]:
 > Replying to [comment:24 hellik]:
 > > Replying to [comment:22 mmetz]:
 > > >Therefore I suggest to produce zero aspect for zero slope or if slope
 is < min_slope. NULL is then reserved for those cells where slope and
 aspect can not be computed. This also means that when converting CCW from
 East to CW from North, North must be encoded as 360 degrees, not 0
 > >
 > > what about to assign -1 for cells with zero slope or slope is <
 > This would change the current default behaviour with min_slope = 0 and
 aspect = 0 if slope = 0. Direction = 0 has an equivalent meaning in
 r.cost, r.walk, r.drain, r.path, r.watershed, r.stream.extract: it is a
 valid cell, there is no way away from here, stop routing here.
 > Also, -1 can be interpreted as 359, just like 0 can be interpreted as
 360, no improvement there. IMHO, the corresponding aspect value for zero
 slope must be clearly documented, then it can be easily changed if need

 a short note how other GIS calculate aspect:


Ticket URL: <https://trac.osgeo.org/grass/ticket/2637#comment:27>
GRASS GIS <https://grass.osgeo.org>

More information about the grass-dev mailing list