[GRASS-user] Really dumb script question

Vincent Bain bain at toraval.fr
Mon Jun 28 08:06:07 EDT 2010


Hello Richard,
just a suggestion, though I'm not a bash expert :

k=10
while [ $k -le 250 ]; do
	i=0
	while [ $i -lt $k ]; do
		image=`echo Background_$i.png`
		<your stack of operations on $image>;
		((i++));
	done
	k=$((k+10));
done

hmmm, perhaps it's not clean at interval borders, but it may be a good
beginning ?

Good luck,
Vincent.


Le lundi 28 juin 2010 à 21:17 +1000, Richard Chirgwin a écrit :
> It's like this. I'm good with Grass-GIS and not good with complicated 
> scripts.
> 
> An r.in.wms process downloaded too many tiles, and broke r.in.gdalwarp. 
> So, I would like to break up the downloaded tiles into groups of ten, 
> run r.in.gdalwarp on the groups, then patch the grouped tiles together 
> at the end.
> 
> I have:
> 
> Background_ _ <0 to 251>.png
> ie -
> Background__0.png to Background__251.png
> 
> 
> What I want to do is
> 
> for i in <group of ten tiles>; do
> r.in.gdalwarp input=<grouped filenames> output=<subset> method=nearest 
> s_srs=EPSG:4326
> done
> 
> But how do I break the set of 251 tiles into groups for this?
> 
> Richard
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
> 




More information about the grass-user mailing list