Skip to content

Commit 0775d63

Browse files
committed
Initial commit
1 parent 49b3ce8 commit 0775d63

File tree

5 files changed

+531
-0
lines changed

5 files changed

+531
-0
lines changed

.flake8

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
[flake8]
2+
3+
# E501 line too long (83 > 79 characters)
4+
# F821 undefined name '_'
5+
6+
exclude = .git
7+
8+
per-file-ignores =
9+
./r.import.probav_lc.py: F821, E501
10+
11+
max-line-length = 88
12+

.github/workflows/flake8.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Python Flake8 Code Quality
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
flake8:
9+
runs-on: ubuntu-20.04
10+
11+
steps:
12+
- uses: actions/checkout@v2
13+
14+
- name: Set up Python
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.8
18+
19+
- name: Install
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install flake8==3.8.4
23+
- name: Run Flake8
24+
run: |
25+
flake8 --config=.flake8 --count --statistics --show-source --jobs=$(nproc) .

Makefile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
MODULE_TOPDIR = ../..
2+
3+
PGM = r.import.probav_lc
4+
5+
include $(MODULE_TOPDIR)/include/Make/Script.make
6+
7+
default: script

r.import.probav_lc.html

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<h2>DESCRIPTION</h2>
2+
3+
<em>r.import.probav_lc</em> is a GRASS Addon that downloads and imports PROBA-V land cover raster maps from <a href="https://zenodo.org/record/3939050">Copernicus Global Land Service: Land Cover 100m: collection 3: epoch 2019: Globe</a> for the current region.
4+
5+
The land cover maps of the years 2015 to 2019 are supported.
6+
7+
To avoid multiple downloads of the data, the user can specify a
8+
<b>directory</b> where the data should be saved. If no <b>directory</b> is
9+
specified, the data will be deleted after the import.
10+
11+
<h2>REQUIREMENTS</h2>
12+
13+
<h3>wget from Python3</h3>
14+
<div class="code"><pre>
15+
pip3 install wget
16+
</pre></div>
17+
18+
<h3>zenodo_get from Python3</h3>
19+
<div class="code"><pre>
20+
pip3 install zenodo_get
21+
</pre></div>
22+
23+
<h2>EXAMPLES</h2>
24+
25+
<h3>Import 100m PROBA-V discrete classification and tree cover fraction map</h3>
26+
<div class="code"><pre>
27+
r.import.probav_lc directory=probaV year=2019 \
28+
discrete_classification_output=discrete_classification_map \
29+
tree_coverfraction_output=tree_coverfraction_map
30+
</pre></div>
31+
32+
<h2>SEE ALSO</h2>
33+
34+
<em>
35+
<a href="r.import.html">r.import</a>
36+
</em>
37+
38+
39+
<h2>AUTHORS</h2>
40+
41+
Anika Weinmann, <a href="https://www.mundialis.de/">mundialis GmbH & Co. KG</a>
42+
43+
<!--
44+
<p>
45+
<i>Last changed: $Date$</i>
46+
-->

0 commit comments

Comments
 (0)