Skip to content

Figure.sac: Plot seismograms in SAC format #4853

Description

@Chuan1937

This issue serves as the central place for discussing and tracking the implementation of the sac method in PyGMT. The issue will be closed when the initial implementation is complete. Progress is tracked at PyGMT: Wrapping GMT modules.

Documentation

GMT Option Flags and Modifiers

☑️: Implemented; ⬜: To be implemented/discussed; Strikethrough: Won't implement.

  • -B: frame
  • -J: projection
  • -R: region
  • -C: time_window
  • -D: offset
  • -E: profile
  • -F: preprocess
  • -G: fill
  • -M: amplitude_scale
  • -Q: vertical
  • -S: time_scale
  • -T: reduction_velocity, time_shift, time_reference
  • -W: pen
  • -V: verbose
  • -X/-Y: Use Figure.shift_origin instead.
  • --PAR=value: Use pygmt.config instead.

Related GMT configurations

List any related GMT configurations that may affect the behavior.

Notes on Input Formats

The GMT sac module accepts SAC waveform files as input. Since ObsPy is widely used for seismic waveform processing in Python, support for ObsPy Trace/Stream objects could also be considered.

For example:

from obspy import read

trace = read("example.sac")[0]

fig.sac(spec=trace)

Linked Pull Requests

Related Issues and Discussions

Add links to related wrapper discussions, API design threads, or upstream GMT changes here.

Metadata

Metadata

Assignees

Labels

Projects

Status
No status

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions