Skip to main content

Package for displaying 3D focal mechanisms

Project description

3DFocal_Mechanism

This python script serves the purpose of plotting 3D Focal Mechanisms using matplotlib and starting from a database where Focal Mechanism Solutions (FMS) attributes are compiled.

You should have an Excel list or ASCII text file with following information per row: Latitude (°-coordinate degrees), Longitude (°-coordinate degrees), Depth (km), Strike1 (°-arcdegree), Dip1 (°-arcdegree), Rake1 (°-arcdegree), Strike2 (°-arcdegree), Dip2 (°-arcdegree), Rake2 (°-arcdegree), Moment magnitude (Mw), Scalar Moment (N.m), Moment tensor parameters such as Mnn, Mee, Mdd, Mne, Mnd and Med (N.m [x 1+ePOWER]).

After this you can insert yout FMS list to be read by the python script using pandas dataframe function or any other method of your choice. The beachball list must be organized in this structure*: beachball list=[[R1, C1, NP1],[R2, C2, NP2],...,[Ri, Ci, NPi]] from i = 1 to n number of FMS, where Ri=Mw, Ci=[Xi,Yi,Zi], NPi=[Si, Di, Ri].

*Note: It is not necessary to build the list with both nodal planes (NP) for each beachball as the programm plots the auxiliary plane given that this is always perpendicular to the one inserted by you.

You are set to go, run the script and verify that FMS are plotted with size relative to their magnitude, right polarity and accordingly to their position in space.

Please note that this package is in very early development and is subject to substantial change as we refactor it.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

focmech3d-0.0.1.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

focmech3d-0.0.1-py3-none-any.whl (30.6 kB view details)

Uploaded Python 3

File details

Details for the file focmech3d-0.0.1.tar.gz.

File metadata

  • Download URL: focmech3d-0.0.1.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

File hashes

Hashes for focmech3d-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aa758af83bb4d141a2cc2c33b8226b2ed884778ca8712af3ff9616fc3a5d4c3e
MD5 9e00e6ddcde47db3ffd52bb6987eddba
BLAKE2b-256 e466a9c5e73848c767e0e4cc11eb93f376a233e6f1ad41ecef87fe4a9b190aac

See more details on using hashes here.

File details

Details for the file focmech3d-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: focmech3d-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 30.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.6.9

File hashes

Hashes for focmech3d-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 eefd3ee710a30546629e061e3ecf6d0f2dd9e00fef4a8b88b280b0d2e37c839d
MD5 ca4bbfab5bcdfd410db0740d8d1828a1
BLAKE2b-256 c14e9f5374428a0f5686978d0a74c5ac8d002bbc6fb47dd78c16789d35882fd4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page