VirtualRasterDataset
Luo_Suppe2026-08-15
gma.gio.VirtualRasterDataset
[class] VirtualRasterDataset(gma_dses, **kwargs):Create a VRT Dataset object!
Parameters:
gma_dses: str||list[str/Dataset].
Datasets or raster file paths.
Optional:
**kwargs:
Other parameters passed to _algos.geo.dataset.raster_translate.
Inheritance
All properties and methods of VirtualRasterDataset are inherited from Dataset - they are not repeated on this page. See the parent class documentation for details.
gma.gio.Dataset →Example
from gma import gio
ds = gio.open_raster('HYP_50M_SR_W.tif')
vrd = gio.VirtualRasterDataset(ds) # in-memory virtual mosaic
print(type(vrd).__name__, vrd.shape, vrd.dtype)
print('same data:', vrd.to_numpy().shape == ds.to_numpy().shape)
VirtualRasterDataset (3, 5400, 10800) Byte
same data: True