t;&gt;&gt; </span><span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span>
<span class="gp">&gt;&gt;&gt; </span><span class="c1"># rfstream is a RFStream object containing the receiver functions (based on rf)</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">rfstream</span> <span class="o">=</span> <span class="n">rfstream</span>
<span class="gp">&gt;&gt;&gt; </span><span class="n">preonset</span> <span class="o">=</span> <span class="mi">10