utils_pythontoolpro#
This file contains utility methods which help when using cegal.pythontoolpro
Functions
get_continuous_value_info
(petrel_obj)This method returns a ContinuousDimensionInfoTuple based on the information from the supplied petrel_obj.
get_spatial_value_info
(project_units, ...)This method returns a ContinuousDimensionInfoTuples that describes the requested spatial unit based on the information from the supplied project_units.
- cegalprizm.investigator.utils_pythontoolpro.get_continuous_value_info(petrel_obj) cegalprizm.investigator.named_tuples.ContinuousDimensionInfoTuple #
This method returns a ContinuousDimensionInfoTuple based on the information from the supplied petrel_obj.
It assumes the petrel_obj is a cegal.pythontoolpro representation of a Petrel object and tries to access the properties and methods on this object that it needs to construct a ContinuousDimensionInfoTuple containing the information describing the values of the object
- Parameters
petrel_obj – A cegal.pythontoolpro representation on a Petrel object
- Returns
A named tuple describing the values reporesenting a continuous dimension
- Return type
- cegalprizm.investigator.utils_pythontoolpro.get_spatial_value_info(project_units, spatial_dimension_name: str) cegalprizm.investigator.named_tuples.ContinuousDimensionInfoTuple #
This method returns a ContinuousDimensionInfoTuples that describes the requested spatial unit based on the information from the supplied project_units.
It assumes the project_units is a cegal.pythontoolpro object describing the a Petrel project units and tries to access the object to construct a ContinuousDimensionInfoTuple
- Parameters
project_units – A cegal.pythontoolpro object describing a Petrel projects units
spatial_dimension_name (str) – The name of the spatial dimension (must be one of [‘X’, ‘Y’, ‘Z’, ‘TVD’, ‘TWT’])
- Returns
A named tuple describing the units for spatial data for data from this project
- Return type