Skip to content

Commit

Permalink
Merge pull request #5 from mundialis/i.sentinel_2.autotraining
Browse files Browse the repository at this point in the history
add i.sentinel_2.autotraining
  • Loading branch information
anikaweinmann authored Jul 6, 2023
2 parents 9c5d123 + 95f7319 commit 0bc62fc
Show file tree
Hide file tree
Showing 5 changed files with 790 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ max-line-length = 80
# E203 # whitespace before ':' (Black)

per-file-ignores =
./i.sentinel_2.parallel.index/i.sentinel_2.parallel.index.py: E501,F821,W503
./i.sentinel_2.autotraining/i.sentinel_2.autotraining.py: E501,F821
./i.sentinel_2.parallel.index/i.sentinel_2.parallel.index.py: E501,F821
./i.sentinel_2.sen2cor/i.sentinel_2.sen2cor.py: E501,F821
7 changes: 7 additions & 0 deletions i.sentinel_2.autotraining/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
MODULE_TOPDIR = ../..

PGM = i.sentinel_2.autotraining

include $(MODULE_TOPDIR)/include/Make/Script.make

default: script
27 changes: 27 additions & 0 deletions i.sentinel_2.autotraining/i.sentinel_2.autotraining.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<h2>DESCRIPTION</h2>

<em>i.sentinel_2.autotraining</em> is a GRASS addon that automatically creates
raster and vector training/validation data for further classification. It
covers the classes water, low vegetation, forest, bare soil and built-up.

<h2>EXAMPLE</h2>

<div class="code"><pre>
i.sentinel_2.autotraining ndvi=ndvi ndwi=ndwi ndbi=ndbi bsi=bsi \
ref_classification=PROBAV_classification_Borneo \
ref_treecover_fraction=PROBA_V_100m_treecoverfraction \
percentage_threshold=0.1 npoints=1000 output_vector=test_autotraining_vector \
output_raster=test_autotraining_raster
</pre></div>

<h2>SEE ALSO</h2>

<em>
<a href="https://grass.osgeo.org/grass-stable/manuals/r.mapcalc.html">r.mapcalc</a>,
<a href="https://grass.osgeo.org/grass-stable/manuals/r.patch.html">r.patch</a>,
<a href="https://grass.osgeo.org/grass-stable/manuals/addons/r.sample.category.html">r.sample.category</a>
</em>

<h2>AUTHOR</h2>

Guido Riembauer, <a href="https://www.mundialis.de/">mundialis GmbH &amp; Co. KG</a>
Loading

0 comments on commit 0bc62fc

Please sign in to comment.