Taking a range out of an array
<p>I have an array with different numbers called wave_data. It has 101 numbers from 0.30000001 to 0.60000002. </p>

<p>This is the code I have:</p>

<pre><code>center_wave = 450e-9
width = 50e-9
wavelengths = wave_data*1e-6

range = width/2
min = center_wave - range
max = center_wave + range

wavelengths = wavelengths[somevariable:somevariable]
</code></pre>

<p>The goal is to have the those two numbers, the min and max variables, be the range for selecting the numbers out of the array. However, I am stuck at this point and do not know how to do that.</p>