ADdapt detec tutorial
"source": [
"%%time\n",
"scales = u.Quantity(np.arange(0.05, 1, 0.05), unit=\"deg\")\n",
- "smooth = ASmoothMapEstimator(threshold=3, scales=scales)\n",
- "images = smooth.run(dataset.to_image())\n",
- "\n",
+ "smooth = ASmoothMapEstimator(threshold=3, scales=scales, e_edges=[10, 500] * u.GeV)\n",
+ "images = smooth.run(dataset)"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
"plt.figure(figsize=(15, 5))\n",
- "images[\"counts\"].plot(add_cbar=True, vmax=10)"
+ "images[\"flux\"].plot(add_cbar=True, stretch=\"asinh\");"
]
},
{
