HillshadeProcessor
Bases: IDMixin
Tiles processor that computes the hillshade from a channel or channels
Experimental
HillshadeProcessor is experimental since 1.3.0 and may change without notice.
Notes
- Requires a raster channel
Implements the TilesProcessor protocol.
| PARAMETER | DESCRIPTION |
|---|---|
channel_name
|
Channel name
TYPE:
|
slope_channel_name
|
Channel name of the slope channel
TYPE:
|
aspect_channel_name
|
Channel name of the aspect channel
TYPE:
|
azimuth
|
Angle to north of the light source in degrees
TYPE:
|
altitude
|
Angle to the horizontal plane of the light source in degrees
TYPE:
|
new_channel_name
|
New channel name
TYPE:
|
max_num_threads
|
Maximum number of threads
TYPE:
|
id
property
| RETURNS | DESCRIPTION |
|---|---|
uuid.UUID
|
ID |
from_config
classmethod
Creates a hillshade processor from the configuration.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Configuration
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
HillshadeProcessor
|
Hillshade processor |
HillshadeProcessorConfig
Bases: pydantic.BaseModel
Configuration for the from_config class method of HillshadeProcessor
Create the configuration from a config file
- Use null instead of None
Usage
You can create the configuration from a config file.
package: 'aviary'
name: 'HillshadeProcessor'
config:
channel_name: 'dem'
azimuth: 315.
altitude: 45.
new_channel_name: 'hillshade'
max_num_threads: null
| ATTRIBUTE | DESCRIPTION |
|---|---|
channel_name |
Channel name - defaults to 'dem'
TYPE:
|
slope_channel_name |
Channel name of the slope channel - defaults to None
TYPE:
|
aspect_channel_name |
Channel name of the aspect channel - defaults to None
TYPE:
|
azimuth |
Angle to north of the light source in degrees - defaults to 315.
TYPE:
|
altitude |
Angle to the horizontal plane of the light source in degrees - defaults to 45.
TYPE:
|
new_channel_name |
New channel name - defaults to 'hillshade'
TYPE:
|
max_num_threads |
Maximum number of threads - defaults to None
TYPE:
|