By default r.patch is used to create a patched raster map. Especially for temporary data, using r.buildvrt for patching can be advantageous with regards to processing time and storage space. r.buildvrt creates a virtual raser map and is used when the v-flag is given. The v-flag excludes the z-flag (using zero (0) for transperancy) and s-flag (do not create color and category files).
Both input and output of this module is a single space time raster dataset. A subset of the input space time raster dataset can be selected using the where option. In addition, input maps can be filtered spatially using the region_relation option.
The raster map layers in the input STRDS are grouped and patched using the given granularity and the semantic_label assigned to the input raster maps.
If present, the semantic label is written into the name of the resulting raster maps. The naming pattern for output raster maps is basename, semantic_label, suffix separated by underscore.
The sorting of the raster map layer can be set using the sort option. Be aware that the sorting of the maps significantly influences the result if input maps overlap spatially. By default the maps are sorted in descending order (desc) using start_time so that the newest raster map is the first input map in r.patch/r.buildvrt, thus ends up on top of the mosaic.
The resulting raster maps can also be registered into an existing Space Time Raster Dataset if the e-flag and --overwrite flags are set.
Please note that the color table of the first input raster is used for the resulting map when the v-flag is used. Values in the resulting raster map that exeed the range of that first raster map will then be rendered on the screen like no data. In that case, please update the color table or the resulting map with t.rast.colors
Patching the MODIS Land Surface Temperature for 2016 (filling missing pixels by subsequent maps in the time series):
t.rast.aggregate.patch input=LST_Day_monthly@modis_lst output=LST_Day_patched_2016 \ --overwrite --verbose -v title=LST_Day_patched description=LST_Day_patched \ granularity="1 year" basename=LST_Day_patched \ where="start_time >= '2016-01' and start_time <= '2016-12'" t.info LST_Day_patched_2016
Patching the MODIS Land Surface Temperature for 2016 (filling missing pixels by subsequent maps in the time series) using a virtual mosaic (r.buildvrt):
t.rast.aggregate.patch input=LST_Day_monthly@modis_lst output=LST_Day_patched_2016_vrt \ --overwrite --verbose -v title=LST_Day_patched description=LST_Day_patched \ granularity="1 year" basename=LST_Day_patched \ where="start_time >= '2016-01' and start_time <= '2016-12'" # Assign a new color table that covers the entire range of the resulting map t.rast.colors input=LST_Day_patched_2016_vrt color=grey t.info LST_Day_patched_2016_vrt
Available at: t.rast.aggregate.patch source code (history)
Accessed: Monday Sep 16 09:38:12 2024
Main index | Temporal index | Topics index | Keywords index | Graphical index | Full index
© 2003-2024 GRASS Development Team, GRASS GIS 8.4.0 Reference Manual