[GRASS-dev] how to deal with the @mapset in scripts?
Hamish
hamish_nospam at yahoo.com
Tue Jul 3 23:46:35 EDT 2007
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
More information about the grass-dev
mailing list