[GRASS-SVN] r58021 - grass/trunk/temporal/t.rast.neighbors
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Oct 16 16:31:40 PDT 2013
Author: huhabla
Date: 2013-10-16 16:31:40 -0700 (Wed, 16 Oct 2013)
New Revision: 58021
Modified:
grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py
Log:
New handling of mapset names
Modified: grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py
===================================================================
--- grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py 2013-10-16 23:30:12 UTC (rev 58020)
+++ grass/trunk/temporal/t.rast.neighbors/t.rast.neighbors.py 2013-10-16 23:31:40 UTC (rev 58021)
@@ -94,8 +94,6 @@
overwrite = grass.overwrite()
- mapset = grass.gisenv()["MAPSET"]
-
sp = tgis.open_old_space_time_dataset(input, "strds", dbif)
maps = sp.get_registered_maps_as_objects(where=where, dbif=dbif)
@@ -123,8 +121,7 @@
for map in maps:
count += 1
map_name = "%s_%i" % (base, count)
- new_map = tgis.open_new_map_dataset(map_name, None, mapset,
- type="raster",
+ new_map = tgis.open_new_map_dataset(map_name, None, type="raster",
temporal_extent=map.get_temporal_extent(),
overwrite=overwrite, dbif=dbif)
new_maps.append(new_map)
More information about the grass-commit
mailing list