update event sampling tutorial for IRF alpha-configuration
"outputs": [],
"source": [
"filename = (\n",
- " \"$GAMMAPY_DATA/cta-1dc/caldb/data/cta/1dc/bcf/South_z20_50h/irf_file.fits\"\n",
+ " \"$GAMMAPY_DATA/cta-caldb/Prod5-South-20deg-AverageAz-14MSTs37SSTs.180000s-v0.1.fits.gz\"\n",
")\n",
"\n",
"pointing = SkyCoord(0.0, 0.0, frame=\"galactic\", unit=\"deg\")\n",
")"
]
},
+ {
+ "cell_type": "markdown",
+ "metadata": {},
+ "source": [
+ "*It may happen that, when using the CTA IRFs for the alpha-configuration, some mandatory keywords requested by the `MapDatasetEventSampler` are not present in the header of the IRF files (see [here](https://gamma-astro-data-formats.readthedocs.io/en/latest/events/index.html)). We suggest the user to update the metadata info with the following lines of code (change values according to the set of IRF you are using):*"
+ ]
+ },
+ {
+ "cell_type": "code",
+ "execution_count": null,
+ "metadata": {},
+ "outputs": [],
+ "source": [
+ "observation.aeff.meta.update({\"CBD50001\":\"ZENITH(20.000)deg\"})\n",
+ "observation.aeff.meta.update({\"CBD60001\":\"AZIMUTH(0.000)deg\"})\n",
+ "observation.aeff.meta.update({\"CBD20001\":\"NAME(South_z20_50h\"})\n",
+ "observation.aeff.meta.update({\"CBD10001\":\"VERSION(alpha_config)\"})"
+ ]
+ },
{
"cell_type": "markdown",
"metadata": {},
"print(result)"
]
},
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
- "result.parameters.to_table()"
- ]
- },
{
"cell_type": "markdown",
"metadata": {},
"autocomplete": true,
"bibliofile": "biblio.bib",
"cite_by": "apalike",
- "current_citInitial": 1.0,
+ "current_citInitial": 1,
"eqLabelWithNumbers": true,
- "eqNumInitial": 1.0,
+ "eqNumInitial": 1,
"hotkeys": {
"equation": "Ctrl-E",
"itemize": "Ctrl-I"
