climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject svn commit: r1496632 - /incubator/climate/trunk/rcmet/src/main/python/rcmes/cli/do_rcmes_processing_sub.py
Date Tue, 25 Jun 2013 20:33:35 GMT
Author: joyce
Date: Tue Jun 25 20:33:34 2013
New Revision: 1496632

URL: http://svn.apache.org/r1496632
Log:
Resolve CLIMATE-158 - Fix basemap.cm import

Modified:
    incubator/climate/trunk/rcmet/src/main/python/rcmes/cli/do_rcmes_processing_sub.py

Modified: incubator/climate/trunk/rcmet/src/main/python/rcmes/cli/do_rcmes_processing_sub.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/cli/do_rcmes_processing_sub.py?rev=1496632&r1=1496631&r2=1496632&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/python/rcmes/cli/do_rcmes_processing_sub.py (original)
+++ incubator/climate/trunk/rcmet/src/main/python/rcmes/cli/do_rcmes_processing_sub.py Tue
Jun 25 20:33:34 2013
@@ -27,7 +27,7 @@ import datetime
 import numpy
 import numpy.ma as ma 
 import toolkit.plots as plots
-import mpl_toolkits.basemap as bm
+import mpl_toolkits.basemap.cm as cm
 import matplotlib.pyplot as plt
 import storage.db as db
 import storage.files as files
@@ -123,13 +123,13 @@ def do_rcmes(settings, params, model, ma
     colorbar = None
     if options['precip'] == True:
         modelData['data'] = modelData['data']*86400.  # convert from kgm-2s-1 into mm/day
-        colorbar = bm.cm.s3pcpn
+        colorbar = cm.s3pcpn
 
     # set color bar suitable for MODIS cloud data
     if params['obsParamId'] == 31:
         colorbar = plt.cm.gist_gray
     
-    diffcolorbar = bm.cm.GMT_polar
+    diffcolorbar = cm.GMT_polar
 
     ##################################################################################################################
     # Extract sub-selection of model data for required time range.



Mime
View raw message