Skip to content

Commit

Permalink
commit docs dev version
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Oct 11, 2024
1 parent 1b83ee8 commit 9d0c7df
Show file tree
Hide file tree
Showing 597 changed files with 1,434 additions and 1,467 deletions.
Binary file modified docs/dev/.doctrees/api-reference/estimators.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api-reference/modeling.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api-reference/utils.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api-reference/visualization.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.data.DataStore.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.estimators.FluxMetaData.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.irf.EDispMap.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.irf.EffectiveAreaTable2D.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/api/gammapy.makers.MapDatasetMaker.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/dependencies.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/dev_howto.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/doc_howto.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/intro.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-001.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-002.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-003.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-004.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-005.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-006.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-007.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-008.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-009.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-010.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-011.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-012.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-013.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-014.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-016.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-018.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-019.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-020.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-021.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-022.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-024.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/pigs/pig-026.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/release.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/development/setup.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/dev/.doctrees/getting-started/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/getting-started/install.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/getting-started/troubleshooting.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/getting-started/usage.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/release-notes/v1.0.1.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/release-notes/v1.0.2.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/release-notes/v1.0.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-1d/cta_sensitivity.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-1d/ebl.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-1d/sed_fitting.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-2d/detect.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-2d/modeling_2D.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-2d/ring_background.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/analysis_3d.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/analysis_mwl.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/event_sampling.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/flux_profiles.doctree
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-3d/simulate_3d.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/analysis-time/light_curve.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/astro_dark_matter.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/catalog.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/datasets.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/estimators.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/fitting.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/makers.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/maps.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/mask_maps.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/model_management.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/models.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/observation_clustering.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/priors.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/api/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/cta.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/fermi_lat.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/hawc.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/hess.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/data/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/scripts/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/analysis_1.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/analysis_2.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/overview.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/tutorials/starting/sg_execution_times.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/astro/darkmatter/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/datasets/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/dl3.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/howto.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/irf/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/makers/fov.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/makers/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/makers/reflected.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/makers/ring.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/maps/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/maps/regionmap.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/modeling.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/package.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/references.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/scripts/index.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/stats/fit_statistics.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/stats/wstat_derivation.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/utils.doctree
Binary file not shown.
Binary file modified docs/dev/.doctrees/user-guide/visualization/index.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/06ba2363ac6d8e23d2098c691bbc6e58/priors.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/1370bd9099a95d65461f2a665bb9decd/catalog.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@
This can be done to check the feasibility of a measurement, to test
whether fitted parameters really provide a good fit to the data etc.
Here we will see how to perform a 1D spectral simulation of a CTA
Here we will see how to perform a 1D spectral simulation of a CTAO
observation, in particular, we will generate OFF observations following
the template background stored in the CTA IRFs.
the template background stored in the CTAO IRFs.
**Objective: simulate a number of spectral ON-OFF observations of a
source with a power-law spectral model with CTA using the CTA 1DC
source with a power-law spectral model with CTAO using the CTA 1DC
response, fit them with the assumed spectral model and check that the
distribution of fitted parameters is consistent with the input values.**
Expand Down
Binary file not shown.
Binary file modified docs/dev/_downloads/21c6356dca773bb211972068bdd8edac/irfs.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/277e8d586c77a3ac9f6ad21ecdfc3485/detect.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
Point source sensitivity
========================
Estimate the CTA sensitivity for a point-like IRF at a fixed zenith angle and fixed offset.
Estimate the CTAO sensitivity for a point-like IRF at a fixed zenith angle and fixed offset.
Introduction
------------
This notebook explains how to estimate the CTA sensitivity for a
This notebook explains how to estimate the CTAO sensitivity for a
point-like IRF at a fixed zenith angle and fixed offset, using the full
containment IRFs distributed for the CTA 1DC. The significance is
computed for a 1D analysis (ON-OFF regions) with the Li&Ma formula.
Expand Down Expand Up @@ -81,7 +81,7 @@
# Load IRFs and prepare dataset
# -----------------------------
#
# We extract the 1D IRFs from the full 3D IRFs provided by CTA.
# We extract the 1D IRFs from the full 3D IRFs provided by CTAO.
#

irfs = load_irf_dict_from_file(
Expand Down Expand Up @@ -153,7 +153,7 @@
#
# We assume an alpha of 0.2 (ratio between ON and OFF area). We then run the sensitivity estimator.
#
# These are the conditions imposed in standard CTA sensitivity computations.
# These are the conditions imposed in standard CTAO sensitivity computations.

sensitivity_estimator = SensitivityEstimator(
gamma_min=10,
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/3887251ea091cf5a495cbd0984520eec/hawc.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/3edea76cb3aefe6dfce230edb07b24e2/models.zip
Binary file not shown.
Binary file modified docs/dev/_downloads/408398be7d2e8fce69b0c175dfb7db6c/hess.zip
Binary file not shown.
Binary file modified docs/dev/_downloads/42884adaf5dec1438e6da837d7acfad0/cta.zip
Binary file not shown.
Binary file modified docs/dev/_downloads/432ee3a608125ae95df2e8d950f07716/dl3-1.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/4722787c7fa105f0833ba203665f472d/maps.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
110 changes: 55 additions & 55 deletions docs/dev/_downloads/52215788338df5a5cca4ad9f70681d84/cta.py
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
"""
CTA with Gammapy
================
CTAO with Gammapy
=================
Access and inspect CTA data and instrument response functions (IRFs) using Gammapy.
Access and inspect CTAO data and instrument response functions (IRFs) using Gammapy.
Introduction
------------
The `Cherenkov Telescope Array
(CTA) <https://www.cta-observatory.org/>`__ is the next generation
The `Cherenkov Telescope Array Observatory (CTAO) <https://www.ctao.org/>`__ is the next generation
ground-based observatory for gamma-ray astronomy. Gammapy is the core
library for the Cherenkov Telescope Array (CTA) science tools
library for the Cherenkov Telescope Array Observatory (CTAO) science tools
(`2017ICRC…35..766D <https://ui.adsabs.harvard.edu/abs/2017ICRC...35..766D>`__
and `CTAO Press
Release <https://www.cta-observatory.org/ctao-adopts-the-gammapy-software-package-for-science-analysis/>`__).
Release <https://www.ctao.org/news/ctao-adopts-the-gammapy-software-package-for-science-analysis/>`__).
CTA will start taking data in the coming years. For now, to learn how to
analyse CTA data and to use Gammapy, if you are a member of the CTA
consortium, you can use the simulated dataset from the CTA first data
challenge which ran in 2017 and 2018.
CTAO will start taking data in the coming years. For now, to learn how to
analyse CTAO data and to use Gammapy, if you are a member of the CTAO
consortium, you can use the simulated dataset from:
- https://forge.in2p3.fr/projects/data-challenge-1-dc-1/wiki (CTA
internal)
- the CTA first data challenge which ran in 2017 and 2018 (https://forge.in2p3.fr/projects/data-challenge-1-dc-1/wiki),
- the CTAO Science Data Challenge of 2024 (https://ctaoobservatory.sharepoint.com/:f:/r/sites/share-open-data/Shared%20Documents/Reference%20datasets/Internal%20Science%20Data%20Challenge?csf=1&web=1&e=gNuFzI)
Gammapy fully supports the FITS data formats (events, IRFs) used in CTA
1DC. The XML sky model format is not supported, but are also not needed
1DC and SDC. The XML sky model format is not supported, but are also not needed
to analyse the data, you have to specify your model via the Gammapy YAML
model format, or Python code, as shown below.
You can use Gammapy to simulate CTA data and evaluate CTA performance
using the CTA response files available here:
You can also use Gammapy to simulate CTAO data and evaluate CTAO performance
using the CTAO response files. Two sets of responses are available for different
array layouts:
- https://www.cta-observatory.org/science/cta-performance/
- the Omega configuration (prod3b, 2016): https://zenodo.org/records/5163273,
- the Alpha configuration (prod5, 2021): https://zenodo.org/records/5499840.
They are all fully supported by Gammapy.
The current FITS format `CTA-Performance-prod3b-v2-FITS.tar` is fully
supported by Gammapy, as shown below.
Tutorial overview
-----------------
This notebook shows how to access CTA data and instrument response
This notebook shows how to access CTAO data and instrument response
functions (IRFs) using Gammapy, and gives some examples how to quick
look the content of CTA files, especially to see the shape of CTA IRFs.
look the content of CTAO files, especially to see the shape of CTAO IRFs.
At the end of the notebooks, we give several links to other tutorial
notebooks that show how to simulate CTA data and how to evaluate CTA
observability and sensitivity, or how to analyse CTA data.
notebooks that show how to simulate CTAO data and how to evaluate CTAO
observability and sensitivity, or how to analyse CTAO data.
Note that the FITS data and IRF format currently used by CTA is the one
Note that the FITS data and IRF format currently used by CTAO is the one
documented at https://gamma-astro-data-formats.readthedocs.io/, and is
also used by H.E.S.S. and other imaging atmospheric Cherenkov telescopes
also used by H.E.S.S. and other Imaging Atmospheric Cherenkov Telescopes
(IACTs). So if you see other Gammapy tutorials using e.g. H.E.S.S.
example data, know that they also apply to CTA, all you have to do is to
change the loaded data or IRFs to CTA.
example data, know that they also apply to CTAO, all you have to do is to
change the loaded data or IRFs to CTAO.
Setup
-----
Expand Down Expand Up @@ -95,18 +95,18 @@
# After download, follow the instructions how to `untar` the files, and
# set a `CTADATA` environment variable to point to the data.
#
# For convenience, since the 1DC data files are large, and not publicly
# **For convenience**, since the 1DC data files are large and not publicly
# available to anyone, we have taken a tiny subset of the CTA 1DC data,
# four observations with the southern array from the GPS survey, pointing
# near the Galactic center, and included them at `$GAMMAPY_DATA/cta-1dc`
# near the Galactic center, and **included them at `$GAMMAPY_DATA/cta-1dc`**
# which you get via `gammapy download datasets`.
#
# Files
# ~~~~~
#
# Next we will show a quick overview of the files and how to load them,
# and some quick look plots showing the shape of the CTA IRFs. How to do
# CTA simulations and analyses is shown in other tutorials, see links at
# and some quick look plots showing the shape of the CTAO IRFs. How to do
# CTAO simulations and analyses is shown in other tutorials, see links at
# the end of this notebook.
#

Expand Down Expand Up @@ -164,9 +164,9 @@
# equivalently via the `~gammapy.data.EventList` class by specifying the
# EVENTS filename.
#
# The quick-look `events.peek()` plot below shows that CTA has a field
# The quick-look `events.peek()` plot below shows that CTAO has a field
# of view of a few degrees, and two energy thresholds, one significantly
# below 100 GeV where the CTA large-size telescopes (LSTs) detect events,
# below 100 GeV where the CTAO large-size telescopes (LSTs) detect events,
# and a second one near 100 GeV where the mid-sized telescopes (MSTs)
# start to detect events.
#
Expand Down Expand Up @@ -206,7 +206,7 @@
# IRFs
# ----
#
# The CTA instrument response functions (IRFs) are given as FITS files in
# The CTAO instrument response functions (IRFs) are given as FITS files in
# the `caldb` folder, the following IRFs are available:
#
# - effective area
Expand All @@ -216,12 +216,12 @@
#
# Notes:
#
# - The IRFs contain the energy and offset dependence of the CTA response
# - CTA 1DC was based on an early version of the CTA FITS responses
# - The IRFs contain the energy and offset dependence of the CTAO response
# - CTA 1DC was based on an early version of the CTAO FITS responses
# produced in 2017, improvements have been made since.
# - The point spread function was approximated by a Gaussian shape
# - The background is from hadronic and electron air shower events that
# pass CTA selection cuts. It was given as a function of field of view
# pass CTAO selection cuts. It was given as a function of field of view
# coordinates, although it is radially symmetric.
# - The energy dispersion in CTA 1DC is noisy at low energy, leading to
# unreliable spectral points for some analyses.
Expand Down Expand Up @@ -355,28 +355,28 @@


######################################################################
# CTA performance files
# ---------------------
# Latest CTAO performance files
# -----------------------------
#
# CTA 1DC is useful to learn how to analyse CTA data. But to do
# simulations and studies for CTA now, you should get the most recent CTA
# IRFs in FITS format from
# https://www.cta-observatory.org/science/cta-performance/
# CTA 1DC is useful to learn how to analyse CTAO data. But to do
# simulations and studies for CTAO now, you should get the most recent CTAO
# IRFs in FITS format from https://www.ctao.org/for-scientists/performance/.
#
# If you want to run the download and examples in the next code cells,
# remove the # to uncomment.
# If you want to use other response files, the following code cells (remove the # to uncomment)
# explain how to proceed. This example is made with the Alpha configuration (Prod5).
#

# !curl -O https://www.cta-observatory.org/wp-content/uploads/2019/04/CTA-Performance-prod3b-v2-FITS.tar.gz

# !tar xf CTA-Performance-prod3b-v2-FITS.tar.gz
# !curl -o cta-prod5-zenodo-fitsonly-v0.1.zip https://zenodo.org/records/5499840/files/cta-prod5-zenodo-fitsonly-v0.1.zip
# !unzip cta-prod5-zenodo-fitsonly-v0.1.zip
# !ls fits/

# !ls caldb/data/cta/prod3b-v2/bcf
# !tar xf fits/CTA-Performance-prod5-v0.1-South-40deg.FITS.tar.gz -C fits/.
# !ls fits/*.fits.gz

# irfs1 = load_irf_dict_from_file("caldb/data/cta/prod3b-v2/bcf/South_z20_50h/irf_file.fits")
# irfs1 = load_irf_dict_from_file("fits/Prod5-South-40deg-SouthAz-14MSTs37SSTs.180000s-v0.1.fits.gz")
# irfs1["aeff"].plot_energy_dependence()

# irfs2 = load_irf_dict_from_file("caldb/data/cta/prod3b-v2/bcf/South_z40_50h/irf_file.fits")
# irfs2 = load_irf_dict_from_file("fits/Prod5-South-40deg-SouthAz-14MSTs37SSTs.1800s-v0.1.fits.gz")
# irfs2["aeff"].plot_energy_dependence()


Expand All @@ -391,11 +391,11 @@
# - Use `~gammapy.data.EventList.pointing_radec` to find the pointing position of this
# observation, and use `astropy.coordinates.SkyCoord` methods to find
# the field of view offset of the highest-energy event.
# - What is the effective area and PSF 68% containment radius of CTA at 1
# - What is the effective area and PSF 68% containment radius of CTAO at 1
# TeV for the `South_z20_50h` configuration used for the CTA 1DC
# simulation?
# - Get the latest CTA FITS performance files from
# https://www.cta-observatory.org/science/cta-performance/ and run the
# - Get the latest CTAO FITS performance files from
# https://www.ctao.org/for-scientists/performance/ and run the
# code example above. Make an effective area ratio plot of 40 deg
# zenith versus 20 deg zenith for the `South_z40_50h` and
# `South_z20_50h` configurations.
Expand All @@ -412,7 +412,7 @@
# :doc:`/tutorials/starting/analysis_1` and
# :doc:`/tutorials/starting/analysis_2` or any other
# Gammapy analysis tutorial.
# - Learn how to evaluate CTA observability and sensitivity with
# - Learn how to evaluate CTAO observability and sensitivity with
# :doc:`/tutorials/analysis-3d/simulate_3d`,
# :doc:`/tutorials/analysis-1d/spectrum_simulation`
# or :doc:`/tutorials/analysis-1d/cta_sensitivity`.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### Define an observation and make a dataset\n\nIn the following, we define an observation of 1 hr with CTA in the\nalpha-configuration for the south array, and we also create a dataset\nto be passed to the event sampler. The full `SkyModel` created above\nis passed to the dataset.\n\n\n"
"### Define an observation and make a dataset\n\nIn the following, we define an observation of 1 hr with CTAO in the\nalpha-configuration for the south array, and we also create a dataset\nto be passed to the event sampler. The full `SkyModel` created above\nis passed to the dataset.\n\n\n"
]
},
{
Expand Down
Binary file not shown.
Binary file not shown.
9 changes: 4 additions & 5 deletions docs/dev/_downloads/6a282de403487d7431bc34ed71c14d71/hess.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
format <https://gamma-astro-data-formats.readthedocs.io/>`__.
The H.E.S.S. data is private, and H.E.S.S. analysis is mostly documented
and discussed at https://hess-confluence.desy.de/ and in
and discussed in the internal Wiki pages and in
H.E.S.S.-internal communication channels. However, in 2018, a small
sub-set of archival H.E.S.S. data was publicly released, called the
`H.E.S.S. DL3
Expand All @@ -26,9 +26,8 @@
H.E.S.S. members can find details on the DL3 FITS production on this
`Confluence
page <https://hess-confluence.desy.de/confluence/display/HESS/HESS+FITS+data>`__
and access more detailed tutorials in this
`repository <https://bitbucket.org/hess_software/hess-open-source-tools/src/master/>`__
page <https://cchesswiki.in2p3.fr/en/hess/working_groups/analysis_and_reconstruction_working_group/ar_active_tasks/hess_fits_data>`__
and access more detailed tutorials in the BitBucket `hess-open-tools` repository.
DL3 DR1
-------
Expand Down Expand Up @@ -146,6 +145,6 @@
# ----------
#
# Now you know how to access and work with H.E.S.S. data. All other
# tutorials and documentation apply to H.E.S.S. and CTA or any other IACT
# tutorials and documentation apply to H.E.S.S. and CTAO or any other IACT
# that provides DL3 data and IRFs in the standard format.
#
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Creating the config file\n\nNow, we create a config file for out analysis. You may load this from\ndisc if you have a pre-defined config file.\n\nHere, we use 3 simulated CTA runs of the galactic center.\n\n\n"
"## Creating the config file\n\nNow, we create a config file for out analysis. You may load this from\ndisc if you have a pre-defined config file.\n\nHere, we use 3 simulated CTAO runs of the galactic center.\n\n\n"
]
},
{
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@


######################################################################
# Note that here we are lacking statistic because we only use one run of CTA.
# Note that here we are lacking statistic because we only use one run of CTAO.
#
# Phase-resolved spectrum
# -----------------------
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
------------
**This notebook shows an example how to make a sky image and spectrum
for simulated CTA data with Gammapy.**
for simulated CTAO data with Gammapy.**
The dataset we will use is three observation runs on the Galactic
Center. This is a tiny (and thus quick to process and play with and
learn) subset of the simulated CTA dataset that was produced for the
learn) subset of the simulated CTAO dataset that was produced for the
first data challenge in August 2017.
"""
Expand Down Expand Up @@ -401,7 +401,7 @@
# What next?
# ----------
#
# - This notebook showed an example of a first CTA analysis with Gammapy,
# - This notebook showed an example of a first CTAO analysis with Gammapy,
# using simulated 1DC data.
# - Let us know if you have any questions or issues!
#
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/84424d59ec624940199b69d87a792d50/index-1.pdf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/920df746e67257657f5d44e868b95ff9/fitting.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@
# Define an observation and make a dataset
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
#
# In the following, we define an observation of 1 hr with CTA in the
# In the following, we define an observation of 1 hr with CTAO in the
# alpha-configuration for the south array, and we also create a dataset
# to be passed to the event sampler. The full `SkyModel` created above
# is passed to the dataset.
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified docs/dev/_downloads/ac76b976c8eed3f5e3889db8bc14cf8e/makers.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
Once the data has been reduced to a MapDataset, there are no differences
in the way that HAWC data is handled with respect to data from any other
observatory, such as H.E.S.S. or CTA.
observatory, such as H.E.S.S. or CTAO.
HAWC data access and reduction
Expand Down
Binary file not shown.
Binary file modified docs/dev/_downloads/ba616a9da5fd4ea6727cee926df2b69e/ebl.zip
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"\n# 1D spectrum simulation\n\nSimulate a number of spectral on-off observations of a source with a power-law spectral\nmodel using the CTA 1DC response and fit them with the assumed spectral model.\n\n## Prerequisites\n\n- Knowledge of spectral extraction and datasets used in gammapy, see\n for instance the :doc:`spectral analysis\n tutorial </tutorials/analysis-1d/spectral_analysis>`\n\n## Context\n\nTo simulate a specific observation, it is not always necessary to\nsimulate the full photon list. For many uses cases, simulating directly\na reduced binned dataset is enough: the IRFs reduced in the correct\ngeometry are combined with a source model to predict an actual number of\ncounts per bin. The latter is then used to simulate a reduced dataset\nusing Poisson probability distribution.\n\nThis can be done to check the feasibility of a measurement, to test\nwhether fitted parameters really provide a good fit to the data etc.\n\nHere we will see how to perform a 1D spectral simulation of a CTA\nobservation, in particular, we will generate OFF observations following\nthe template background stored in the CTA IRFs.\n\n**Objective: simulate a number of spectral ON-OFF observations of a\nsource with a power-law spectral model with CTA using the CTA 1DC\nresponse, fit them with the assumed spectral model and check that the\ndistribution of fitted parameters is consistent with the input values.**\n\n## Proposed approach\n\nWe will use the following classes and functions:\n\n- `~gammapy.datasets.SpectrumDatasetOnOff`\n- `~gammapy.datasets.SpectrumDataset`\n- `~gammapy.irf.load_irf_dict_from_file`\n- `~gammapy.modeling.models.PowerLawSpectralModel`\n"
"\n# 1D spectrum simulation\n\nSimulate a number of spectral on-off observations of a source with a power-law spectral\nmodel using the CTA 1DC response and fit them with the assumed spectral model.\n\n## Prerequisites\n\n- Knowledge of spectral extraction and datasets used in gammapy, see\n for instance the :doc:`spectral analysis\n tutorial </tutorials/analysis-1d/spectral_analysis>`\n\n## Context\n\nTo simulate a specific observation, it is not always necessary to\nsimulate the full photon list. For many uses cases, simulating directly\na reduced binned dataset is enough: the IRFs reduced in the correct\ngeometry are combined with a source model to predict an actual number of\ncounts per bin. The latter is then used to simulate a reduced dataset\nusing Poisson probability distribution.\n\nThis can be done to check the feasibility of a measurement, to test\nwhether fitted parameters really provide a good fit to the data etc.\n\nHere we will see how to perform a 1D spectral simulation of a CTAO\nobservation, in particular, we will generate OFF observations following\nthe template background stored in the CTAO IRFs.\n\n**Objective: simulate a number of spectral ON-OFF observations of a\nsource with a power-law spectral model with CTAO using the CTA 1DC\nresponse, fit them with the assumed spectral model and check that the\ndistribution of fitted parameters is consistent with the input values.**\n\n## Proposed approach\n\nWe will use the following classes and functions:\n\n- `~gammapy.datasets.SpectrumDatasetOnOff`\n- `~gammapy.datasets.SpectrumDataset`\n- `~gammapy.irf.load_irf_dict_from_file`\n- `~gammapy.modeling.models.PowerLawSpectralModel`\n"
]
},
{
Expand Down
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 9d0c7df

Please sign in to comment.