# -*- coding: iso-8859-1 -*-
# --
-# Copyright (C) 2009-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2009-2014 CEA/DEN, EDF R&D
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
-# version 2.1 of the License.
+# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
#
if driver_in == "GIBI":
sr = SauvReader.New(file_in)
- mfd= sr.loadInMEDFileDS()
+ mfd= sr.loadInMEDFileDS( format )
pass
elif driver_in == "MED":
mfd = MEDFileData(file_in)
raise NotImplementedError("Driver in %s is unknown"%(driver_in))
def sauv2med(*argv):
- argv = list(argv)
+ fix2DOri = ( "--fix2DOri" in argv )
for arg in argv:
- convert(arg, "GIBI", "MED")
+ if not arg.startswith("--fix"):
+ convert(arg, "GIBI", "MED", format = fix2DOri)
pass
return