[GRASS-user] Creating a new mapset

Hamish hamish_nospam at yahoo.com
Thu Oct 12 21:12:08 EDT 2006


Joel Pitt wrote:
> Is there any way to create a new mapset without going through the
> GRASS startup script?

Yes.
 
> I'd like to be able to split it up simulation results into different
> mapsets depending on the parameter variables and allow the simulation
> to create them as needed.

To make a new mapset, just mkdir the dirname in the location and copy
over the WIND file from the current mapset.

Then change mapsets with g.mapset  (without an "s" at the end).


eval `g.gisenv`
cd "$GISDBASE/$LOCATION_NAME"
mkdir $newmapset
cp "$GISDBASE/$LOCATION_NAME/$MAPSET/WIND" $newmapset/
g.mapset $newmapset


Hamish




More information about the grass-user mailing list