From 5727717bc3ea41bedabd339ae0f4b3c48ed55e3f Mon Sep 17 00:00:00 2001 From: Emma Oceguera-Conchas <113361856+E-O-Conchas@users.noreply.github.com> Date: Wed, 8 Nov 2023 10:35:19 +0100 Subject: [PATCH] Script for loading the raster created in the step 4 to GRASS GIS. Important, this scrip has to be run inside GRASS GIS --- 5.load_vrt_to_grass.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 5.load_vrt_to_grass.py diff --git a/5.load_vrt_to_grass.py b/5.load_vrt_to_grass.py new file mode 100644 index 0000000..fccd6b9 --- /dev/null +++ b/5.load_vrt_to_grass.py @@ -0,0 +1,20 @@ +from grass.pygrass.modules import Module + + + +# Define the path to your VRT file + +input_vrt = "S:/Emmanuel_OcegueraConchas/eu_fragmentation_forest/valid_tiles_test2.vrt" + + + +# Define the name of the output raster layer in GRASS GIS + +output_raster = "eu_forest_frag_test" + + + +# Import the raster using r.in.gdal + +Module("r.in.gdal", input=input_vrt, output=output_raster, overwrite=True) + -- GitLab