[GRASS-user] Combining Rasters Help

Carlos "Guâno" Grohmann carlos.grohmann at gmail.com
Thu Jul 20 15:22:43 EDT 2006


If you want to patch them toghether, i.e., create a single raster from
several pieces, you can use r.patch.

this is from the man page of r.patch:

MAPS=`g.mlist type=rast sep=, pat="map_*"`
g.region rast=$MAPS
r.patch in=$MAPS out=mosaic

it works well, I used it to patch SRTM30 tiles.

Carlos



On 7/20/06, Dylan Beaudette <dylan.beaudette at gmail.com> wrote:
> Hi,
>
> I do not recall the exact file, but a constant in the source code defining the
> max_open_files or something like that needs to be changed. Check the list's
> archives for a post by Hamish
>
> Cheers,
>
> Dylan
>
> On Thursday 20 July 2006 11:27, Slover, Kevin wrote:
> > Been a while since I have used GRASS, and does it feel good to be back
> > using...
> >
> >
> >
> > Am using 5.4, the latest compiled for Linux...
> >
> >
> >
> > Trying to find the best way to approach combining ~4400 raster images
> > into one.  Description are 50 foot ESRI Ascii formatted DEMs imported
> > using r.in.arc.  When attempting to use a bash script to combine these
> > rasters using r.mapcalc, the error appears "ERROR: Too many open raster
> > files"
> >
> >
> >
> > Does anyone know the limit of number of rasters that can be opened at
> > one time?  Or does anyone have a suggestion on how best to combine (do I
> > use r.combine??) the 4400 rasters as painless as possible?
> >
> >
> >
> > Thanks!!
> >
> >
> >
> > Kevin Slover
> >
> > Coastal / GIS Specialist
> >
> > 2872 Woodcock Blvd Suite 230
> >
> > Atlanta GA 30341
> >
> > (P) 678-530-0022
> >
> > (F) 678-530-0044
>
> --
> Dylan Beaudette
> Soils and Biogeochemistry Graduate Group
> University of California at Davis
> 530.754.7341
>
> _______________________________________________
> grassuser mailing list
> grassuser at grass.itc.it
> http://grass.itc.it/mailman/listinfo/grassuser
>


-- 
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Geologist M.Sc  - Doctorate Student at IGc-USP - Brazil
Linux User #89721  - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke




More information about the grass-user mailing list