فهرست منبع

Added i.vi

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33580 15284696-431f-4ddb-bdfa-cd5b030d7da7
Yann Chemin 16 سال پیش
والد
کامیت
7464906d03
5فایلهای تغییر یافته به همراه13 افزوده شده و 4 حذف شده
  1. 1 0
      gui/tcltk/gis.m/gmmenu.tcl
  2. 8 1
      gui/wxpython/gui_modules/menudata.py
  3. 2 1
      imagery/Makefile
  4. 1 1
      imagery/i.albedo/main.c
  5. 1 1
      imagery/i.qc.modis/main.c

+ 1 - 0
gui/tcltk/gis.m/gmmenu.tcl

@@ -549,6 +549,7 @@ set descmenu [subst  {
 				{separator}
 				{command {[G_msg "Albedo"]} {} "i.albedo: Calculates Albedo from Modis, Aster, Landsat or AVHRR" {} -command {execute i.albedo }}
 				{separator}
+				{command {[G_msg "Vegetation Indices"]} {} "i.vi: Calculates 14 types of Vegetation Indices" {} -command {execute i.vi }}
 	}}
 	{command {[G_msg "Brovey sharpening"]} {} "i.fusion.brovey: Brovey transformation and pan sharpening" {} -command {execute i.fusion.brovey }}
 	{cascad {[G_msg "Classify image"]} {} "" $tmenu {			

+ 8 - 1
gui/wxpython/gui_modules/menudata.py

@@ -12,7 +12,7 @@ License (>=v2). Read the file COPYING that comes with GRASS
 for details.
 
 @author Michael Barton (Arizona State University)
-@author Yann Chemin
+@author Yann Chemin <yann.chemin gmail.com>
 @author Martin Landa <landa.martin gmail.com>
 """
 
@@ -1619,12 +1619,19 @@ class Data:
                                  _("Extract Modis Quality flags as raster values."),
                                  "self.OnMenuCmd",
                                  "i.qc.modis"),
+	                        ("","","", ""),
 
                                 (_("Albedo"),
                                  _("Albedo from Modis, Aster, Landsat, AVHRR."),
                                  "self.OnMenuCmd",
                                  "i.albedo"),
 				)
+
+                                (_("Vegetation Indices"),
+                                 _("14 types of vegetation Indices."),
+                                 "self.OnMenuCmd",
+                                 "i.vi"),
+				)
                          ),
                         ("","","", ""),
 

+ 2 - 1
imagery/Makefile

@@ -5,6 +5,7 @@ include $(MODULE_TOPDIR)/include/Make/Vars.make
 SUBDIRS = \
 	i.albedo \
 	i.atcorr \
+	i.cca \
 	i.cluster \
 	i.find \
 	i.gensig \
@@ -18,7 +19,7 @@ SUBDIRS = \
 	i.smap \
 	i.target \
 	i.pca \
-	i.cca
+	i.vi 
 
 FFTWBASED = i.fft i.ifft i.zc
 

+ 1 - 1
imagery/i.albedo/main.c

@@ -145,7 +145,7 @@ int main(int argc, char *argv[])
 
     for (; *ptr != NULL; ptr++) {
 	if (nfiles >= MAXFILES)
-	    G_fatal_error(_("too many ETa files. Only %d allowed"), MAXFILES);
+	    G_fatal_error(_("too many input files. Only %d allowed"), MAXFILES);
 	name = *ptr;
 
 	infd[nfiles] = G_open_cell_old(name, "");

+ 1 - 1
imagery/i.qc.modis/main.c

@@ -221,7 +221,7 @@ int main(int argc, char *argv[])
     G_free(outrast);
     G_close_cell(outfd);
 
-    /* Color from -1.0 to +1.0 in grey */ 
+    /* Color from 0 to 10 in grey */ 
     G_init_colors(&colors);
     G_add_color_rule(0, 0, 0, 0, 10, 255, 255, 255, &colors);
     G_short_history(result, "raster", &history);