[GRASS-user] Re: batch job on multiple locations
maning sambale
emmanuel.sambale at gmail.com
Tue Aug 12 06:06:20 EDT 2008
This script seems to work for me:
#!/bin/sh -x
cd
cd /Users/maning/GRASSDATA/
for i in $( ls ); do
cd
cd /Users/maning/GRASSDATA/
alias
grass64="/Users/maning/sources/grass64/bin.i386-apple-darwin9.4.0/./grass64"
export GRASS_BATCH_JOB=/Users/maning/bin/test_mail.sh
echo item: ${i}
`grass64 "/Users/maning/GRASSDATA/${i}/PERMANENT/"`
done
It basically does, for all Location PERMANENT mapset in GRASSDATA
directory, run the test_mail.sh script
cheers,
maning
On 8/12/08, maning sambale <emmanuel.sambale at gmail.com> wrote:
> Hi,
>
> Following the instructions here:
> http://grass.osgeo.org/wiki/GRASS_and_Shell#GRASS_Batch_jobs
>
> I can now run a grass batch job in a selected location and mapset.
> This time, I want to run the batch job on various Location and Mapset.
>
> I've been trying to understand what was discussed in
> http://grass.osgeo.org/wiki/Parallel_GRASS_jobs
>
> But can't seem to "grok" how it works. Basically I just want to run
> my script on a series of Location (different LANDSAT tiles) and mapset
> (PERMANENT).
>
> Any ideas?
>
> cheers,
> maning
> --
> |---------|----------------------------------------------------------|
> | __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda |
> | '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
> | /'.-c |Linux registered user #402901, http://counter.li.org/ |
> | | /T |http://esambale.wikispaces.com|
> | _)_/LI
> |---------|----------------------------------------------------------|
>
--
|---------|----------------------------------------------------------|
| __.-._ |"Ohhh. Great warrior. Wars not make one great." -Yoda |
| '-._"7' |"Freedom is still the most radical idea of all" -N.Branden|
| /'.-c |Linux registered user #402901, http://counter.li.org/ |
| | /T |http://esambale.wikispaces.com|
| _)_/LI
|---------|----------------------------------------------------------|
More information about the grass-user
mailing list