[GRASS-SVN] r67730 - grass-addons/grass7/raster/r.traveltime
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Feb 5 06:37:19 PST 2016
Author: mlennert
Date: 2016-02-05 06:37:19 -0800 (Fri, 05 Feb 2016)
New Revision: 67730
Modified:
grass-addons/grass7/raster/r.traveltime/main.c
Log:
Allow for input maps in different mapsets than current
Modified: grass-addons/grass7/raster/r.traveltime/main.c
===================================================================
--- grass-addons/grass7/raster/r.traveltime/main.c 2016-02-05 14:09:12 UTC (rev 67729)
+++ grass-addons/grass7/raster/r.traveltime/main.c 2016-02-05 14:37:19 UTC (rev 67730)
@@ -391,20 +391,22 @@
dis = discharge * 1.0E-9; // l/s/km^2 => m/s
- mapset = G_find_raster2(map_dir, "");
- mapset = G_find_raster2(map_accu, "");
- mapset = G_find_raster2(map_dtm, "");
- mapset = G_find_raster2(map_n, "");
/* determine the inputmap type (CELL/FCELL/DCELL) */
+ mapset = G_find_raster2(map_dir, "");
data_type_dir = Rast_map_type(map_dir, mapset);
+ in_dir = Rast_open_old(map_dir, mapset);
+
+ mapset = G_find_raster2(map_accu, "");
data_type_accu = Rast_map_type(map_accu, mapset);
+ in_accu = Rast_open_old(map_accu, mapset);
+
+ mapset = G_find_raster2(map_n, "");
data_type_n = Rast_map_type(map_n, mapset);
+ in_n = Rast_open_old(map_n, mapset);
+
+ mapset = G_find_raster2(map_dtm, "");
data_type_dtm = Rast_map_type(map_dtm, mapset);
-
- in_dir = Rast_open_old(map_dir, mapset);
- in_accu = Rast_open_old(map_accu, mapset);
- in_n = Rast_open_old(map_n, mapset);
in_dtm = Rast_open_old(map_dtm, mapset);
G_debug(3, "number of rows %d", cellhd_accu.rows);
More information about the grass-commit
mailing list