Skip to content

Commit

Permalink
new i.sentinel modules: msg and wording cosmetics
Browse files Browse the repository at this point in the history
  • Loading branch information
neteler committed Nov 29, 2020
1 parent 33f4ae6 commit 5151b09
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,18 +1,21 @@
<h2>DESCRIPTION</h2>

<em>i.sentinel.coverage</em> is a GRASS GIS addon python script to
check the area coverage of the by filters selected sentinel scenes.

The coverage check considers only the check of the coverage by footprints and
does not include the cloud coverage.
check the area coverage by Sentinel scenes selected by a filter.
<p>
The coverage test considers only the geometric coverage by Sentinel
scene footprints and does not include the cloud covered pixels.

<h2>EXAMPLE</h2>

<h3>Check Sentinel-2 scenes by region, cloud coverage, start and end time</h3>

<div class="code"><pre>
i.sentinel.coverage output=s2names.txt settings=/mnt/pgpass/.sentinel.txt start=2020-01-01 end=2020-01-31 clouds=70 area=mangkawuk@mangkawuk type=s2 minpercent=95
</pre></div>

<h3>Check Sentinel-2 scenes by names</h3>

<div class="code"><pre>
i.sentinel.coverage settings=/mnt/pgpass/.sentinel.txt output=s2names2.txt names=S2A_MSIL2A_20200104T024111_N0213_R089_T49MGU_20200104T061337,S2B_MSIL2A_20200129T023939_N0213_R089_T49MGU_20200201T153252 type=s2 minpercent=95 area=mangkawuk@mangkawuk
</pre></div>
Expand All @@ -28,7 +31,7 @@ <h2>SEE ALSO</h2>

<h2>AUTHORS</h2>

Anika bettge, mundialis, bettge at mundialis.de
Anika Bettge, mundialis, bettge at mundialis.de


<!--
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,10 @@ def main():
grass.run_command(
'v.patch', input=','.join(fp_list), output=fps, quiet=True)

grass.message(_("Getting size of %s ...") % area)
grass.message(_("Getting size of <%s> area ...") % area)
areasize = get_size(area)

grass.message(_("Getting size of footprints in %s ...") % area)
grass.message(_("Getting size of footprints in area <%s> ...") % area)
fps_in_area = 'tmp_fps_in_area_%s' % str(os.getpid())
rm_vectors.append(fps_in_area)
grass.run_command(
Expand All @@ -274,7 +274,7 @@ def main():
fpsize = get_size(fps_in_area_dis)

percent = fpsize / areasize * 100.0
grass.message(_("%.2f percent of the %s is covered") % (percent, area))
grass.message(_("%.2f percent of the area <%s> is covered") % (percent, area))

if options['minpercent']:
if percent < int(options['minpercent']):
Expand All @@ -285,7 +285,7 @@ def main():
with open(output, 'w') as f:
f.write(','.join(name_list))
grass.message(_(
"Name of Sentinel scenes are written to <%s>") % (output))
"Name of Sentinel scenes are written to file <%s>") % (output))

# TODO Sentinel-1 select only "one" scene (no overlap)

Expand Down

0 comments on commit 5151b09

Please sign in to comment.