Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tutorial for joint 1d/3d analysis #2505

Merged
merged 1 commit into from Nov 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
42 changes: 42 additions & 0 deletions dev/datasets/gammapy-data-index.json
Expand Up @@ -2705,6 +2705,48 @@
}
]
},
{
"name": "fermi-3fhl-crab",
"description": "Prepared Fermi-LAT 3FHL dataset of the Crab Nebula region",
"files": [
{
"path": "fermi-3fhl-crab/Fermi-LAT-3FHL_data_Fermi-LAT.fits",
"url": "https://github.com/gammapy/gammapy-fermi-lat-data/raw/master/3fhl/crab/Fermi-LAT-3FHL_data_Fermi-LAT.fits",
"filesize": 391680,
"hashmd5": "3ca12b9f8f8100a9c8254566c5054e71"
},
{
"path": "fermi-3fhl-crab/Fermi-LAT-3FHL_datasets.yaml",
"url": "https://github.com/gammapy/gammapy-fermi-lat-data/raw/master/3fhl/crab/Fermi-LAT-3FHL_datasets.yaml",
"filesize": 222,
"hashmd5": "f4e9cbde47212e3ae195735c5e836df5"
},
{
"path": "fermi-3fhl-crab/Fermi-LAT-3FHL_models.yaml",
"url": "https://github.com/gammapy/gammapy-fermi-lat-data/raw/master/3fhl/crab/Fermi-LAT-3FHL_models.yaml",
"filesize": 1251,
"hashmd5": "23336c63661ac35291b4a3a95f5c73df"
}
]
},
{
"name": "hawc_crab",
"description": "tbd",
"files": [
{
"path": "hawc_crab/HAWC19_flux_points.fits",
"url": "https://github.com/gammapy/gammapy-extra/raw/master/datasets/hawc_crab/HAWC19_flux_points.fits",
"filesize": 8640,
"hashmd5": "afa06335c5a3e559b2ff0e73d254315f"
},
{
"path": "hawc_crab/prepare.py",
"url": "https://github.com/gammapy/gammapy-extra/raw/master/datasets/hawc_crab/prepare.py",
"filesize": 1222,
"hashmd5": "d13cdc457ff979e7a86b9c2d740659bb"
}
]
},
{
"name": "tests",
"description": "tbd",
Expand Down
22 changes: 22 additions & 0 deletions dev/datasets/make_dataset_index.py
Expand Up @@ -204,6 +204,26 @@ class DatasetFermi3FHLGC(DownloadDataset):
str(basepath / "gll_iem_v06_gc.fits.gz"),
]

class DatasetFermi3FHLcrab(DownloadDataset):

name = "fermi-3fhl-crab"
description = "Prepared Fermi-LAT 3FHL dataset of the Crab Nebula region"
base_url = "https://github.com/gammapy/gammapy-fermi-lat-data/raw/master"
local_repo = Path(os.environ["GAMMAPY_FERMI_LAT_DATA"])
basepath = Path("3fhl") / "crab"

followLinks = "Others"
pathlist = [
str(basepath / "Fermi-LAT-3FHL_data_Fermi-LAT.fits"),
str(basepath / "Fermi-LAT-3FHL_datasets.yaml"),
str(basepath / "Fermi-LAT-3FHL_models.yaml"),
]


class DatasetHAWCcrab(DownloadDataset):
name = "hawc_crab"
description = "tbd"


class DownloadDatasetIndex:
path = Path(__file__).parent / "gammapy-data-index.json"
Expand All @@ -218,6 +238,8 @@ class DownloadDatasetIndex:
DatasetEBL,
DatasetGammaCat,
DatasetFermi3FHLGC,
DatasetFermi3FHLcrab,
DatasetHAWCcrab,
DatasetTests,
DatasetFigures,
]
Expand Down
2 changes: 2 additions & 0 deletions docs/tutorials.rst
Expand Up @@ -41,6 +41,7 @@ Notebooks
notebooks/cta_sensitivity.ipynb
notebooks/spectrum_simulation.ipynb
notebooks/image_analysis.ipynb
notebooks/joint_1d_3d_analysis.ipynb


For a quick introduction to Gammapy, go here:
Expand All @@ -64,6 +65,7 @@ To get started with H.E.S.S. data analysis see here:
- `Joint 3D analysis <notebooks/analysis_3d_joint.html>`__ | *analysis_3d_joint.ipynb*
- `3D simulation and fitting <notebooks/simulate_3d.html>`__ | *simulate_3d.ipynb*
- `Fermi-LAT data with Gammapy <notebooks/fermi_lat.html>`__ | *fermi_lat.ipynb*
- `Joint 3D and 1D analysis <notebooks/joint_1d_3d_analysis.html>`__ | *joint_1d_3d_analysis.ipynb*

2-dimensional sky image analysis:

Expand Down