GithubHelp home page GithubHelp logo

earthinversion / complete-eofanalysis-with-preprocessing-steps-gps-data Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 2.0 55.76 MB

Complete workflow to compute the EOF maps along with the required preprocessing and least-squares modeling of co-seismic, seasonal and trend components

License: GNU General Public License v3.0

Python 75.22% MATLAB 24.78%
empirical-orthogonal-functions least-squares eof-analysis matlab python geodesy

complete-eofanalysis-with-preprocessing-steps-gps-data's Introduction

Least-Squares Modeling and Empirical Orthogonal Functions analysis for the Meinong Earthquake, Taiwan

Author

  • Utpal Kumar, Post-doctoral researcher, Institute of Earth Sciences, Academia Sinica, Taipei, Taiwan @2020/12 Email: [email protected]

General Information

  • All the scripts in the bin directory
  • All the results in the Results directory
  • Summary of the analysis in Results/summary.txt

Preprocessing

Script: check_data_length.py

Requirements

Purpose

  • store the start, end time and number of points in the time series for each stations in dataInspection.txt file
  • visualizing the data length by histogram (set vizhist = 1 in the script below) and output s_e_timeHistogram.png
  • select the data based on the start and end time and copy it into new directory, SelectedData
  • cut the time series using the start and end time and removing the 2 sigma outliers
  • resampling the data for each day and interpolating for unavailable entries
  • removing the stations with NaNs (comes from large gaps in interpolation scheme)
  • select stations within 50 km from the EQ
  • write the selected stations information in stn_loc.txt
  • store data in pickle format and mat format separately for dN, dE, and dU for easy read in other scripts: dU_data.[pickle,mat]

Least Squares Modeling

Script: leastSquareModeling.py

Requirements

  • bin/LSQ/least_squares_modules.py
  • bin/LSQ/least_squares_plot.py
  • Results/stn_loc.txt
  • Results/d[U,N,E]_data.pickle
  • bin/Preprocessing/analysis_support.py

Purpose

  • Least squares model to remove the tidal and seasonal signals as well as co-seismic jumps
  • Earthquakes selected are obtained from wilber 3 web interface
  • Co-seismic jumps from all earthquakes (>5.1 Mw) except 2016-02-05 computed and removed: Results/SigEarthquakes.txt
  • residual results are saved in Results/resd_dU.pickle
  • lsq plot are saved at Results/LSQfigs

Topographic Map: bin/TopographicMap


EOF results: bin/EOF_Analysis

  • Run this script (MATLAB code): P2plotting_eof_new.m for computing EOF
  • Perform the EOF analysis on the selected time series
  • Interpolate the EOF results at each station
  • EOF results - spatial and temporal - stored at Results/EOFresults
  • Variance explained by the two modes: EOF_modes_VE.txt
  • The results are normalized with respect to the standard deviation. We divide the spatial pattern with the standard deviation and the corresponding time series, or PCs, are scaled by multiplying by the same normalization value, transferring the magnitude information of eigenvectors into the PCs, which hence has the same unit as the data (millimeter in our study)
  • Note the spatial pattern of the first mode: Common mode error (CME)

- Second Mode EOF spatial pattern:

  • Plot the EOF time series of the two modes using: bin/EOF_Analysis/plotting_time_series.py

Remove CME from time series data at each station: bin/CMEremoval

  • subtract the EOF mode 1 pc (CME) from the original time series at each station
  • stored in Results/EOFresults/final_[U,N,E].txt

If you use the script, please cite:

Kumar, U., Chao, B. F., & Chang, E. T. Y. (2020). What causes the common‐mode error in array GPS displacement fields: Case study for Taiwan in relation to atmospheric mass loading. Earth and Space Science, 7, e2020EA001159. https://doi.org/10.1029/2020EA001159

complete-eofanalysis-with-preprocessing-steps-gps-data's People

Contributors

earthinversion avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

jzhe3 whigg

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.