Home > custom > grid_stats > kumar.m

kumar

PURPOSE ^

calc slope and aspect for kumar radiation function

SYNOPSIS ^

function [grad,asp] = kumar(dem,cs)

DESCRIPTION ^

 calc slope and aspect for kumar radiation function

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:

SOURCE CODE ^

0001 function [grad,asp] = kumar(dem,cs)
0002 % calc slope and aspect for kumar radiation function
0003 
0004 % calculates slope and aspect (deg) using GRADIENT function
0005 [fx,fy] = gradient(dem,cs,cs); % uses simple, unweighted gradient of immediate neighbours
0006 [asp,grad]=cart2pol(fy,fx); % convert to carthesian coordinates
0007 grad=atan(grad); %steepest slope
0008 asp=asp.*-1+pi; % convert asp 0 facing south

Generated on Tue 24-Feb-2009 19:14:50 by m2html © 2003