Datacube
DataCube
¤
MultiCube
¤
Bases: DataCube
MultiCube Object. MultiCube class is made for discrete datacube such as multispectral satellite data of stack of elemental images.
Attributes:
Name | Type | Description |
---|---|---|
data_cube |
ndarray
|
multi-dimensionnal array containing data values. |
elements |
Dict
|
Dictionnary of channel names with associated index. |
prefix |
str
|
Common name between files. |
suffix |
str
|
Extension name of the files. |
normalization |
bool
|
Indication of normalized data (0 to 100). |
MineralCube
¤
Bases: MultiCube
MineralCube Object. MultiCube object where values are binary (0 or 1).
Class essentially made to create mask and make operations between data and masks.
Attributes:
Name | Type | Description |
---|---|---|
data_cube |
ndarrray
|
multi-dimensionnal array containing data values. |
elements |
Dict
|
Dictionnary of channel names with associated index. |
prefix |
str
|
Common name between files. |
suffix |
str
|
Extension name of the files. |
normalization |
(bool, Optional)
|
Indication of normalized data (0 to 100). |
colors |
List
|
Color list provided for plotting consistency. |
colors: List
property
¤
map
¤
Create a 2D array that associate each pixel to a mask by assigning a value to each pixel. It also creates a dictionnary containing the relative proportion of a value compared to others.
Returns:
Type | Description |
---|---|
ndarray
|
Tuple containing 2D array to be used as an image, |
Dict
|
and dictionnary containing proportion of each pixel value. |