trichter / rf

Receiver function calculation in seismology
MIT License
106 stars 62 forks source link

Feature request: preserve event_id if present #10

Closed medlin01GA closed 5 years ago

medlin01GA commented 5 years ago

https://github.com/trichter/rf/blob/8fe5ac8458032850dc541501afbccc24b3e60a56/rf/rfstream.py#L55

I noticed the commented code here that preserves the event ID when iterating an event catalog. It would be helpful if this event ID was passed through from the original catalog data, if available.

trichter commented 5 years ago

Good idea, I do not know anymore why I changed this. I added some code to pass through the event ids, but those will only be written to H5 format at the moment. Please let me know if the changes work for you.

medlin01GA commented 5 years ago

Looks good to me.