Index: /issm/branches/trunk-larour-NatGeoScience2016/src/m/exp/expread.m
===================================================================
--- /issm/branches/trunk-larour-NatGeoScience2016/src/m/exp/expread.m	(revision 21369)
+++ /issm/branches/trunk-larour-NatGeoScience2016/src/m/exp/expread.m	(revision 21370)
@@ -1,3 +1,3 @@
-function Struct=expread(filename)
+function Struct=expread(filename,varargin)
 %EXPREAD - read a file exp and build a Structure
 %
@@ -17,4 +17,7 @@
 %
 %   See also EXPDOC, EXPWRITEASVERTICES
+
+%recover options
+options=pairoptions(varargin{:});
 
 %some checks
@@ -80,2 +83,10 @@
 %close file
 fclose(fid);
+	
+invert=getfieldvalue(options,'invert',0);
+if invert,
+	for i=1:length(Struct),
+		Struct(i).x=flipud(Struct(i).x);
+		Struct(i).y=flipud(Struct(i).y);
+	end
+end
