Closed ghost closed 9 years ago
@martinvandriel Can it be due to the _labelmap (line 352) in _instaseisgui.py? Here is the code:
label_map = {0: {"z": "vertical", "n": "east", "e": "north"},
1: {"z": "vertical", "n": "radial", "e": "transverse"}}
Here "n" is mapped to "east" and "e" is mapped to "north". Not sure about the reason and whether this is the case for non-gui get_seismogram.
Interesting. I would say it's wrong in the GUI though: So probably you are right, Kasra.
You're right. The GUI is wrong, the traces in the obspy streams are labeled correctly.
When using get_seismograms() to store wavefields as an obspy stream, the component labeling is wrong.
Here is the (correct) result when using the GUI:
Here is the result when using the code provided below:
If this is compared with the output from the GUI, it is clear that simply N and E are switched/labeled wrong in the obspy stream. This is the code that has been used to store the obspy stream: