cana.composition.mixtures¶
Mixtures used in the Shkuratov model.
Functions
create_inclusion(constant1, constant2, …) |
Classes
IntimateMixture(samples[, grainsizes, …]) |
Mixture of samples. |
-
class
cana.composition.mixtures.IntimateMixture(samples, grainsizes=[30, 50], proportions=[0.5, 0.5], porosity=0.5, model='shkuratov')[source]¶ Mixture of samples.
Methods
copy()Return a copy of the object. make([albedo_w, wavelengths, datatype])Make the reflectance spectrum of the mixture. select_model()Select the reflectance model that will be used. -
make(albedo_w=0.55, wavelengths=None, datatype=None)[source]¶ Make the reflectance spectrum of the mixture.
Parameters: - rebase: boolean
True if you want to rebase the wavelength axis of the samples. If False, the provided samples should have equal wavelentghs.
- interpmethod:
Method that will be used to rebase the samples. Default is ‘interpolate’.
- baseaxis: None or array
The wavelength array that will be used if rebase=True. If baseaxis=None and rebase=True, it will select the wavelength of the first sample as a reference. Not used if rebase=False.
-