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)