pan><span class="c1"># Create Deep Image</span>
<span class="n">cube</span><span class="o">.</span><span class="n">create_deep_image</span><span class="p">()</span>
</pre></div>
</div>
<p>Let’s extract a background region and take a look at it. The background region is defined in a ds9 region file called <cite>bkg.reg</cite>.</p>
<div class="highlight-python notranslate"><div class="highlight"><pre><span></span><span class="n">bkg_axis</span><span class="p">,</span> <span class="n">bkg_sky</span> <span cl