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
|---------|----------------------------------------------------------|
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@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
|---------|----------------------------------------------------------|
On Tue, Aug 12, 2008 at 1:40 AM, maning sambale
<emmanuel.sambale@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
|---------|----------------------------------------------------------|
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
Not sure if this is what you are asking for, but here is an example of
scripted GRASS usage involving two locations:
http://casoilresource.lawr.ucdavis.edu/drupal/node/613
Cheers,
Dylan
Thanks Dylan! Your script might be useful in the succeeding stage of
my project.
Not sure if this is what you are asking for, but here is an example of
scripted GRASS usage involving two locations:
http://casoilresource.lawr.ucdavis.edu/drupal/node/613
Cheers,
Dylan
--
|---------|----------------------------------------------------------|
| __.-._ |"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
|---------|----------------------------------------------------------|
uick question:
Can you run another GRASS instance from a different Mapset while
running a GRASS BATCH JOB?
cheers,
maning
On 8/13/08, maning sambale <emmanuel.sambale@gmail.com> wrote:
Thanks Dylan! Your script might be useful in the succeeding stage of
my project.
Not sure if this is what you are asking for, but here is an example of
scripted GRASS usage involving two locations:
http://casoilresource.lawr.ucdavis.edu/drupal/node/613
Cheers,
Dylan
--
|---------|----------------------------------------------------------|
| __.-._ |"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
|---------|----------------------------------------------------------|
Hi Maning,
have you tried Screen tool? (http://www.linuxjournal.com/article/6340) I
use to launch my GRASS scripts (Bash or Python) within a screen session
an, after desattaching, I can keep on working on the GRASS console,
although this must be done carefully if your script is running on the same
mapset that you are working in the GRASS console. But for different mapset
it should work, at least, I hadn't many problems
Cheers,
Jose
uick question:
Can you run another GRASS instance from a different Mapset while
running a GRASS BATCH JOB?
cheers,
maning
On 8/13/08, maning sambale <emmanuel.sambale@gmail.com> wrote:
Thanks Dylan! Your script might be useful in the succeeding stage of
my project.
Not sure if this is what you are asking for, but here is an example of
scripted GRASS usage involving two locations:
http://casoilresource.lawr.ucdavis.edu/drupal/node/613
Cheers,
Dylan
--
|---------|----------------------------------------------------------|
| __.-._ |"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
|---------|----------------------------------------------------------|
_______________________________________________
grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user
--
José A. Ruiz-Arias
Solar Radiation and Atmosphere Modelling Group
http://www.ujaen.es/investiga/tep220
Physics Department, University of Jaén
Campus Lagunillas, Building A3 066
23071 Jaén Spain
Tlf: +34 953 212 474
Fax: +34 953 212 838