瀏覽代碼

note added for band7 and band7 naming (#73)

Markus Neteler 5 年之前
父節點
當前提交
10bda3a9c3
共有 2 個文件被更改,包括 5 次插入1 次删除
  1. 3 1
      imagery/i.vi/i.vi.html
  2. 2 0
      imagery/i.vi/main.c

+ 3 - 1
imagery/i.vi/i.vi.html

@@ -353,10 +353,12 @@ r.univar -e gemi
 
 <h3>Calculation of GVI</h3>
 
-The calculation of GVI from the reflectance values is done as follows:
+The calculation of GVI (Green Vegetation Index - Tasseled Cap) from the
+reflectance values is done as follows:
 
 <div class="code"><pre>
 g.region raster=band.3 -p
+# assuming Landsat-7
 i.vi blue=band.1 green=band.2 red=band.3 nir=band.4 band5=band.5 band7=band.7 viname=gvi output=gvi
 r.univar -e gvi
 </pre></div>

+ 2 - 0
imagery/i.vi/main.c

@@ -161,6 +161,7 @@ int main(int argc, char *argv[])
     opt.blue->description = _("Range: [0.0;1.0]");
     opt.blue->guisection = _("Optional inputs");
 
+    /* TODO: the naming is suboptimal as specific to Landsat-7 */
     opt.chan5 = G_define_standard_option(G_OPT_R_INPUT);
     opt.chan5->key = "band5";
     opt.chan5->required = NO;
@@ -169,6 +170,7 @@ int main(int argc, char *argv[])
     opt.chan5->description = _("Range: [0.0;1.0]");
     opt.chan5->guisection = _("Optional inputs");
 
+    /* TODO: the naming is suboptimal as specific to Landsat-7 */
     opt.chan7 = G_define_standard_option(G_OPT_R_INPUT);
     opt.chan7->key = "band7";
     opt.chan7->required = NO;