[GRASS-user] temporary layer creation

Markus Neteler neteler at osgeo.org
Tue Sep 27 12:21:17 EDT 2011


On Tue, Sep 27, 2011 at 5:58 PM, Rainer M Krug <r.m.krug at gmail.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 27/09/11 16:35, Markus Neteler wrote:
>> On Tue, Sep 27, 2011 at 1:44 PM, Rainer M Krug <r.m.krug at gmail.com>
>> wrote:
>>> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
>>>
>>> Hi I want to need to create a temporary raster layer - is there
>>> a function to create a unique name for this raster?
>>
>> Check
>> http://grass.osgeo.org/wiki/Parallel_GRASS_jobs#The_Grid_Engine_script
>>
>>
> ...
>> # generate machine (blade) unique TMP string UNIQUE=`mktemp`
>> MYTMP=`basename $UNIQUE` ...
>>
>> "mktemp" is part of "coreutils" on my Linux machine (maybe use it
>> with --dry-run).
>
> Thanks - that's an idea. But if I see it correctly, you use it to
> create a temporary mapset - I would only need a temporary raster - is
> there an easier way to achieve that, apart from checking in (one of
> the) the directory where the rasters are stored?

The idea was to generate a machine unique name. That can be
used for anything then since it is in the $MYTMP variable.

Markus


More information about the grass-user mailing list