Custom background removal altitude

Wed, 01 Apr 2015 13:06:08 +0300

author
Iannis <ioannis@inoe.ro>
date
Wed, 01 Apr 2015 13:06:08 +0300
changeset 32
022f6f2bc09c
parent 31
b243f896e5f4
child 33
2984158468e6

Custom background removal altitude

generic.py file | annotate | diff | comparison | revisions
--- a/generic.py	Mon Jan 26 17:55:34 2015 +0200
+++ b/generic.py	Wed Apr 01 13:06:08 2015 +0300
@@ -419,8 +419,8 @@
         self.rc = []
         self.duration  = 60
         
-    def calculate_rc(self):
-        background = np.mean(self.matrix[:,4000:], axis = 1)  # Calculate the background from 30000m and above
+    def calculate_rc(self, idx_min = 4000, idx_max = 5000):
+        background = np.mean(self.matrix[:,idx_min:idx_max], axis = 1)  # Calculate the background from 30000m and above
         self.rc = (self.matrix.transpose()- background).transpose() * (self.z **2)
         
     

mercurial