VRTFetcher
Bases: FromConfigMixin
Data fetcher for virtual rasters
Implements the DataFetcher
protocol.
PARAMETER | DESCRIPTION |
---|---|
path
|
path to the virtual raster (.vrt file)
TYPE:
|
tile_size
|
tile size in meters
TYPE:
|
ground_sampling_distance
|
ground sampling distance in meters
TYPE:
|
interpolation_mode
|
interpolation mode (
TYPE:
|
buffer_size
|
buffer size in meters (specifies the area around the tile that is additionally fetched)
TYPE:
|
drop_channels
|
channel indices to drop (supports negative indexing)
TYPE:
|
from_config
classmethod
Creates a vrt fetcher from the configuration.
PARAMETER | DESCRIPTION |
---|---|
config
|
configuration
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
VRTFetcher
|
vrt fetcher |
__call__
Fetches data from the virtual raster.
PARAMETER | DESCRIPTION |
---|---|
x_min
|
minimum x coordinate
TYPE:
|
y_min
|
minimum y coordinate
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
npt.NDArray
|
data |
VRTFetcherConfig
Bases: pydantic.BaseModel
Configuration for the from_config
class method of VRTFetcher
ATTRIBUTE | DESCRIPTION |
---|---|
path |
path to the virtual raster (.vrt file)
TYPE:
|
tile_size |
tile size in meters
TYPE:
|
ground_sampling_distance |
ground sampling distance in meters
TYPE:
|
interpolation_mode |
interpolation mode ('bilinear' or 'nearest')
TYPE:
|
buffer_size |
buffer size in meters (specifies the area around the tile that is additionally fetched)
TYPE:
|
drop_channels |
channel indices to drop (supports negative indexing)
TYPE:
|