From b98a46de50bb44b27c5314d671064dcc6332e4bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C4=81ris=20Narti=C5=A1s?= Date: Sun, 14 Nov 2021 18:28:52 +0200 Subject: [PATCH] Rename band references to semantic labels (#1928) Rename band references to semantic labels (fixes #1868) --- imagery/i.cca/i.cca.html | 2 +- imagery/i.cca/main.c | 4 +- imagery/i.cluster/global.h | 2 +- imagery/i.cluster/i.cluster.html | 32 ++-- imagery/i.cluster/main.c | 4 +- imagery/i.cluster/open_files.c | 12 +- imagery/i.gensig/i.gensig.html | 14 +- imagery/i.gensig/openfiles.c | 8 +- imagery/i.gensigset/i.gensigset.html | 8 +- imagery/i.gensigset/openfiles.c | 6 +- imagery/i.maxlik/i.maxlik.html | 2 +- imagery/i.maxlik/open.c | 4 +- imagery/i.smap/i.smap.html | 28 +-- imagery/i.smap/openfiles.c | 4 +- imagery/imageryintro.html | 2 +- include/grass/defs/imagery.h | 4 +- include/grass/defs/raster.h | 8 +- include/grass/imagery.h | 4 +- lib/imagery/iclass_signatures.c | 2 +- lib/imagery/sig.c | 100 +++++----- lib/imagery/sigset.c | 106 +++++------ lib/imagery/testsuite/test_imagery_sigfile.py | 174 ++++++++++-------- .../testsuite/test_imagery_sigsetfile.py | 126 +++++++------ lib/raster/raster_metadata.c | 62 +++---- lib/raster/testsuite/test_raster_metadata.py | 76 ++++---- lib/temporal/SQL/raster_metadata_table.sql | 2 +- lib/temporal/SQL/raster_views.sql | 4 +- .../SQL/update_strds_metadata_template.sql | 2 +- lib/temporal/SQL/upgrade_db_2_to_3.sql | 2 +- python/grass/Makefile | 2 +- python/grass/bandref/__init__.py | 1 - python/grass/pygrass/raster/abstract.py | 30 +-- .../{bandref => semantic_label}/Makefile | 2 +- python/grass/semantic_label/__init__.py | 1 + .../{bandref => semantic_label}/reader.py | 106 ++++++----- python/grass/temporal/abstract_map_dataset.py | 8 +- .../temporal/abstract_space_time_dataset.py | 42 ++--- .../grass/temporal/c_libraries_interface.py | 80 ++++---- python/grass/temporal/extract.py | 8 +- python/grass/temporal/mapcalc.py | 2 +- python/grass/temporal/metadata.py | 34 ++-- python/grass/temporal/open_stds.py | 12 +- python/grass/temporal/register.py | 40 ++-- python/grass/temporal/space_time_datasets.py | 54 +++--- raster/r.info/main.c | 10 +- raster/r.info/r.info.html | 2 +- raster/r.support/main.c | 48 ++--- raster/r.support/r.support.html | 14 +- raster/r.support/testsuite/test_r_support.py | 32 ++-- scripts/g.bands/g.bands.py | 21 +-- scripts/g.bands/testsuite/test_g_bands.py | 4 +- scripts/i.band/i.band.html | 36 ++-- scripts/i.band/i.band.py | 67 ++++--- scripts/i.band/testsuite/test_i_band.py | 28 +-- temporal/t.info/t.info.html | 8 +- temporal/t.list/t.list.py | 4 +- temporal/t.rast.list/t.rast.list.html | 16 +- temporal/t.rast.list/t.rast.list.py | 4 +- temporal/t.rast.mapcalc/t.rast.mapcalc.html | 8 +- temporal/t.register/t.register.html | 16 +- temporal/t.upgrade/t.upgrade.html | 2 +- 61 files changed, 793 insertions(+), 753 deletions(-) delete mode 100644 python/grass/bandref/__init__.py rename python/grass/{bandref => semantic_label}/Makefile (94%) create mode 100644 python/grass/semantic_label/__init__.py rename python/grass/{bandref => semantic_label}/reader.py (59%) diff --git a/imagery/i.cca/i.cca.html b/imagery/i.cca/i.cca.html index e597b8531a0..3daaaa998c8 100644 --- a/imagery/i.cca/i.cca.html +++ b/imagery/i.cca/i.cca.html @@ -80,7 +80,7 @@

AUTHORS

Ali R. Vali, University of Texas
-Band reference support: Maris Nartiss, +Semantic label support: Maris Nartiss, University of Latvia