variete.vrt.sources#

Functions#

source_from_etree#

variete.vrt.sources.source_from_etree(elem)[source]#
Return type

ComplexSource | SimpleSource

Classes#

ComplexSource#

class variete.vrt.sources.ComplexSource(source_filename, source_band, source_properties, nodata, src_window, dst_window, relative_filename=None, source_kind='ComplexSource')[source]#

Bases: object

__init__(source_filename, source_band, source_properties, nodata, src_window, dst_window, relative_filename=None, source_kind='ComplexSource')[source]#
copy()[source]#
Return type

ComplexSource

dst_window: Optional[Window]#
classmethod from_etree(elem)[source]#
Return type

ComplexSource

nodata: UnionType[int, float, None]#
relative_filename: bool#
source_band: int#
source_filename: Path | str | VRTDataset#
source_kind: str#
source_properties: Optional[SourceProperties]#
src_window: Optional[Window]#
to_etree()[source]#
Return type

Element

SimpleSource#

class variete.vrt.sources.SimpleSource(source_filename, source_band=None, src_window=None, dst_window=None, relative_filename=None, source_kind=None, source_properties=None, nodata=None)[source]#

Bases: ComplexSource

__init__(source_filename, source_band=None, src_window=None, dst_window=None, relative_filename=None, source_kind=None, source_properties=None, nodata=None)[source]#
dst_window: None#
nodata: None#
relative_filename: bool#
source_band: int#
source_filename: Path | str | VRTDataset#
source_properties: None#
src_window: None#

SourceProperties#

class variete.vrt.sources.SourceProperties(shape, dtype, block_size)[source]#

Bases: object

__init__(shape, dtype, block_size)[source]#
block_size: tuple[int, int]#
dtype: str#
classmethod from_etree(elem)[source]#
Return type

SourceProperties

shape: tuple[int, int]#
to_etree()[source]#
Return type

Element

Window#

class variete.vrt.sources.Window(x_off, y_off, x_size, y_size)[source]#

Bases: object

__init__(x_off, y_off, x_size, y_size)[source]#
classmethod from_etree(elem)[source]#
Return type

Window

to_etree(name='SrcRect')[source]#
Return type

Element

x_off: float#
x_size: float#
y_off: float#
y_size: float#