[GRASS-dev] [GRASS GIS] #2637: Get direction raster in clockwise degrees starting from the North
GRASS GIS
trac at osgeo.org
Mon Jan 29 03:43:50 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 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
degrees.
>
> what about to assign -1 for cells with zero slope or slope is <
min_slope?
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 be.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/2637#comment:26>
GRASS GIS <https://grass.osgeo.org>
More information about the grass-dev
mailing list