Wed, 01 Apr 2015 13:06:08 +0300
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)