[GRASS-SVN] r66340 - grass/branches/releasebranch_7_0/lib/python/temporal

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Sep 26 07:18:59 PDT 2015


Author: neteler
Date: 2015-09-26 07:18:59 -0700 (Sat, 26 Sep 2015)
New Revision: 66340

Modified:
   grass/branches/releasebranch_7_0/lib/python/temporal/stds_import.py
Log:
t.rast.import: report progress to the user

Modified: grass/branches/releasebranch_7_0/lib/python/temporal/stds_import.py
===================================================================
--- grass/branches/releasebranch_7_0/lib/python/temporal/stds_import.py	2015-09-26 14:18:35 UTC (rev 66339)
+++ grass/branches/releasebranch_7_0/lib/python/temporal/stds_import.py	2015-09-26 14:18:59 UTC (rev 66340)
@@ -210,6 +210,9 @@
     tar = tarfile.open(name=input, mode='r')
 
     # Check for important files
+    msgr = get_tgis_message_interface()
+    msgr.message(_("Checking validity of input file (size: %0.1f MB). Make take a while..."
+        % (os.path.getsize(input)/(1024*1024.0))))
     members = tar.getnames()
     # Make sure that the basenames of the files are used for comparison
     member_basenames = [os.path.basename(name) for name in members]
@@ -221,6 +224,7 @@
     if proj_file_name not in member_basenames:
         gscript.fatal(_("Unable to find projection file <%s>") % proj_file_name)
 
+    msgr.message(_("Extracting data..."))
     tar.extractall(path=directory)
     tar.close()
 



More information about the grass-commit mailing list