1

Can I run the GRASS command 'r.patch' on raster files which are not "loaded" into the current GRASS session? That is, rasters which are simply in my folder but not in a GRASS location & mapset?

nmtoken
13.6k5 gold badges39 silver badges91 bronze badges
asked Apr 3, 2012 at 1:22

1 Answer 1

1

No, to work with raster files in GRASS you have to import the rasters with r.in.gdal or you can link external raster files with r.external:

r.external input=/path/to/raster1.tif output=raster1
r.external input=/path/to/raster2.tif output=raster2
g.region rast=raster1,raster2 -p
r.patch input=raster1,raster2 output=raster_patched
markusN
13.1k33 silver badges49 bronze badges
answered Apr 3, 2012 at 7:45
1

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.