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

Ken Mankoff mankoff at gmail.com
Wed Jul 11 02:56:25 PDT 2018


Right. Sorry for the silly question. I thought that "-c" was only for
creating locations, but it clearly says it creates mapsets too. Thank
you!

  -k.

On 7/11/18, Moritz Lennert <mlennert at club.worldonline.be> wrote:
> 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