GRASS logo

NAME

t.rast.import.gdalvrt - Create a VRT (Virtual Raster Tile) from multiple raster files and import it to a STRDS.

KEYWORDS

temporal, raster, strds, gdal, vrt

SYNOPSIS

t.rast.import.gdalvrt
t.rast.import.gdalvrt --help
t.rast.import.gdalvrt [-lfe] input=name suffix=string [vrt_directory=name] output=name [title=string] [description=string] bands=name [basename=string] start_time=string [end_time=string] [file_pattern=string] [memory=integer] [--overwrite] [--help] [--verbose] [--quiet] [--ui]

Flags:

-l
Link the raster files using r.external
-f
Link the raster files in a fast way, without reading metadata using r.external
-e
Extend existing STRDS
--overwrite
Allow output files to overwrite existing files
--help
Print usage summary
--verbose
Verbose module output
--quiet
Quiet module output
--ui
Force launching GUI dialog

Parameters:

input=name [required]
Name of input directory with raster files to create VRT from
suffix=string [required]
Suffix of files to include in VRT (default: .tif)
Default: tif
vrt_directory=name
Name of directory into which VRT-files are written (default=input)
output=name [required]
Name of the output space time raster dataset
title=string
Title for the output STRDS (only used for new STRDS)
description=string
Description of the output STRDS (only used for new STRDS)
bands=name [required]
JSON file with band configuration
basename=string
Basename for VRT and GRASS raster maps to create
start_time=string [required]
Start time (ISO format) to register the VRT / GRASS raster maps with
end_time=string
End time (ISO format) to register the VRT / GRASS raster maps with
file_pattern=string
File name pattern to import
memory=integer
Maximum memory to be used (in MB)
Cache size for raster rows
Default: 300

Table of contents

DESCRIPTION

t.rast.import.gdalvrt imports multiple external raster files as virtual mosaic (VRT) and registeres the resulting map in a Space Time Raster Dataset (STRDS).

EXAMPLE

Daily mosaic for Sentinel-3 Fractiona Snow Cover

Patching multiband Sentinel-2 (MSI) L1C data into a daily mosaic:
t.rast.import.gdalvrt input=./ output=S2_L1C_daily \
  bands=./L1C_bands.json file_pattern="S2*L1C*20250707*.tif" -e --o
t.info S2_L1C_daily

SEE ALSO

t.rast.patch, t.rast.patch,

Temporal data processing Wiki

AUTHOR

Stefan Blumentrath, NVE

SOURCE CODE

Available at: t.rast.import.gdalvrt source code (history)

Accessed: Monday Jan 12 08:59:18 2026


Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index

© 2003-2025 GRASS Development Team, GRASS GIS 8.4.1 Reference Manual