On 31/10/2012 06:02, Stephen Roecker wrote:
Is their a simple way to convert the aspect raster produced from r.param.scale to the conventional geographic convention of 0 to 360, rather than 0 to +/-180? I see that this issue has been discussed before, but the previous threads solution was specific to r.slope.aspect and the programming was frankly beyond my understanding.

http://osgeo-org.1560.n6.nabble.com/Aspect-direction-in-r-slope-aspect-td3918139.html

Is their a simple solution that doesn't involve reclassifying the raster?


I think this mapcalc _expression_ will convert an r.param.scale aspect map to the "conventional" north=0, clockwise angles:
r.mapcalc aspect0to360 = "if(aspect >= 90, aspect - 90, aspect + 270)"

Thanks,

Stephen


This mail was received via Mail-SeCure System.


_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

This mail was received via Mail-SeCure System.




-- 
Micha Silver
GIS Consulting
052-3665918
http://www.surfaces.co.il
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to