# STRUCTURAL GEOLOGY: An Introduction to Geometrical Techniques

## Post type

Discipline

Participation type

Node type

Node

Code

## Geology

## Instantiating

## Equation

## Equation 2.3b

Language

Version

### Python

3.0

# This code was written in Python 3

# The code calculates the true thickness of a horizontal layer outcropped on a slopped surface.

# Equation 2.3.b in Ragan (2009): t = w sin(σ), where δ = 0◦ .

# t: True thickness of the layer

# w: Width of the layer outcropped

# s: Slope angle of the surface (in degrees)

# d: Dip angle of the layer (in degrees)

# Sample of arrays of input data:

# w = [1, 1, 1, 1]

# s = [10, 30, 40, 50]

# Importing the module math

import math

# Importing the numpy package

import numpy as np

# The function thickness calculates the true thickness of the layer

def thickness(w, s):

return w * math.sin(math.radians(s))

# The following two lines request users to enter w and s as arrays

w = input('Enter w values as an array: ')

s = input('Enter s values as an array: ')

# The following two lines convert input values to array

w = np.array(eval(w))

s = np.array(eval(s))

# Iterating the function thickness for each value of input data

for i in range(0, len(w), 1):

print(thickness(w[i], s[i]))