Skip to content

Use LSData class

Liam Toney requested to merge lsdata into master

This MR implements a new class, LSData, which takes care of the following:

  • Attaching azimuth, back_azimuth, and distance relative to the event location to tr.stats
  • Rotating data into ZRT (it does this smartly, and checks all supposed ENZ components for correct orientation using IRIS metadata, issuing a warning if a bad orientation is found) — see _rotate_to_rtz() in lsdata.py
  • Response removal to displacement (optional)
  • Basic station map plot
  • Basic waveform plot, with optional preview filtering

The LSForce object now takes an LSData object as input instead of an ObsPy Stream. I was able to remove a lot of rotation code from lsforce.py.

Merge request reports