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

_______________________________________________
grass-user mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/grass-user

Reply via email to