[GRASS-SVN] r66339 - grass/trunk/lib/python/temporal
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 26 07:18:35 PDT 2015
Author: neteler
Date: 2015-09-26 07:18:35 -0700 (Sat, 26 Sep 2015)
New Revision: 66339
Modified:
grass/trunk/lib/python/temporal/stds_import.py
Log:
t.rast.import: report progress to the user
Modified: grass/trunk/lib/python/temporal/stds_import.py
===================================================================
--- grass/trunk/lib/python/temporal/stds_import.py 2015-09-26 13:14:18 UTC (rev 66338)
+++ grass/trunk/lib/python/temporal/stds_import.py 2015-09-26 14:18:35 UTC (rev 66339)
@@ -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