omfpandas.blockmodels.convert_blockmodel

OMF uses C-order, sorting by x, y, z, while PyVista uses Fortran-order, sorting by z, y, x. Our Pandas MultiIndex is sorted by x, y, z to align with OMF.

Functions

blockmodel_to_df

Convert regular block model to a DataFrame.

convert_tensor_to_regular

df_to_blockmodel

Get the appropriate function to convert a DataFrame to a BlockModel.

df_to_pv_structured_grid

df_to_pv_unstructured_grid

Requires the index to be a pd.MultiIndex with names ['x', 'y', 'z', 'dx', 'dy', 'dz'].

df_to_regular_bm

Convert a DataFrame to a RegularBlockModel.

df_to_tensor_bm

Write a DataFrame to a BlockModel.