Przeglądaj źródła

fix typo, code comment

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@46128 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 14 lat temu
rodzic
commit
e37dd9bc05
1 zmienionych plików z 2 dodań i 3 usunięć
  1. 2 3
      imagery/i.atcorr/main.cpp

+ 2 - 3
imagery/i.atcorr/main.cpp

@@ -251,9 +251,10 @@ static void process_raster(int ifd, InputMask imask, ScaleRange iscale,
     FCELL prev_alt = -1.f;
     FCELL prev_vis = -1.f;
     int row, col, nrows, ncols;
+    /* switch on optimization automatically if elevation and/or visibility map is given */
     bool optimize = (ialt_fd >= 0 || ivis_fd >= 0);
     
-#ifdef _NO_OPTIMZE_
+#ifdef _NO_OPTIMIZE_
     optimize = false;
 #endif
 
@@ -622,8 +623,6 @@ int main(int argc, char *argv[])
     if (opts.etmafter->answer)
 	imask = (InputMask) (imask | ETM_AFTER);
 
-    /* switch on optimization automatically if elevation and/or visibility map is given? */
-
     /* process the input raster and produce our atmospheric corrected output raster. */
     G_message(_("Atmospheric correction..."));
     process_raster(iimg_fd, imask, iscale, ialt_fd, ivis_fd,