[GRASS-SVN] r57545 - grass-addons/grass7/raster/r.sun.daily
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Aug 29 06:17:17 PDT 2013
Author: annakrat
Date: 2013-08-29 06:17:16 -0700 (Thu, 29 Aug 2013)
New Revision: 57545
Modified:
grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py
Log:
r.sun.daily: set color table for each series separately
Modified: grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py
===================================================================
--- grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py 2013-08-29 13:04:07 UTC (rev 57544)
+++ grass-addons/grass7/raster/r.sun.daily/r.sun.daily.py 2013-08-29 13:17:16 UTC (rev 57545)
@@ -429,19 +429,20 @@
if glob_rad_basename_user:
set_time_stamp(glob_rad_basename + suffixes_all[i], day=day)
- maps = []
if beam_rad_basename_user:
- maps.extend([beam_rad_basename + suf for suf in suffixes_all])
+ maps = [beam_rad_basename + suf for suf in suffixes_all]
+ set_color_table(maps)
if diff_rad_basename_user:
- maps.extend([diff_rad_basename + suf for suf in suffixes_all])
+ maps = [diff_rad_basename + suf for suf in suffixes_all]
+ set_color_table(maps)
if refl_rad_basename_user:
- maps.extend([refl_rad_basename + suf for suf in suffixes_all])
+ maps = [refl_rad_basename + suf for suf in suffixes_all]
+ set_color_table(maps)
if glob_rad_basename_user:
- maps.extend([glob_rad_basename + suf for suf in suffixes_all])
+ maps = [glob_rad_basename + suf for suf in suffixes_all]
+ set_color_table(maps)
- set_color_table(maps)
-
if __name__ == "__main__":
atexit.register(cleanup)
main()
More information about the grass-commit
mailing list