Index: trunk/ippToPsps/jython/fits.py
===================================================================
--- trunk/ippToPsps/jython/fits.py	(revision 35417)
+++ trunk/ippToPsps/jython/fits.py	(revision 38956)
@@ -4,4 +4,6 @@
 import re
 import shutil
+import hashlib
+from subprocess import call, PIPE, Popen
 
 '''
@@ -42,4 +44,25 @@
        # move file pointer back to the start of the file
        self.rewindToStart()
+
+
+    '''
+    Get md5sum for file 
+    '''
+    def getMd5sum(self):
+    	## memory inefficient all at once read but should be ok...
+    	md5 = hashlib.md5(open(self.originalPath,'rb').read())
+	return md5.hexdigest()
+
+    def getMd5sumShell(self):
+    	md5cmd = "md5sum %s" % (self.originalPath)
+	md5 = Popen(md5cmd, shell=True, stdout=PIPE).stdout.read()
+	return md5[0:32]
+
+    def getMd5sumFile(self):
+    	## unclear if rb by default for file so maybe not best
+        md5 = hashlib.md5(self.file.read())
+	## if used, then need to move file pointer back to the start of the file for others to use
+	self.rewindToStart()
+        return md5.hexdigest()
 
     '''
