LoopStructural.modelling.Map2LoopProcessor#
- class LoopStructural.modelling.Map2LoopProcessor(m2l_directory, use_thickness=None)#
Bases:
ProcessInputData
Function to build a ProcessInputData object for using m2l data
- Parameters:
m2l_directory (path) – path to a m2l root directory
- __init__(m2l_directory, use_thickness=None)#
Function to build a ProcessInputData object for using m2l data
- Parameters:
m2l_directory (path) – path to a m2l root directory
Methods
__init__
(m2l_directory[, use_thickness])Function to build a ProcessInputData object for using m2l data
fault_interesections_angle
(fault1, fault2)Helper function to update the dip direction given downthrow direction
set_fault_network
(edges[, edge_properties])stratigraphy_cmap
([supergroup])create a colour map for the stratigraphy scalar field this is stretched to account for unit thicknesses
Attributes
colours
contact_orientations
contacts
This is the main function that does all the work, should be called before any of the calculated attributes are accessed
fault_locations
fault_names
fault_network
fault_orientations
fault_properties
fault_stratigraphy
foliation_properties
maximum
origin
stratigraphic_column
stratigraphic_name
stratigraphic_order
thicknesses
vector_scale
- property data#
This is the main function that does all the work, should be called before any of the calculated attributes are accessed
- process_downthrow_direction(fault_properties, fault_orientations)#
Helper function to update the dip direction given downthrow direction
Fault dip direction should point to the hanging wall
- Parameters:
fault_properties (DataFrame) – data frame with fault name as index and downthrow direction and average dip_dir as columns
fault_orientations (DataFrame) – orientation data for the faults
- stratigraphy_cmap(supergroup='supergroup_0')#
create a colour map for the stratigraphy scalar field this is stretched to account for unit thicknesses
- Parameters:
supergroup (string, optional) – name of the geological feature to creat this cmap of, by default ‘supergroup_0’
- Returns:
dict – containing a colourmap, minimum value for the scalar field and maximum value for the scalar field
Examples
Add a isosurfaces to the model coloured by the map colours
>>> model, processor = GeologicalModel.from_map2loop_directory(directory) >>> view = Loop3DView(model) >>> view.add_isosurface(model['supergroup_0'],**processor.stratigraphy_cmap('supergroup_0')) >>> view.interactive()
- Raises:
ImportError – matplotlib not installed
ValueError – supergroup not in stratigraphic column