Indices
This module defines the SpectralIndex data structure and a registry of common spectral indices.
IndexCatalog
Source code in src/phytospatial/raster/indices.py
get(name)
Retrieve a SpectralIndex by name from the catalog.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
The name of the spectral index to retrieve. |
required |
Returns:
| Name | Type | Description |
|---|---|---|
SpectralIndex |
SpectralIndex
|
The corresponding SpectralIndex object. |
Source code in src/phytospatial/raster/indices.py
register(index)
Register a new SpectralIndex in the catalog.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
index
|
SpectralIndex
|
The SpectralIndex object to register. |
required |
Returns:
| Type | Description |
|---|---|
None
|
None |