SlopeProcessor
Bases: IDMixin
Tiles processor that computes the slope from a channel
Experimental
SlopeProcessor 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:
|
unit
|
Unit of the slope ( |
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 slope processor from the configuration.
| PARAMETER | DESCRIPTION |
|---|---|
config
|
Configuration
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
SlopeProcessor
|
Slope processor |
SlopeProcessorConfig
Bases: pydantic.BaseModel
Configuration for the from_config class method of SlopeProcessor
Create the configuration from a config file
- Use 'degrees' or 'percent' instead of
SlopeUnit.DEGREESorSlopeUnit.PERCENT - Use null instead of None
Usage
You can create the configuration from a config file.
package: 'aviary'
name: 'SlopeProcessor'
config:
channel_name: 'dem'
unit: 'degrees'
new_channel_name: 'slope'
max_num_threads: null
| ATTRIBUTE | DESCRIPTION |
|---|---|
channel_name |
Channel name - defaults to 'dem'
TYPE:
|
unit |
Unit of the slope (
TYPE:
|
new_channel_name |
New channel name - defaults to 'slope'
TYPE:
|
max_num_threads |
Maximum number of threads - defaults to None
TYPE:
|