Bash script that converts a planar measurement in strike-dip format to dip-dip direction format
- Target User
- Building and Installation
- Removal
- Usage
- Support
- Roadmap
- Code of Conduct
- Contributing
- License
- Project Status
Engineering geologists, structural geologists, geotechnical engineers having planar measurements in strike-dip format that should be converted to the ones in dip-dip direction format.
Don't have to build anything, related bash shell script can be used by copying the script file in your system, setting file permissions and executing with required command-line arguments.
Operating System: Linux
Distro : Any
Shell : bash ≥ 4.3.48
Other : All numerical measurements must be integer values
Doesn't require a building process, can be used directly.
Doesn't require an installation process, can be directly copied anywhere.
Can be removed by directly deleting the related script file.
Usage: ./strikeDipToDdd [-r] [-d DELIM] [-h] ((-a | -b | -A | -B) (MEASUREMENT | MEASUREMENT_FILE))...
-a
input in RHR-azimuth format, dip direction 90⁰ clockwise from strike
-b
input in RHR-bearing format, dip direction 90⁰ clockwise from strike
-A
input in UK-RHR-azimuth format, dip direction 90⁰ counter-clockwise from strike
-B
input in UK-RHR-bearing format, dip direction 90⁰ counter-clockwise from strike
-d DELIM
use DELIM instead of space as the delimiter of output values
-r
print out number of converted and invalid measurements
-h
Display help
where
-
an example of
MEASUREMENT
for option-a
is045/20SE
,
for option-b
isN45E/20SE
,
for option-A
is045/20NW
,
for option-B
isN45E/20NW
-
a
MEASUREMENT_FILE
is a list ofMEASUREMENT
s all having a common format, each written in a single line (measurements having different formats are not allowed in aMEASUREMENT_FILE
) -
any
MEASUREMENT
value that DOESN'T conform to the related format will be counted asInvalid
or
if located in aMEASUREMENT_FILE
will be counted asInvalid Infile
Example:
$ ./strikeDipToDdd -r -d ',' -a 045/20SE -b N45E/20SE -A O45/20NW -B N45E/20NW
20/135,
20/135,
20/315,
20/315,
Converted Infile : 0
Invalid Infile : 0
Converted : 4
Invalid : 4
All types of constructive criticisms and contributions are welcome, and I'll try my best for solving your problems related with the scripts and patches presented in this repo as an engineering geologist, a self-learner and a guy who enjoys coding.
For further info please check SUPPORT.md.
Essentially I've created this repo to solve my problem at the first place and I've to admit I really have no idea in the beginning but with time I've learned lots of stuff from the guys and the gals like myself who has tried to solve their problems and decided to share their findings with other individuals who might face similar problems. Remembering all of them individually at this point is a bit hard for me so I've created this repo to show my graditude.
Additional ideas related with the future are welcomed.
Contributor Covenant version 2.1 is the effective code of conduct for this project.
For further info please check CODE_OF_CONDUCT.md.
Please check CONTRIBUTING.md.
Software presented in this repository is licensed with GPLv3.
For further info please check COPYING.
This project is actively maintained by Necib ÇAPAR.