[GRASS-dev] how to deal with the @mapset in scripts?
Carlos "Guâno" Grohmann
carlos.grohmann at gmail.com
Wed Jul 4 07:23:01 EDT 2007
Many thanks Hamish.
Carlos
On 7/4/07, Hamish <hamish_nospam at yahoo.com> wrote:
> Carlos \ wrote:
> > the @mapset is not a problem when the maps are used by some command,
> > like r.mapcalc, bu it is a problem because the default output map (if
> > you don't give a name) will be based on the input, like:
> > input : in_map
> > output : in_map_roughness_3x3
> >
> > so I need to get rid of the @mapset, or else it will be set to
> >
> > in_map at mapset_roughness_3x3
> >
> > and r.mapcalc will fail.
>
>
> OUTMAP="`echo "$INMAP" | cut -f1 -d'@'`_roughness_3x3"
>
>
>
> Hamish
>
--
+-----------------------------------------------------------+
Carlos Henrique Grohmann - Guano
Visiting Researcher at Kingston University London - UK
Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke
More information about the grass-dev
mailing list