Skip to content

Releases: Dengda98/PyGRT

v0.12.0

14 Nov 06:23

Choose a tag to compare

PyGRT v0.12.0

  • Support inpute distance file, like grt greenfn -R<file> ...
  • Add the exact closed-form solution the first-kind Lamb problem.
  • Fix some typos in comments of test shell scripts.
  • Update documents, fix some typos.

What's Changed

Full Changelog: v0.11.0...v0.12.0

v0.11.0

22 Sep 13:19

Choose a tag to compare

PyGRT v0.11.0

In this version, I have made lots of enhancements for future developments. From the user's perspective, mainly including:

  • support 4-column model (ignore Qp and Qs).
  • save static results in NetCDF format.
  • remove argument prefix to simplify the I/O of syn, strain, stress and rotation.
  • update usage of -L and -K.
  • add modules manual in Chinese.
  • rearrange the core code of R/T matrix.

What's Changed

  • STYLE: add macro GRT_SAFE_FREE_PTR(_ARRAY) to safely free allocated memory by @Dengda98 in #63
  • FEAT: support 4-column model and use layer depth by @Dengda98 in #64
  • REFAC: split R/T functions into P-SV and SH by @Dengda98 in #65
  • DOC: fix some description typo in formula by @Dengda98 in #66
  • REFAC: Split source coefs into P-SV and SH by @Dengda98 in #67
  • FEAT: replace sprintf to asprintf, and define a macro by @Dengda98 in #68
  • REFAC: use struct and wrapped functions to organize FFTW behaviors by @Dengda98 in #69
  • FEAT: support upsampling factor in greenfn -N by @Dengda98 in #70
  • FEAT: support upsampling factor in greenfn -N (part 2) by @Dengda98 in #71
  • FIX: remove redundant process for last frequency point by @Dengda98 in #73
  • DOC: 增加关于位移对z偏导的公式推导 by @Dengda98 in #75
  • REFAC: move headers to directory include/grt/ and rename all public functions with prefix grt by @Dengda98 in #78
  • FEAT: remove struct PYMODEL1D, use struct GRT_MODEL1D globally by @Dengda98 in #79
  • REFAC: rename macros and global variables with prefix GRT by @Dengda98 in #80
  • REFAC: use macro for comment head '#', and add related helper function by @Dengda98 in #81
  • FEAT: rearange functions in search.h/c and matrix.h, with X macros by @Dengda98 in #82
  • REFAC: use macro GRTRaiseError by @Dengda98 in #83
  • FEAT: use c instead of k in definition of vertical wavenumber a and b by @Dengda98 in #84
  • DOC: add static R/T formula by @Dengda98 in #85
  • DOC: add SH wave R/T static formula by @Dengda98 in #86
  • DOC: fix static source coefficients by @Dengda98 in #87
  • FEAT: split delay matrix into a function by @Dengda98 in #88
  • FIX: fillup the elastic params before returning the reading model function by @Dengda98 in #89
  • FEAT: split delay matrix into a function (static) by @Dengda98 in #90
  • REFAC: rename some functions for better development by @Dengda98 in #92
  • STYLE: rename b2a and k2a, and move their .c files to src/tools/ directory by @Dengda98 in #93
  • REFAC: update usage of zeta in greenfn by @Dengda98 in #94
  • FEAT: check unsorted layer depths by @Dengda98 in #95
  • FEAT: update usage of -K, -L, -G, remove -V by @Dengda98 in #97
  • FEAT: save static results in NetCDF format by @Dengda98 in #98
  • DOC: support 4-column model by @Dengda98 in #99
  • DOC: use term "pre-built" by @Dengda98 in #100
  • DOC: rearrange Tutorial toctree by @Dengda98 in #101
  • DOC: update English documents by @Dengda98 in #102
  • FEAT: remove -P<prefix>, and simplify the input argument of strain, stress and rotation by @Dengda98 in #103
  • FEAT: remove -P<prefix> (Part 2, static case) by @Dengda98 in #104
  • DOC: add modules manual by @Dengda98 in #105
  • DOC: update reference to module by @Dengda98 in #106
  • DOC: add annotation about narrow nt*dt by @Dengda98 in #107

Full Changelog: v0.10.0...v0.11.0

v0.10.0

06 Aug 06:01

Choose a tag to compare

PyGRT v0.10.0

This is a major update before releasing a stable version, primarily concerning the execution style of the C program (the Python interface remains unaffected). Recognizing that compiling multiple executables would significantly hinder future maintenance and feature expansion, and considering the current early-stage program isn't too complex yet, I decided to implement this change promptly.

Inspired by Git and GMT programs, PyGRT will now compile into just one executable — grt — starting with this version. Similar to GMT, it will invoke different modules to perform various computational functions, for example:

# Calculate Green's functions (equivalent to the old 'grt' command)
grt greenfn [arg1] [arg2] ...
# Synthesize theoretical seismograms (equivalent to the old 'grt.syn' command)
grt syn [arg1] [arg2] ...
# Calculate static Green's functions (equivalent to the old 'stgrt' command)
grt static greenfn [arg1] [arg2] ...
...

grt and each module's help documentation can be printed using -h. The online documentation has been updated accordingly, and all example scripts have been modified to reflect these changes.

What's Changed

  • DOC: update installation and remove some unused *.po files by @Dengda98 in #52
  • FIX: allow zero Q^-1, and relevant attenuation scale equals 1.0 by @Dengda98 in #53
  • Run C-command grt like GMT-style by @Dengda98 in #55
  • FEAT: add grt -v to show the version by @Dengda98 in #56
  • FIX: update new command in example/ scripts by @Dengda98 in #57
  • CI: add CFLAGS="-fPIC" in fftw builds in centos 7 docker by @Dengda98 in #58
  • STYLE: alyways display static_<name> by @Dengda98 in #60
  • DOC: add changelog.md by @Dengda98 in #61
  • DOC: change switch color by @Dengda98 in #62
  • FIX: update new command in docs/ scripts, and update their description in doc by @Dengda98 in #59

Full Changelog: v0.9.2...v0.10.0

v0.9.2

08 Jul 17:38
da62593

Choose a tag to compare

🛠️ PyGRT v0.9.2

In Github Actions, use CentOS 7 docker to compile PyGRT, to support glibc >= 2.17 (ensure compatibility as much as possible).

What's Changed

Full Changelog: v0.9.1...v0.9.2

v0.9.1

01 Jul 04:09
0d5d477

Choose a tag to compare

🛠️ PyGRT v0.9.1

Bugfix release addressing issues in v0.9.0's source located in liquid. Update recommended: pip install --upgrade pygrt-kit

What's Changed

Full Changelog: v0.9.0...v0.9.1

v0.9.0

26 Jun 09:36
67c2b12

Choose a tag to compare

🎉 PyGRT v0.9.0

I'm very excited to announce the new release of PyGRT v0.9.0 has supported for computing synthetic seismograms with liquid layers, with results validated against CPS330's rspec96 module for accuracy. The documentation has been updated to include the corresponding formulas. This release is particularly useful for studies involving ocean.

Upgrade via pip install --upgrade pygrt-kit.

What's Changed

Full Changelog: v0.8.0...v0.9.0

v0.8.0

05 May 15:39

Choose a tag to compare

🎉 PyGRT v0.8.0

I'm excited to announce that now PyGRT supports Self-Adaptive Filon's Integration Method(SAFIM), a powerful tool to efficiently compute Green's Functions at large epicentral distances.

image

What's Changed

  • Refactor codes, and support Self-Adaptive Filon's Integration Method (SAFIM) by @Dengda98 in #27
  • DOC: add SAFIM by @Dengda98 in #28

Full Changelog: v0.7.0...v0.8.0

v0.7.0

24 Apr 12:02

Choose a tag to compare

🎉 PyGRT v0.7.0

What's Changed

Full Changelog: v0.6.0...v0.7.0

v0.6.0

21 Apr 10:42

Choose a tag to compare

🎉 PyGRT v0.6.0

What's Changed

  • DOC: add "strain and stress calculation" in Tutorial, and fix some typos by @Dengda98 in #16
  • Update stats file (kernel functions value in integration ) format, python reading functions, add grt.k2a command by @Dengda98 #17
  • DOC: add integ_converg in Toturial by @Dengda98 #18
  • FEAT: add dist in output of function pygrt.utils.read_statsfile_ptam by @Dengda98 #19
  • DOC: Refactor tutorial scripts and documentation for clarity and consistency by @Dengda98 #20
  • DOC: add grt.travt in Tutorial by @Dengda98 #21
  • add read_kernels_freqs() function, add "kernel frequency response" in Tutorial by @Dengda98 #22
  • Support rotation tensor calculation in both dynamic and static case by @Dengda98 #23

Full Changelog: v0.5.1...v0.6.0

view_stats
imag_G

v0.5.1

17 Apr 15:45

Choose a tag to compare

🎉 PyGRT v0.5.1

Now both Python and C can compute displacement, strain and stress in dynamic and static cases.
🛠️ Fix some math error and text error, such as, unit mixing (km and cm) in spatial derivatives in Python, coordinate of moment tensor is NED (North, East, Downward) , ...
📖 Chinese document is available, see here. Thanks @xichaoqiang for revision.

What's Changed

  • Support static displacements, strain and stress calculations in Python by @Dengda98 in #14
  • Build online docs, and upload to ReadtheDocs by @Dengda98 in #15

Full Changelog: v0.4.0...v0.5.1

docs/ folder has been removed from the following *.tar.gz