Rel_calib_stack to response

Hello

Can someone help to get from the output of rel_calib_stack to a obspy.core.inventory.response.Response that I can attach to a obspy.core.inventory.channel ?

Cheers

Fred

You basically want to make a Response with one stage and that being a ResponseListResponseStage that has the list of freq-amp-phase pairs.
Then you could probably then go one of two ways with that stage’s gain and the instrument sensitivity. You could be lazy and set it to 1 and use the values you got on these individual value pairs, or probably better you could use an actual proper value from your flat response part (assuming there is one) and then divide all original values for “amplitude” by that value for the individual pairs, so that all the value pairs have the amplitude relative to that overall sensitivity.

https://docs.obspy.org/master/packages/autogen/obspy.core.inventory.response.ResponseListResponseStage.html

1 Like