# HG changeset patch # User Iannis # Date 1427882768 -10800 # Node ID 022f6f2bc09c0f43dbf145f10a574dbd8ba5cc15 # Parent b243f896e5f4c97e1c9bc95e8de5d29829a370b2 Custom background removal altitude diff -r b243f896e5f4 -r 022f6f2bc09c generic.py --- 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)