Update tutorials/first_steps.ipynb
"outputs": [],
"source": [
"# select all events within a radius of 0.5 deg around center\n",
- "events_gc_3fhl = events_3fhl.select_sky_cone(center=center, radius=0.5 * u.deg)\n",
+ "from gammapy.utils.regions import SphericalCircleSkyRegion\n",
+ "\n",
+ "region = SphericalCircleSkyRegion(center, radius=0.5 * u.deg)\n",
+ "events_gc_3fhl = events_3fhl.select_region(region)\n",
"\n",
"# sort events by energy\n",
"events_gc_3fhl.table.sort(\"ENERGY\")\n",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
- "version": "3.6.0"
+ "version": "3.7.0"
}
},
"nbformat": 4,
