[GRASSLIST:4751] Re: batch jobs
Kevin Slover
Kevin.Slover at noaa.gov
Tue Oct 15 22:59:04 EDT 2002
Martin,
I have done several batch programs to help with the input of data into
GRASS. The writing of these scripts is not overly difficult, but it can
get confusing at times. I would be happy to send you a snip-it of my
script to help you get started with it.
Earlier, I had to import up to 200 xyz files and create rasters out of
them, and wrote a script that would read a directory, and perform
s.in.ascii and s.surf.idw. It worked without a hitch. I will send it
tomorrow morning if you would like, when I get back into work.
Martin Wegmann wrote:
>
> hello,
>
> I have a couple of commands which I have to run on each image. Would it be possible to merge these commands and only change the input and output each time for each image?
>
> like input=map1 output=map1a
>
> command x in=map1 out=x
> command y in=x out=y
> and so on until the final out=map1a
>
> as far as I understood the use of shell scripts, they are desigend to do this. But how do I write them and load them into GRASS?
>
> thanks for your help,
> Martin
>
> -------------------------------
>
> Martin Wegmann
> Tropical Ecosystem Research Center
> PMB 44 Winnellie / Darwin
> NT 0821
> Australia
>
> .......
>
> priv.
> 4 Carpentier Cres.
> Wagaman / Darwin
> NT 0810
> Autralia
> 0061 8 8927 1241
--
LTJG Kevin Slover, NOAA
GIS Specialist/Oceanographer/Meteorologist
Tropical Prediction Center/Technical Support Branch
11691 SW 17th St Miami FL 33165
W- 305-229-4456
More information about the grass-user
mailing list