Writer

subsurface.writer.to_binary Module

Functions

base_structs_to_binary_file(path, base_struct)

subsurface.writer.to_rex.common Module

Functions

write_data_block_header(size_data[, …])

Function to write a DATA BLOCK header.

encode(input_)

Encode python objects - normally Python primitives or numpy arrays - into its correspondent byte representation

subsurface.writer.to_rex.data_struct Module

Classes

RexMesh(name, vertex, edges, normals, …)

Data structure that can be converted to rex binary.

RexMaterial(ka_red, ka_green, ka_blue, …)

RexLineSet(foo)

subsurface.writer.to_rex.gempy_to_rexfile Module

This file is part of gempy.

Created on 21/02/2020

@author: Miguel de la Varga

Functions

encode(input_)

Encode python objects - normally Python primitives or numpy arrays - into its correspondent byte representation

write_file_header_block(n_data_blocks, …)

Function that writes the header block of a rexfile:

write_data_block_header(size_data[, …])

Function to write a DATA BLOCK header.

write_mesh_header(n_vtx_coord, n_triangles, …)

Function to write MESH DATA BLOCK header.

write_mesh_coordinates(vertex, triangles[, …])

Block with the coordinates of a mesh.

write_material_data([ka_red, ka_green, …])

Writes a standard material definition block

hex_to_rgb(hex)

Transform colors from hex to rgb

geomodel_to_rex(geo_model[, backside])

param geo_model

mesh_preprocess(ver, tri)

Prepare GemPy Output to be converted to rex

write_file(bytes, path)

Write to disk a rexfile from its binary format

write_rex(rex_bytes[, path])

Classes

GemPyToRex([geo_model])

subsurface.writer.to_rex.material_encoder Module

Functions

material_encode(rex_material, data_id)

write_material_data(rex_material)

Writes a standard material definition block

subsurface.writer.to_rex.mesh_encoder Module

Functions

mesh_encode(rex_mesh, data_id)

write_mesh_coordinates(vertex, triangles[, …])

Block with the coordinates of a mesh.

write_mesh_header(n_vtx_coord, n_triangles, …)

Function to write MESH DATA BLOCK header.

subsurface.writer.to_rex.rex_api Module

Functions

upload_to_rexcloud(infiles[, project_name])

wrapper around api calls to upload rexfiles of a gempy model.

Classes

RexAPI(project_name[, api_token, secret])

Rextag(project_reference)

subsurface.writer.to_rex.to_rex Module

Functions

numpy_to_rex([rex_line_set, rex_meshes, …])

w_data_blocks(rex_meshes, rex_material)

w_block_data_type(encoder, rex_objects, data_id)

w_file_header_and_coord_system_block(…[, …])

Function that writes the header block of a rexfile:

w_file_header_and_coord_system_block(…[, …])

Function that writes the header block of a rexfile:

write_rex_file(bytes, path)

Write to disk a rexfile from its binary format

read_rex_file(path)

subsurface.writer.to_rex.utils Module

Functions

hex_to_rgb(hex[, normalize])

Transform colors from hex to rgb