[GRASS-SVN] r63312 - in grass-addons/grass7/raster: r.lake.series r.sun.daily r.sun.hourly

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 1 06:57:58 PST 2014


Author: annakrat
Date: 2014-12-01 06:57:58 -0800 (Mon, 01 Dec 2014)
New Revision: 63312

Modified:
   grass-addons/grass7/raster/r.lake.series/r.lake.series.py
   grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py
   grass-addons/grass7/raster/r.sun.hourly/r.sun.hourly.py
Log:
fix addons creating temporal output which used old temporal API

Modified: grass-addons/grass7/raster/r.lake.series/r.lake.series.py
===================================================================
--- grass-addons/grass7/raster/r.lake.series/r.lake.series.py	2014-12-01 11:15:45 UTC (rev 63311)
+++ grass-addons/grass7/raster/r.lake.series/r.lake.series.py	2014-12-01 14:57:58 UTC (rev 63312)
@@ -210,11 +210,11 @@
     # Make sure the temporal database exists
     tgis.init()
 
-    tgis.open_new_space_time_dataset(strds, type='strds',
-                                     temporaltype='relative',
-                                     title=title, descr=desctiption,
-                                     semantic='sum', dbif=None,
-                                     overwrite=gcore.overwrite())
+    tgis.open_new_stds(strds, type='strds',
+                       temporaltype='relative',
+                       title=title, descr=desctiption,
+                       semantic='sum', dbif=None,
+                       overwrite=gcore.overwrite())
     # TODO: we must start from 1 because there is a bug in register_maps_in_space_time_dataset
     tgis.register_maps_in_space_time_dataset(
         type='rast', name=basename, maps=','.join(outputs),

Modified: grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py
===================================================================
--- grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py	2014-12-01 11:15:45 UTC (rev 63311)
+++ grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py	2014-12-01 14:57:58 UTC (rev 63312)
@@ -399,11 +399,11 @@
         def registerToTemporal(basename, suffixes, mapset, start_day, day_step,
                                title, desc):
             maps = ','.join([basename + suf + '@' + mapset for suf in suffixes])
-            tgis.open_new_space_time_dataset(basename, type='strds',
-                                             temporaltype='relative',
-                                             title=title, descr=desc,
-                                             semantic='sum', dbif=None,
-                                             overwrite=grass.overwrite())
+            tgis.open_new_stds(basename, type='strds',
+                               temporaltype='relative',
+                               title=title, descr=desc,
+                               semantic='sum', dbif=None,
+                               overwrite=grass.overwrite())
             tgis.register_maps_in_space_time_dataset(
                 type='rast', name=basename, maps=maps, start=start_day, end=None,
                 unit='days', increment=day_step, dbif=None, interval=False)

Modified: grass-addons/grass7/raster/r.sun.hourly/r.sun.hourly.py
===================================================================
--- grass-addons/grass7/raster/r.sun.hourly/r.sun.hourly.py	2014-12-01 11:15:45 UTC (rev 63311)
+++ grass-addons/grass7/raster/r.sun.hourly/r.sun.hourly.py	2014-12-01 14:57:58 UTC (rev 63312)
@@ -379,11 +379,11 @@
         def registerToTemporal(basename, suffixes, mapset, start_time,
                                time_step, title, desc):
             maps = ','.join([basename + suf + '@' + mapset for suf in suffixes])
-            tgis.open_new_space_time_dataset(basename, type='strds',
-                                             temporaltype='absolute',
-                                             title=title, descr=desc,
-                                             semantic='mean', dbif=None,
-                                             overwrite=grass.overwrite())
+            tgis.open_new_stds(basename, type='strds',
+                               temporaltype='absolute',
+                               title=title, descr=desc,
+                               semantic='mean', dbif=None,
+                               overwrite=grass.overwrite())
             tgis.register_maps_in_space_time_dataset(
                 type='rast', name=basename, maps=maps, start=start_time,
                 end=None, increment=time_step, dbif=None, interval=False)



More information about the grass-commit mailing list