Voxels🍋
Voxel
🍋
Bases: GridObject
A Voxel is grid of regular cells, i-e: - all cells have the same size and geometry - cells are contiguous
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
object name. |
required |
shape |
Optional[IntArray]
|
number of cells respectively along U, V, W axes. |
None
|
origin |
Vector
|
3D point where voxel starts from. |
[0.0, 0.0, 0.0]
|
axis |
Union[List[Vector], ndarray]
|
direction and size along the axis. Axis are ordered by row, i-e
|
[[1.0, 0.0, 0.0], [0.0, 1.0, 0.0], [0.0, 0.0, 1.0]]
|
extra_coord_labels |
List[str]
|
labels corresponding to extra coordinates beyond the grid axes. For example, 4D cube would have an extra-dimension T beyond (U, V, W):
|
[]
|
Raises:
Type | Description |
---|---|
ValueError
|
|
Info
Note that the grid may not be cartesian. By default, Voxel is 3D however it does support multiple dimensions (2D, 3D, 4D, etc.).
Example
import geolime as geo
u = [2, 0, 0]
v = [0, 2, 0]
w = [0, 0, 5]
vx = geo.Voxel("MyGridObj", [4, 3, 2], axis=[u, v, w])
Last update:
2022-01-06