Skip to main content

vrt.create_rgb_vrt()

Create a 3-band RGB VRT from VV and VH rasters.

Usage

Source

vrt.create_rgb_vrt(
    vv_path,
    vh_path,
    output_vrt,
    *,
    decibel_scale=False,
)

Deprecated: stack bands derived with PixelFunction.scale() and PixelFunction.div(), label them with VRT.set, then call VRT.to_vrt.

Blue is VV/VH for linear inputs and VV-VH for decibel inputs.

Parameters

vv_path: str | Path | UPath

VV raster.

vh_path: str | Path | UPath

VH raster.

output_vrt: str | Path | UPath

Output VRT.

decibel_scale: bool = False
Whether inputs use decibel scale.

Raises

ValueError
If the inputs have different grids, are complex or have a scale or offset.