Code Monkey home page Code Monkey logo

sws_tools's Introduction

sws_tools

MATLAB tools for modeling and plotting of shear-wave splitting data

  • 01_stereoplots: Generate stereoplots of splitting results based on output of SplitLab and StackSplit.
  • 02_data_handling: Read and visualize the shear-wave splitting data available from: https://doi.org/10.5445/IR/1000091427
  • 03_modeling: Model shear-wave splitting results using synthetic splitting parameters computed for single-layer, two-layer and dipping layer scenarios.

If you make use of the content in this repository please acknowledge our paper published in GJI and/or my PhD thesis in whose framework several of the scripts and functions were developed:

  • Grund, M. & Ritter, J.R.R. (2020), Shear-wave splitting beneath Fennoscandia - Evidence for dipping structures and laterally varying multilayer anisotropy, Geophysical Journal International, 223, 1525โ€“1547, https://doi.org/10.1093/gji/ggaa388

  • Grund, M. (2019), Exploring geodynamics at different depths with shear wave splitting, Dissertation, Karlsruhe Institute of Technology (KIT), https://doi.org/10.5445/IR/1000091425

Content of the directories:

Generate stereoplots of splitting results based on output of SplitLab and StackSplit.

  • color-code bars of splits with respect to backazimuth (see below for supported colormaps)
  • shade full background or specific backazimuthal wedges
  • produce publication-ready plots in different formats (pdf, png, jpg...)

Supported colormaps

  1. standard MATLAB colormaps: parula, winter, summer, copper....

  2. MatPlotLib 2.0 Colormaps: Perceptually Uniform and Beautiful (see and download here: https://de.mathworks.com/matlabcentral/fileexchange/62729-matplotlib-2-0-colormaps-perceptually-uniform-and-beautiful)

  3. Scientific colour-maps by F. Crameri (Zenodo. http://doi.org/10.5281/zenodo.1243862) (see and download here: http://www.fabiocrameri.ch/colourmaps.php)

Run function SWS_Analysis_BASICS_stereoplot in the MATLAB command window to generate the stereoplots shown in the figure below using the provided test data set of station VAF.

PLOT_res_ALL

Read and visualize the shear-wave splitting data available from: https://doi.org/10.5445/IR/1000091427

  • generate individual stereoplots SWS_read_evstruct('stereo')
  • generate stereoplots of all 266 analyzed stations SWS_read_evstruct('stereoall')
  • generate histogram SWS_read_evstruct('histo')
  • generate output structs separated in split and null measurements [SPLITS,NULLS]=SWS_read_evstruct

PLOTS_merged

Model shear-wave splitting results using synthetic splitting parameters computed for single-layer, two-layer and dipping layer scenarios. Results plots are generated as well.

MSAT package of Walker & Wookey (2012) (https://github.com/andreww/MSAT) is required!

Descriptions on how to set up different models and how to handle individual data sets can be found in the Supporting Information of Grund & Ritter (2020, https://doi.org/10.1093/gji/ggaa388).

PLOTS_output

sws_tools's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

sws_tools's Issues

Stereoplots: Wrong setup of Scientific colour maps by F. Crameri

First reported by @yvonnefroehlich in PR #4.

This issue focuses on an error in the function SWS_Analysis_BASIC_stereoplot.m regarding setting up the Scientific colour maps by F. Crameri.

By default, each MATLAB structure (one per colormap) contains 256 records or hues (.mat files available from Zenodo). Here, this is unchanged used to visualize the fast polarization direction (phi) with a value range of -90:1:90. As the colormap is not adjusted to fit to this different value range, the color-value assignment is wrong. Also, the related figures shown in the README are wrong.

One option is to use a MATLAB file exchange function (or https://github.com/chadagreene/crameri), as it is done in PR #4. However, this function is not updated promptly after a new release of the SCM. Of course, users can build the required mat structure by themselves (I do this). Despite this, I am currently thinking about finding another solution (thus I closed PR #4).

Example (using this function as provided, without any adjustments to make the plot look nice)
Stereo_crameri_color_value_assingement

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.