Alfredo Alessandrini schrieb:
how can import a raster from a mapset to other?
Alfredo
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user
From current mapset just use
g.copy [EMAIL PROTECTED],to]
i.e.
g.copy [EMAIL PROTECTED],map1
If you want to copie more than one maps you could use this script I wrote:
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#!/bin/sh
## copies all rastermaps (map)
## r.copy map(1) map(2) map(n)
## from desired mapset to the current mapset
echo "Source-mapset?"
read answer1
echo "Would you like to add a suffix to the map-names?"
echo "(i.e. '_a' results in map_a)"
read answer2
echo "Would you like a prefix to the map-names?"
echo "(i.e. 'b_' results in b_map)"
read answer3
filelist=$*
for f in $filelist ; do
echo copies [EMAIL PROTECTED] to ${answer3}$f${answer2}
echo
g.copy [EMAIL PROTECTED],${answer3}$f${answer2}
###################################################################
####### for copying vektorfiles change the scirpt in ##############
######### g.copy [EMAIL PROTECTED],${answer3}$f${answer2}######
###################################################################
done
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
You can list the desired mapset with i.e.
g.list rast mapset=PERMANENT
cheers
Philipp
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user