Modif fermi_lat notebooks to use GAMMAPY_DATA
"outputs": [],
"source": [
"# Check that you have the prepared Fermi-LAT dataset\n",
- "!ls -1 $GAMMAPY_DATA/fermi_3fhl"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": null,
- "metadata": {},
- "outputs": [],
- "source": [
"# We will use diffuse models from here\n",
"!ls -1 $GAMMAPY_DATA/fermi_3fhl"
]
"outputs": [],
"source": [
"events = EventList.read(\n",
- " \"$GAMMAPY_FERMI_LAT_DATA/3fhl/allsky/fermi_3fhl_events_selected.fits.gz\"\n",
+ " \"$GAMMAPY_DATA/fermi_3fhl/fermi_3fhl_events_selected.fits.gz\"\n",
")\n",
"print(events)"
]
"outputs": [],
"source": [
"exposure_hpx = Map.read(\n",
- " \"$GAMMAPY_FERMI_LAT_DATA/3fhl/allsky/fermi_3fhl_exposure_cube_hpx.fits.gz\"\n",
+ " \"$GAMMAPY_DATA/fermi_3fhl/fermi_3fhl_exposure_cube_hpx.fits.gz\"\n",
")\n",
"# Unit is not stored in the file, set it manually\n",
"exposure_hpx.unit = \"cm2 s\"\n",
"outputs": [],
"source": [
"diffuse_galactic_fermi = Map.read(\n",
- " \"$GAMMAPY_EXTRA/datasets/fermi_3fhl/gll_iem_v06_cutout.fits\"\n",
+ " \"$GAMMAPY_DATA/fermi_3fhl/gll_iem_v06_cutout.fits\"\n",
")\n",
"# Unit is not stored in the file, set it manually\n",
"diffuse_galactic_fermi.unit = \"cm-2 s-1 MeV-1 sr-1\"\n",
"metadata": {},
"outputs": [],
"source": [
- "filename = \"$GAMMAPY_FERMI_LAT_DATA/isodiff/iso_P8R2_SOURCE_V6_v06.txt\"\n",
+ "filename = \"$GAMMAPY_DATA/fermi_3fhl/iso_P8R2_SOURCE_V6_v06.txt\"\n",
"interp_kwargs = {\"fill_value\": None}\n",
"diffuse_iso = TableModel.read_fermi_isotropic_model(\n",
" filename=filename, interp_kwargs=interp_kwargs\n",
"outputs": [],
"source": [
"psf = EnergyDependentTablePSF.read(\n",
- " \"$GAMMAPY_FERMI_LAT_DATA/3fhl/allsky/fermi_3fhl_psf_gc.fits.gz\"\n",
+ " \"$GAMMAPY_DATA/fermi_3fhl/fermi_3fhl_psf_gc.fits.gz\"\n",
")\n",
"print(psf)"
]
