GitHub source

evo.objects.typed.tensor_grid.Tensor3DGrid

A GeoscienceObject representing a tensor 3D grid.

A tensor grid is a 3D grid where cells may have different sizes. The grid is defined by an origin, the number of cells in each direction, and arrays of cell sizes along each axis. The grid contains datasets for both cells and vertices.

attributes

attributes: 'Attributes'

The cell attributes of this grid (alias for cells.attributes).

vertex_attributes

vertex_attributes: 'Attributes'

The vertex attributes of this grid.

compute_bounding_box

compute_bounding_box() -> BoundingBox

Compute the bounding box from the grid properties.

to_dataframe

to_dataframe(*keys: str, fb: IFeedback = NoFeedback) -> pd.DataFrame

Get a dataframe containing the cell attributes.

Parameters:

Name Type Description Default
keys str

Optional list of attribute keys to include. If not provided, all attributes are included.

()
fb IFeedback

Optional feedback object to report download progress.

NoFeedback

Returns:

Type Description
DataFrame

A DataFrame with cell attribute columns.