Index: ../trunk-jpl/src/m/plot/export_gl.py
===================================================================
--- ../trunk-jpl/src/m/plot/export_gl.py	(revision 19037)
+++ ../trunk-jpl/src/m/plot/export_gl.py	(revision 19038)
@@ -1,4 +1,4 @@
-def export_gl(md,varargin)
+def export_gl(md,varargin):
 
 	templist=plotoptions(varargin[:]); 
 	optionslist=templist.list;
@@ -24,7 +24,7 @@
 
 	#Deal with contour {{{
 
-	contour_lat1=md.mesh.lat(md.mesh.segments(	:,1));
+	contour_lat1=md.mesh.lat(md.mesh.segments(:,1));
 	contour_lat2=md.mesh.lat(md.mesh.segments(:,2));
 	contour_long1=md.mesh.long(md.mesh.segments(:,1));
 	contour_long2=md.mesh.long(md.mesh.segments(:,2));
@@ -34,13 +34,13 @@
 	R1=6371000*ones(len(contour_surface1),1)+scaling_factor*contour_surface1;
 	R2=6371000*ones(len(contour_surface2),1)+scaling_factor*contour_surface2;
 
-	contourx1 = R1 .* cosd(contour_lat1) .* cosd(contour_long1);
-	contoury1 = R1 .* cosd(contour_lat1) .* sind(contour_long1);
-	contourz1 = R1 .* sind(contour_lat1);
+	contourx1 = R1 * cosd(contour_lat1) * cosd(contour_long1;
+	contoury1 = R1 * cosd(contour_lat1) * sind(contour_long1);
+	contourz1 = R1 * sind(contour_lat1);
 	
-	contourx2 = R2 .* cosd(contour_lat2) .* cosd(contour_long2);
-	contoury2 = R2 .* cosd(contour_lat2) .* sind(contour_long2);
-	contourz2 = R2 .* sind(contour_lat2);
+	contourx2 = R2 * cosd(contour_lat2) * cosd(contour_long2);
+	contoury2 = R2 * cosd(contour_lat2) * sind(contour_long2);
+	contourz2 = R2 * sind(contour_lat2);
 
 
 	model.contourx1=contourx1;
@@ -63,9 +63,9 @@
 
 	R=6371000*ones(numberofvertices,1)+scaling_factor*surface;
 
-	x = R .* cosd(lat) .* cosd(long);
-	y = R .* cosd(lat) .* sind(long);
-	z = R .* sind(lat);
+	x = R * cosd(lat) * cosd(long);
+	y = R * cosd(lat) * sind(long);
+	z = R * sind(lat);
 
 
 	#Deal with triangulation: 
@@ -77,7 +77,7 @@
 	
 	#Deal with data: 
 	results=struct([]);
-	for i in xrange(1,len(optionslist)),
+	for i in xrange(1,len(optionslist)):
 		options=optionslist[i]; 
 		options=checkplotoptions(md,options);
 		data=getfieldvalue(options,'data');
@@ -85,23 +85,23 @@
 		results[i].caxis=getfieldvalue(options,'caxis',[min(data) max(data)]);
 
 		label=getfieldvalue(options,'label','');
-		if strcmpi(label,''),
+		if strcmpi(label,''):
 			#create generic label: 
 			label=['data' num2str(i)];
 		results[i].label=label;
 
 		shortlabel=getfieldvalue(options,'shortlabel','');
-		if strcmpi(shortlabel,''),
+		if strcmpi(shortlabel,''):
 			#create generic short label: 
 			shortlabel=['data' num2str(i)];
 		results[i].shortlabel=shortlabel;
 		
-		if size(data,2)>1,
+		if len(data[2])>1:
 			time_range=getfieldvalue(options,'time_range',[0 100]);
 			results[i].time_range=time_range;
 
 		unit=getfieldvalue(options,'unit','');
-		if strcmpi(unit,''),
+		if strcmpi(unit,''):
 			#create generic unit: 
 			unit='SI';
 		results[i].unit=unit;
