Index: ../trunk-jpl/src/m/plot/export_gl.py
===================================================================
--- ../trunk-jpl/src/m/plot/export_gl.py	(revision 19038)
+++ ../trunk-jpl/src/m/plot/export_gl.py	(revision 19039)
@@ -1,5 +1,5 @@
 def export_gl(md,varargin):
-
+	return;
 	templist=plotoptions(varargin[:]); 
 	optionslist=templist.list;
 	options=optionslist[1];
@@ -23,18 +23,17 @@
 	model.initialZoomFactor=getfieldvalue(options,'zoom',-.25);
 
 	#Deal with contour {{{
+	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]);
+	contour_surface1=md.geometry.surface(md.mesh.segments[:,1]);
+	contour_surface2=md.geometry.surface(md.mesh.segments[:,2]);
 
-	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));
-	contour_surface1=md.geometry.surface(md.mesh.segments(:,1));
-	contour_surface2=md.geometry.surface(md.mesh.segments(:,2));
-
 	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;
+	contourx1 = R1 * cosd(contour_lat1) * cosd(contour_long1);
 	contoury1 = R1 * cosd(contour_lat1) * sind(contour_long1);
 	contourz1 = R1 * sind(contour_lat1);
 	
@@ -82,22 +81,22 @@
 		options=checkplotoptions(md,options);
 		data=getfieldvalue(options,'data');
 		results[i].data=data;
-		results[i].caxis=getfieldvalue(options,'caxis',[min(data) max(data)]);
+		results[i].caxis=getfieldvalue(options,'caxis',[min(data), max(data)]);
 
 		label=getfieldvalue(options,'label','');
 		if strcmpi(label,''):
 			#create generic label: 
-			label=['data' num2str(i)];
+			label=['data', num2str(i)];
 		results[i].label=label;
 
 		shortlabel=getfieldvalue(options,'shortlabel','');
 		if strcmpi(shortlabel,''):
 			#create generic short label: 
-			shortlabel=['data' num2str(i)];
+			shortlabel=['data', num2str(i)];
 		results[i].shortlabel=shortlabel;
 		
 		if len(data[2])>1:
-			time_range=getfieldvalue(options,'time_range',[0 100]);
+			time_range=getfieldvalue(options,'time_range',[0, 100]);
 			results[i].time_range=time_range;
 
 		unit=getfieldvalue(options,'unit','');
@@ -108,5 +107,5 @@
 	model.results=results;
 	
 	#Write model to javascript database file: 
-	writejsfile([directory databasename '.js'],model,databasename);
+	writejsfile(directory + databasename + '.js',model,databasename);
 #}}}
