pwspy.utility.reflection.extraReflectance.generateRExtraCubes¶
- pwspy.utility.reflection.extraReflectance.generateRExtraCubes(allCombos, theoryR, numericalAperture)[source]¶
Generate a series of extra reflectance cubes based on the input data.
- Parameters
allCombos (
Dict
[Tuple
[Material
,Material
],List
[CubeCombo
]]) – a dict of lists CubeCombos, each keyed by a 2-tuple of Materials.theoryR (
Dict
[Material
,Series
]) – the theoretically predicted reflectance for each material.numericalAperture (
float
) – The numerical aperture that the PwsCubes were imaged at. The theoryR reflectances should have also been calculated at this NA
- Return type
Tuple
[ExtraReflectanceCube
,Dict
[Union
[str
,Tuple
[Material
,Material
]],ndarray
]]- Returns
- An ExtraReflectanceCube object containing data from the weighted average of all measurements.
A dictionary where the keys are material combos and the values are tuples of the weightedMean and the weight arrays.