(<matplotlib.figure.Figure at 0x107b99b70>,
<matplotlib.axes._subplots.WCSAxesSubplot at 0x108533d68>,
<matplotlib.colorbar.Colorbar at 0x102666b00>)

In [8]:

# Making a counts image for multiple observations is a bit inconvenient at the moment# we'll make that better soon.# For now, you can do it like this:obs_ids=[23523,23526]counts_image2=SkyImage.empty_like(ref_image)forobs_idinobs_ids:events=data_store.obs(obs_id=obs_id).eventscounts_image2.fill_events(events)

# To use the `KernelBackgroundEstimator` you first have to set# up a source and background kernel and put the counts image input# into a container `SkyImageList` class.images=SkyImageList()images['counts']=counts_image2kbe=KBE(kernel_src=source_kernel,kernel_bkg=background_kernel,significance_threshold=5,mask_dilation_radius=0.06*u.deg,)# This takes about 10 seconds on my machineresult=kbe.run(images)