Index: /issm/trunk-jpl/scripts/BinRead.py
===================================================================
--- /issm/trunk-jpl/scripts/BinRead.py	(revision 20889)
+++ /issm/trunk-jpl/scripts/BinRead.py	(revision 20890)
@@ -18,10 +18,12 @@
 	while True:
 		try:
-			#Step 1: read the enum to identify this record uniquely
-			enum=struct.unpack('i',f.read(struct.calcsize('i')))[0]
+			#Step 1: read size of record name
+			recordnamesize=struct.unpack('i',f.read(struct.calcsize('i')))[0]
 		except struct.error as e:
 			print "probable EOF: %s" % e
 			break
-		print "\nenum = %d (%s)" % (enum,EnumToString(enum)[0])
+		print "\nrecordnamesize = \"%d\"" % (recordnamesize)
+		recordname=struct.unpack('%ds' % recordnamesize,f.read(recordnamesize))[0]
+		print "recordname = '%s'" % recordname
 
 		#Step 2: read the data itself.
@@ -110,5 +112,5 @@
 
 		else:
-			raise TypeError('BinRead error message: data type: %d not supported yet! (%s)' % (code,EnumToString(enum)[0]))
+			raise TypeError('BinRead error message: data type: %d not supported yet! (%s)' % (code,recordname))
 
 	f.close()
@@ -163,6 +165,4 @@
 
 	from MatlabFuncs import *
-	from EnumDefinitions import *
-	from EnumToString import EnumToString
 
 	BinRead(args.filin, args.filout)
