
</pre></div>
</div>
<p>For instance, we can define a simple example function, which simply subtracts a given offset from each value in the
intensity_data array as follows:</p>
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="k">def</span> <span class="nf">offset_func</span><span class="p">(</span><span class="n">intensity_data</span><span class="p">,</span> <span class="n">spectral_axis</span><span class="p">,</span> <span class="o">*</span><span class="p">,<