Re: [GRASS-user] mosaic raster files
30 minutes for 35 tiles. I tried to use some commercial software: 2 hours until 10 files with subsequent error :D. g.region rast=`g.mlist pat=AST*dem sep=,` r.series input=`g.mlist pat=AST*dem sep=,` output=aster_dem method=average Qui, 2009-07-02 às 08:28 -0700, Jamie Adams escreveu: > If you have GDAL 1.6 installed, you can use gdalbuildvrt to create a > VRT of the files, and then link to this using r.external. This way > you have a mosaic without duplicating the data. > > On Thu, Jul 2, 2009 at 7:53 AM, Milton Cezar Ribeiro > wrote: > Hi Guys, > > I will try first download the latest SVN. In fact I am running > a compiled version of 6.4R4, and I remember, on that time, few > programs (like r.patch if I am not wrong) not compiled > properly. Case it not work, I try r.series. > > Thanks a lot, > > milton > > > 2009/7/2 Hamish > > > Milton Cezar Ribeiro wrote: > > I just downloaded some tiles from GDEM/NASA and > imported on GRASS. > > Now I would like to generate a mosaic with the > tiles, > > but unfortunatelly r.patch > ( http://grass.itc.it/gdp/html_grass63/r.patch.html ) > > is not compiled for GRASS 6.4R4 (windows / vista). > > > Which installer? > > really there is nothing special about r.patch so it is > a bad sign that > it would be missing. what if you install RC5 or the > SVN snapshot binary > from June 2? > > > > So is there a way of I join a list of rasters on a > unique mosaic file? > > > r.series and r.mapcalc should both be able to do the > job, but not as > simply. > > use 'g.region rast=tile1,tile2,tile3,tile5' first to > set the computational > region to the outside bounds of all the tiles listed. > > > Hamish > > > > > > > > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > > > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
Hi Michael Barton, Yes, I am running under Vista (sorry about that!). I will try 6.4R5 (just downloading). Bests, milton 2009/7/2 Michael Barton > > > On Jul 2, 2009, at 8:30 AM, grass-user-requ...@lists.osgeo.org wrote: > > Date: Thu, 2 Jul 2009 10:53:16 -0400 >> From: Milton Cezar Ribeiro >> Subject: Re: [GRASS-user] mosaic raster files >> To: Hamish ,Nikos Alexandris >> >> Cc: grass-user grass-user >> Message-ID: >> <64f1583f0907020753s776e5042p3d7eafa17f258...@mail.gmail.com> >> Content-Type: text/plain; charset="iso-8859-1" >> >> Hi Guys, >> >> I will try first download the latest SVN. In fact I am running a compiled >> version of 6.4R4, and I remember, on that time, few programs (like r.patch >> if I am not wrong) not compiled properly. Case it not work, I try >> r.series. >> >> Thanks a lot, >> >> milton >> >> > Any chance you are running Vista? In the experiences of colleagues and > students, this was broken in Vista (though not consistently) and worked in > XP. I'm pretty sure that the Vista issues have been resolved by RC5. > > Michael > > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
On Jul 2, 2009, at 8:30 AM, grass-user-requ...@lists.osgeo.org wrote: Date: Thu, 2 Jul 2009 10:53:16 -0400 From: Milton Cezar Ribeiro Subject: Re: [GRASS-user] mosaic raster files To: Hamish ,Nikos Alexandris Cc: grass-user grass-user Message-ID: <64f1583f0907020753s776e5042p3d7eafa17f258...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hi Guys, I will try first download the latest SVN. In fact I am running a compiled version of 6.4R4, and I remember, on that time, few programs (like r.patch if I am not wrong) not compiled properly. Case it not work, I try r.series. Thanks a lot, milton Any chance you are running Vista? In the experiences of colleagues and students, this was broken in Vista (though not consistently) and worked in XP. I'm pretty sure that the Vista issues have been resolved by RC5. Michael ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
If you have GDAL 1.6 installed, you can use gdalbuildvrt to create a VRT of the files, and then link to this using r.external. This way you have a mosaic without duplicating the data. On Thu, Jul 2, 2009 at 7:53 AM, Milton Cezar Ribeiro < miltinho.astrona...@gmail.com> wrote: > Hi Guys, > > I will try first download the latest SVN. In fact I am running a compiled > version of 6.4R4, and I remember, on that time, few programs (like r.patch > if I am not wrong) not compiled properly. Case it not work, I try r.series. > > Thanks a lot, > > milton > > 2009/7/2 Hamish > >> >> Milton Cezar Ribeiro wrote: >> > I just downloaded some tiles from GDEM/NASA and imported on GRASS. >> > Now I would like to generate a mosaic with the tiles, >> > but unfortunatelly r.patch ( >> http://grass.itc.it/gdp/html_grass63/r.patch.html ) >> > is not compiled for GRASS 6.4R4 (windows / vista). >> >> Which installer? >> >> really there is nothing special about r.patch so it is a bad sign that >> it would be missing. what if you install RC5 or the SVN snapshot binary >> from June 2? >> >> >> > So is there a way of I join a list of rasters on a unique mosaic file? >> >> r.series and r.mapcalc should both be able to do the job, but not as >> simply. >> >> use 'g.region rast=tile1,tile2,tile3,tile5' first to set the computational >> region to the outside bounds of all the tiles listed. >> >> >> Hamish >> >> >> >> >> >> > > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
Hi Guys, I will try first download the latest SVN. In fact I am running a compiled version of 6.4R4, and I remember, on that time, few programs (like r.patch if I am not wrong) not compiled properly. Case it not work, I try r.series. Thanks a lot, milton 2009/7/2 Hamish > > Milton Cezar Ribeiro wrote: > > I just downloaded some tiles from GDEM/NASA and imported on GRASS. > > Now I would like to generate a mosaic with the tiles, > > but unfortunatelly r.patch ( > http://grass.itc.it/gdp/html_grass63/r.patch.html ) > > is not compiled for GRASS 6.4R4 (windows / vista). > > Which installer? > > really there is nothing special about r.patch so it is a bad sign that > it would be missing. what if you install RC5 or the SVN snapshot binary > from June 2? > > > > So is there a way of I join a list of rasters on a unique mosaic file? > > r.series and r.mapcalc should both be able to do the job, but not as > simply. > > use 'g.region rast=tile1,tile2,tile3,tile5' first to set the computational > region to the outside bounds of all the tiles listed. > > > Hamish > > > > > > ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
Hamish: > > > use 'g.region rast=tile1,tile2,tile3,tile5' first to > > > set the computational region to the outside bounds of all > > > the tiles listed. Nikos: > > Something against using g.region's "-a" flag? > If all tiles are from the same source and of the same type it > will not be needed, as bounds will line up exactly. The -a flag > is useful when resampling is not harmful (e.g. before v.to.rast). > But needlessly resampling is to be avoided. Right! I forgot to write that I force resolution to be kept as is with "res=RESOLUTION". So "g.region -a res=SomeResolution rast=SomeRaster(s)" is ok or non-sense? Nikos ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
Hamish: > > use 'g.region rast=tile1,tile2,tile3,tile5' first to > > set the computational region to the outside bounds of all > > the tiles listed. Nikos: > Something against using g.region's "-a" flag? If all tiles are from the same source and of the same type it will not be needed, as bounds will line up exactly. The -a flag is useful when resampling is not harmful (e.g. before v.to.rast). But needlessly resampling is to be avoided. Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
What about using gdal_merge.py or gdalwarp? http://www.gdal.org/gdal_utilities.html --- Στις Πέμ., 02/07/09, ο/η Milton Cezar Ribeiro έγραψε: > Από: Milton Cezar Ribeiro > Θέμα: [GRASS-user] mosaic raster files > Προς: "grass-user grass-user" > Ημερομηνία: Πέμπτη, 2 Ιούλιος 2009, 4:54 > Dear all, > > I just downloaded some tiles from GDEM/NASA and > imported on GRASS. > Now I would like to generate a mosaic with the tiles, > but unfortunatelly > r.patch ( http://grass.itc.it/gdp/html_grass63/r.patch.html ) > is not > compiled for GRASS 6.4R4 (windows / vista). > So is there a way of I join a list of rasters on a > unique mosaic file? > > Bests > > milton > brazil=toronto > > -Ακολουθεί συνημμένο- > > ___ > grass-user mailing list > grass-user@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/grass-user > ___ Χρησιμοποιείτε Yahoo!; Βαρεθήκατε τα ενοχλητικά μηνύματα (spam); Το Yahoo! Mail διαθέτει την καλύτερη δυνατή προστασία κατά των ενοχλητικών μηνυμάτων http://login.yahoo.com/config/mail?.intl=gr ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
Hamish: ... > use 'g.region rast=tile1,tile2,tile3,tile5' first to set the computational > region to the outside bounds of all the tiles listed. OR, given that you keep the "original" naming convention of the (elevation) tiles without the ".tif" extension (e.g. ASTGTM_N34E024_dem, ASTGTM_N35E023_dem, etc.), you can do: g.region rast=`g.mlist pat=AST*dem sep=,` -pa --- @Hamish: Something against using g.region's "-a" flag? Nikos ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user
Re: [GRASS-user] mosaic raster files
Milton Cezar Ribeiro wrote: > I just downloaded some tiles from GDEM/NASA and imported on GRASS. > Now I would like to generate a mosaic with the tiles, > but unfortunatelly r.patch ( > http://grass.itc.it/gdp/html_grass63/r.patch.html ) > is not compiled for GRASS 6.4R4 (windows / vista). Which installer? really there is nothing special about r.patch so it is a bad sign that it would be missing. what if you install RC5 or the SVN snapshot binary from June 2? > So is there a way of I join a list of rasters on a unique mosaic file? r.series and r.mapcalc should both be able to do the job, but not as simply. use 'g.region rast=tile1,tile2,tile3,tile5' first to set the computational region to the outside bounds of all the tiles listed. Hamish ___ grass-user mailing list grass-user@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/grass-user