<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br></div></span> </div><br><div><div>On Apr 15, 2009, at 12:46 AM, <<a href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</a>> <<a href="mailto:grass-user-request@lists.osgeo.org">grass-user-request@lists.osgeo.org</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; ">Renae,<br><br>On Wed, Apr 15, 2009 at 7:16 AM, Renae Mackas <<a href="mailto:rmackas@sfu.ca">rmackas@sfu.ca</a>> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite">Hello GRASS users-<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I am trying to mosaic colourcomposites from LANDSAT images. A few weeks ago, I had luck doing this using r.patch with the -z flag such as below:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">r.patch -z input=020.020.2000.055_rgb,021.020.2000.014_rgb,021.021.2000.142_rgb,022.020.2000.005_rgb output=mosaic<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">When I try doing this now however, r.patch does not seem to be working. In the output window, it shows a red cirle with an "X" in it next to the command, but does not print any error message below. I have tried patching even just the original rasters (rather than the rgb composites), and continue to get the same results.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Since the initial (successful) attempts with r.patch, I have extended the boundaries of the region I am working with and imported rasters from other locations. All of the image rasters are currently within the region boundaries though. Is there any reason why the changes I have made would have changed how r.patch functions? Any suggestions of how to get it working again?<br></blockquote><br>r.patch (like almost all rast commands) respect the current region.<br>You need to first set the current region to all raster maps of interest,<br>then run r.patch:<br><br>g.region rast=020.020.2000.055_rgb,021.020.2000.014_rgb,021.021.2000.142_rgb,022.020.2000.005_rgb<br>-p<br><br>r.patch ...<br><br>Hope this helps<br>Markus<br></span></blockquote><br></div><div>You don't say which GRASS version you are running and which platform you are using. Recently, we've run into the problem that random modules like r.patch do not work or work intermittently in Windows Vista using the OSGEO4W installer of GRASS 6.4RC3. A new binary installer for GRASS 6.4RC4 hopefully solves this problem.</div><div><br></div><div>Michael</div><br></body></html>