Exemple #1
0
 def ab_norm_cube(self, path):
     # 7. Normalised absorbance --> 5 divided by max(5)
     obj = Analysis(path,
                    self.get_result(path)[0].data_cube,
                    self.wavelength, (True, False, False),
                    mask=None)
     cube = obj.x2.tolist()
     return self.remove_masked_values(cube)
Exemple #2
0
 def ab_data_cube(self, path):
     # 5. Original absorbance --> -log() of 2
     obj = Analysis(path,
                    self.get_result(path)[0].data_cube,
                    self.wavelength, (True, True, False),
                    mask=None)
     cube = obj.x2.tolist()
     return self.remove_masked_values(cube)
Exemple #3
0
 def ref_norm_cube(self, path):
     # 3. Normalised reflectance --> 1 divded by max(1)
     obj = Analysis(path,
                    self.get_result(path)[0].data_cube,
                    self.wavelength, (False, False, False),
                    mask=None)
     cube = obj.x1.tolist()
     return self.remove_masked_values(cube)
Exemple #4
0
 def ab_norm_non_neg_cube(self, path):
     # 8. Normalised absorbance without negative values --> 7 with spaces for
     # negative values
     obj = Analysis(path,
                    self.get_result(path)[0].data_cube,
                    self.wavelength, (True, False, True),
                    mask=None)
     cube = obj.x2.tolist()
     return self.remove_masked_values(cube)
Exemple #5
0
 def ref_norm_non_neg_cube(self, path):
     # 4. Normalised reflectance without negative values --> 3 with spaces
     # for negative values
     obj = Analysis(path,
                    self.get_result(path)[0].data_cube,
                    self.wavelength, (False, False, True),
                    mask=None)
     cube = obj.x1.tolist()
     return self.remove_masked_values(cube)
Exemple #6
0
 def ref_data_cube(self, path):
     # 1. Original reflectance
     # Data cube is originally same for all, use hist because its the first in the list
     # absorbance, original, non-neg
     obj = Analysis(path,
                    self.get_result(path)[0].data_cube,
                    self.wavelength, (False, True, False),
                    mask=None)
     cube = obj.x1.tolist()
     return self.remove_masked_values(cube)