ee.Algorithms.HillShadow

Creates a shadow band, with output 1 where pixels are illumunated and 0 where they are shadowed. Takes as input an elevation band, azimuth and zenith of the light source in degrees, a neighborhood size, and whether or not to apply hysteresis when a shadow appears. Currently, this algorithm only works for Mercator projections, in which light rays are parallel.

UsageReturns
ee.Algorithms.HillShadow(image, azimuth, zenith, neighborhoodSize, hysteresis)Image
ArgumentTypeDetails
imageImage

The image to which to apply the shadow algorithm, in whicheach pixel should represent an elevation in meters.

azimuthFloat

Azimuth in degrees.

zenithFloat

Zenith in degrees.

neighborhoodSizeInteger, default: 0

Neighborhood size.

hysteresisBoolean, default: false

Use hysteresis. Less physically accurate, but may generate better images.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!