[GRASS-dev] r.in.gdal and xargs

Blumentrath, Stefan Stefan.Blumentrath at nina.no
Mon Mar 6 03:02:03 PST 2017


Dear all,

I am trying to import time series data using a combination of xargs an r.in gdal:
cat current_datasets_age.txt | awk -v U="myunits" -v N="name" '{ print "r.in.gdal input=$1 ".bil output=" $2 "_tmp title=\"" N " in " U " at " $3 "\" --o --q -o\0"}' | xargs -P 10 -I {} -0 bash -c {}

In some cases (5 out of ~20k) I get:
ERROR: Unable to make mapset element .tmp/HOST (/grassdata/ETRS_33N/timseries/.tmp): File exists

It does not happen regularly. Can there be race conditions?
I am using GRASS 7.2 (r70188) on Ubuntu 14.04 LTS.

I am grateful for any hint.

Kind regards,
Stefan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20170306/9c0b8b29/attachment.html>


More information about the grass-dev mailing list