[GRASS-dev] Error with parallel i.sentinel.import usage (temp_region error?)

2019-12-10 Thread Anika Bettge
Hello all,

I try to import with GRASS78 in parallel Sentinel-2 data with 
"i.sentinel.import -r" (Multicore VM (32 cores -> 31 parallel processes)).

Sometimes the following error occurs (note the formatting comes from deploying 
in actinia):
  ...
  "99..Reprojecting ...", 
  "96..100", 
  "90..99..96..100", 
  "99..93..100", 
  "99..100", 
  "96..96..99..100", 
  "99..100", 
  "Estimated target resolution for input band 
: 9.998178838141047", 
  "Estimated target resolution for input band 
: 9.998178838141047", 
  "Estimated target resolution for input band 
: 9.998178838136036", 
  "Estimated target resolution for input band 
: 9.998178838141047", 
  "Estimated target resolution for input band 
: 9.26372380446332", 
  "Estimated target resolution for input band 
: 9.26372380446332", 
  "ERROR: Region file mapset_a6335f7028114ee9989530cb55874785//WIND is 
empty",   < here
  "ERROR: Region file mapset_a6335f7028114ee9989530cb55874785//WIND is 
empty", 
  "Using given resolution for input band 
: 10.0", 
  "Using given resolution for input band 
: 10.0", 
  "Using given resolution for input band 
: 10.0", 
  "Reprojecting ...", 
  "Reprojecting ...", 
  "Traceback (most recent call last):", 
  "  File \"/usr/local/grass7/scripts/r.import\", line 403, in 
", 
  "sys.exit(main())", 
  "  File \"/usr/local/grass7/scripts/r.import\", line 355, in main", 
  "grass.use_temp_region()", 
  "  File \"/usr/local/grass7/etc/python/grass/script/core.py\", line 
1216, in use_temp_region", 
  "run_command(\"g.region\", save=name, overwrite=True)", 
  "  File \"/usr/local/grass7/etc/python/grass/script/core.py\", line 
441, in run_command", 
  "return handle_errors(returncode, returncode, args, kwargs)", 
  "  File \"/usr/local/grass7/etc/python/grass/script/core.py\", line 
343, in handle_errors", 
  "returncode=returncode)", 
  "grass.exceptions.CalledModuleError: Module run None g.region --o 
save=tmp.r.import.19907 ended with error", 
  "Process ended with non-zero return code 1. See errors in the (error) 
output.", 
  "Traceback (most recent call last):", 
  "  File \"/usr/local/grass7/scripts/r.import\", line 403, in 
", 
  "sys.exit(main())", 
  "  File \"/usr/local/grass7/scripts/r.import\", line 355, in main", 
  "grass.use_temp_region()", 
  "  File \"/usr/local/grass7/etc/python/grass/script/core.py\", line 
1216, in use_temp_region", 
  "run_command(\"g.region\", save=name, overwrite=True)", 
  "  File \"/usr/local/grass7/etc/python/grass/script/core.py\", line 
441, in run_command", 
  "return handle_errors(returncode, returncode, args, kwargs)", 
  "  File \"/usr/local/grass7/etc/python/grass/script/core.py\", line 
343, in handle_errors", 
  "returncode=returncode)", 
  "grass.exceptions.CalledModuleError: Module run None g.region --o 
save=tmp.r.import.20767 ended with error", 
  "Process ended with non-zero return code 1. See errors in the (error) 
output.", 
  "Processing ...", 
  "Using given resolution for input band 
: 10.0", 
  "Processing ...", 
  "Reprojecting ...", 
  "Reprojecting ...", 
  "WARNING: Projection of dataset does not appear to match current 
location.", 
  ...

I found out that r.import uses temp_region and that this sets an environment 
variable WIND_OVERRIDE:

https://github.com/OSGeo/grass/blob/4dc36bb86fa9181259fa7f9b9472f8d3bc4e787e/lib/python/script/core.py#L1281
os.environ['WIND_OVERRIDE'] = name 

And in parallel processing the variable is set by each process and the 
temp_region can be deleted to early.

Does anyone know if this is the reason of my error and how to fix this?

Best,
Anika
___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] partitioning of vector polygon?

2018-08-15 Thread Anika Bettge
Hi,

does anyone know how I can split a polygon into n polygons?

For performing area image classification I need to spatially divide my
training data (points in the polygon) into spatial clumps with those I
want to train different classifiers, so that I do not need to load the
image data for the whole polygon at once in the mapset. The image area
contains 4*10^9 pixels.


Best regards,

Anika


-- 
 
  Anika Bettge
  - Anwendungsentwicklerin -

  mundialis GmbH & Co. KG
  Kölnstraße 99
  53111 Bonn

  Tel: +49 (0)228 / 38 75 80 -80
  Fax: +49 (0)228 / 96 28 99 -57

  Email: bet...@mundialis.de
  Web: https://www.mundialis.de

  Amtsgericht Bonn, HRA 8528
  Komplementärin: mundialis Verwaltungsgesellschaft mbH
  vertreten durch: Dr. Markus Neteler, Hinrich Paulsen, Till Adams
  
  Informationen über Ihre gespeicherten Daten finden Sie auf unserer Homepage 
unter folgendem Link: 
  https://www.mundialis.de/datenschutzerklaerung

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev

[GRASS-dev] r.in.pdal

2018-08-06 Thread Anika Bettge
Hi all,

I just uploaded my first GRASS GIS addon r.in.pdal:

https://trac.osgeo.org/grass/browser/grass-addons/grass7/raster/r.in.pdal.


Best regards,
Anika

-- 
 
  Anika Bettge
  - Anwendungsentwicklerin -

  mundialis GmbH & Co. KG
  Kölnstraße 99
  53111 Bonn

  Tel: +49 (0)228 / 38 75 80 -80
  Fax: +49 (0)228 / 96 28 99 -57

  Email: bet...@mundialis.de
  Web: https://www.mundialis.de

  Amtsgericht Bonn, HRA 8528
  Komplementärin: mundialis Verwaltungsgesellschaft mbH
  vertreten durch: Dr. Markus Neteler, Hinrich Paulsen, Till Adams
  
  Informationen über Ihre gespeicherten Daten finden Sie auf unserer Homepage 
unter folgendem Link: 
  https://www.mundialis.de/datenschutzerklaerung

___
grass-dev mailing list
grass-dev@lists.osgeo.org
https://lists.osgeo.org/mailman/listinfo/grass-dev