[GRASS-user] creating a new mapset in an existing location

Moritz Lennert mlennert at club.worldonline.be
Wed Jul 11 02:35:32 PDT 2018


On 11/07/18 11:24, Ken Mankoff wrote:
> Dear List,
> 
> Is there a way to create a new mapset from the command line?
> 
> My use case is that I'd like to run parallel jobs (with GNU parallel).
> 
> But,
> 
>> ...it's recommended to launch each job in its own mapset within the
>> location.
> 
> according to ttps://grasswiki.osgeo.org/wiki/Parallel_GRASS_jobs
> 
> I'd like to have the parallel calls create the new mapset, each named JOB_SLOT_NUM (up to n CPU cores). I don't know in advance if I'll be spawning 4, 8, 16, etc. parallel jobs.
> 


grass -c /PATH/TO/LOCATION/newMapsetName

does the trick.

If you only want to create the mapset, but not enter it, you can use:

grass -ce /PATH/TO/LOCATION/newMapsetName

Moritz



More information about the grass-user mailing list