shade

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

Used to shade DEM data Takes an input DEM and sun orientation and illuminates the DEM

Arguments and Return Values

Inputs: DEM, sun orientation

Outputs: shaded relief data

Usage

Syntax: flood_fill(object=VAL [,angle=FLOAT] [,azimuth=FLOAT] [,scale=FLOAT])

 'object'       is the input DEM
 'angle'        is the elevation angle in degrees, measured from up (Default=45)
 'azimuth'      is the sun azimuth in degrees with vertical at 90 (Default=45)
 'scale'        the size of a pixel relative to a DN of height (Default=1)

Examples

Perform the shade on DEM data

dv> a
4149x4075x1 array of short, bsq format [33,814,350 bytes]
dv> b=shade(a,angle=45,azimuth=150,scale=20000)
Sun vector: -0.8660 0.5000 0.7071
4149x4075x1 array of float, bsq format [67,628,700 bytes]

Images

Before and After images

shade before.png shade after.png

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 07-06-2009

Personal tools