Re: [GRASS-user] Really dumb script question

2010-06-28 Thread Richard Chirgwin

Vincent - thanks twice! I'll let you know how it goes.

Richard

Vincent Bain wrote:

Oops,
checking for your reply, I notice an error in my code at line 3 :
replace i=0 with i=$((k-10))

Yours,
Vincent.


Le lundi 28 juin 2010 à 14:06 +0200, Vincent Bain a écrit :
  

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`
;
((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 ; do
r.in.gdalwarp input= output= 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@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] Really dumb script question

2010-06-28 Thread Vincent Bain
Oops,
checking for your reply, I notice an error in my code at line 3 :
replace i=0 with i=$((k-10))

Yours,
Vincent.


Le lundi 28 juin 2010 à 14:06 +0200, Vincent Bain a écrit :
> 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`
>   ;
>   ((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 ; do
> > r.in.gdalwarp input= output= 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@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] Really dumb script question

2010-06-28 Thread Vincent Bain
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`
;
((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 ; do
> r.in.gdalwarp input= output= 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@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] Really dumb script question

2010-06-28 Thread Richard Chirgwin
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 ; do
r.in.gdalwarp input= output= 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@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user