.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "user-guide/auto_tutorials/explore_public_data.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_user-guide_auto_tutorials_explore_public_data.py: **Tutorial 1** Explore Public CTAO Data ======================================= Download public CTAO simulation data, convert it with ctapipe, and explore waveforms and images using DL1DataHandler. The four Zenodo files used for the stereo example total about 3.5 GB. They are downloaded only when this script is run, and existing downloads and converted files are reused. .. GENERATED FROM PYTHON SOURCE LINES 14-19 Imports ------- Import the tools used to download and process the public data, then read and visualize the resulting images and waveforms. .. GENERATED FROM PYTHON SOURCE LINES 19-37 .. code-block:: Python import os from pathlib import Path from ctapipe import __version__ as ctapipe_version from ctapipe.core import run_tool from ctapipe.tools.process import ProcessorTool from ctapipe.utils.download import download_file from dl1_data_handler.reader import DLImageReader, DLWaveformReader from matplotlib import animation as ani from matplotlib import pyplot as plt from traitlets.config.loader import Config try: from ctapipe.io.metadata import ProductMetadata except ImportError: ProductMetadata = None .. GENERATED FROM PYTHON SOURCE LINES 38-45 Set a limit on the number of events (optional) ---------------------------------------------- By default, the tutorial processes all events. To speed up a test run, set ``CTLEARN_TUTORIAL_MAX_EVENTS`` to a positive integer before running this script, for example ``CTLEARN_TUTORIAL_MAX_EVENTS=500``. The limit applies to each input file. Leave the variable unset to process all events. .. GENERATED FROM PYTHON SOURCE LINES 45-63 .. code-block:: Python plt.style.use("ggplot") print_log = True MAX_EVENTS = os.environ.get("CTLEARN_TUTORIAL_MAX_EVENTS") if MAX_EVENTS is not None and int(MAX_EVENTS) < 1: raise ValueError("CTLEARN_TUTORIAL_MAX_EVENTS must be a positive integer") MAX_EVENTS_ARGUMENT = f"--max-events={MAX_EVENTS}" if MAX_EVENTS is not None else None MAX_EVENTS_SUFFIX = f"-max{MAX_EVENTS}" if MAX_EVENTS is not None else "" TESTDATA_DIR = Path( os.environ.get( "CTLEARN_TUTORIAL_DATA_DIR", str(Path.home() / ".cache" / "ctlearn" / "tutorial-data"), ) ) TESTDATA_DIR.mkdir(parents=True, exist_ok=True) .. GENERATED FROM PYTHON SOURCE LINES 64-69 Download and process a small SimTel sample ------------------------------------------ First, download a small public gamma-ray simulation and process it to produce calibrated waveforms and images for the monoscopic examples. .. GENERATED FROM PYTHON SOURCE LINES 69-101 .. code-block:: Python SIMTEL_URL = ( "https://minio-cta.zeuthen.desy.de/dpps-testdata-public/data/" "ctapipe-test-data/v1.1.0/gamma_prod5.simtel.zst" ) simtel_path = TESTDATA_DIR / "gamma_prod5.simtel.zst" gamma_dl1_path = TESTDATA_DIR / f"gamma_prod5{MAX_EVENTS_SUFFIX}.r1.dl1.h5" if not simtel_path.is_file(): download_file(SIMTEL_URL, simtel_path, progress=True) else: print(f"Using existing download: {simtel_path}") if not gamma_dl1_path.is_file(): argv = [ f"--input={simtel_path}", f"--output={gamma_dl1_path}", "--write-images", "--DataWriter.write_r1_waveforms=True", "--SimTelEventSource.focal_length_choice=EQUIVALENT", "--overwrite", ] if MAX_EVENTS_ARGUMENT is not None: argv.append(MAX_EVENTS_ARGUMENT) if ProductMetadata is not None: argv.append("--ProductMetadata.instance=site_id=CTAO-South") result = run_tool(ProcessorTool(), argv=argv, cwd=str(TESTDATA_DIR)) if result != 0: raise RuntimeError(f"ctapipe-process failed for {simtel_path}") else: print(f"Using existing processed file: {gamma_dl1_path}") .. rst-class:: sphx-glr-script-out .. code-block:: none Using existing download: /home/runner/.cache/ctlearn/tutorial-data/gamma_prod5.simtel.zst Using existing processed file: /home/runner/.cache/ctlearn/tutorial-data/gamma_prod5-max500.r1.dl1.h5 .. GENERATED FROM PYTHON SOURCE LINES 102-108 *Part A1* Read calibrated waveforms =================================== DL1DataHandler can read calibrated waveforms and map each camera into a regular image. Here we display an animation of the waveform samples for each telescope type. .. GENERATED FROM PYTHON SOURCE LINES 108-186 .. code-block:: Python telescope_types = { "LST": [3, 4], "MST_FlashCam": [8, 9, 14], "MST_NectarCam": [109, 112, 118, 119, 121, 122, 124], "SST": [43, 46, 53, 57, 92, 98], } image_mapper_types = { "LST": "BilinearMapper", "MST_FlashCam": "OversamplingMapper", "MST_NectarCam": "AxialMapper", "SST": "SquareMapper", } for tel_type, allowed_tels in telescope_types.items(): config = Config( { "TableQualityQuery": { "quality_criteria": [("> 50 phe", "hillas_intensity > 50")], }, "DLWaveformReader": { "allowed_tels": allowed_tels, "image_mapper_type": image_mapper_types[tel_type], "sequence_length": None, "sequence_position": "center", "cleaning_type": None, "focal_length_choice": "EQUIVALENT", }, }, ) waveform_reader = DLWaveformReader( input_url_signal=[str(gamma_dl1_path)], config=config, ) batch = waveform_reader.generate_mono_batch(0) if print_log: print(f"DLWaveformReader: {waveform_reader}") print(f"Subarray information for {tel_type}:") print(waveform_reader.subarray.info()) print(f"Number of gamma events: {waveform_reader.n_signal_events}") print("First batch:") print("\n".join(batch.pformat(max_lines=-1, max_width=-1))) calibrated_waveforms = batch["features"][0] fig, ax = plt.subplots(figsize=(5, 5)) camera_image = calibrated_waveforms[:, :, 0] image = ax.imshow(camera_image, cmap="viridis", interpolation="nearest") ax.grid(False) colorbar = fig.colorbar(image, ax=ax, fraction=0.046, pad=0.04) colorbar.set_label("p.e.", fontsize=10) title = ax.set_title(f"{tel_type}: calibrated waveform (t = 0 ns)") def update( frame, waveform=calibrated_waveforms, image_artist=image, title_artist=title, telescope_type=tel_type, ): frame_image = waveform[:, :, frame] image_artist.set_data(frame_image) image_artist.set_clim(frame_image.min(), frame_image.max()) title_artist.set_text(f"{telescope_type}: calibrated waveform (t = {frame} ns)") return image_artist, title_artist waveform_animation = ani.FuncAnimation( fig, update, frames=calibrated_waveforms.shape[-1], interval=500, blit=False, ) # Sphinx-Gallery scrapes animations from module globals after execution. globals()[f"{tel_type.lower()}_waveform_animation"] = waveform_animation plt.show() .. rst-class:: sphx-glr-horizontal * .. container:: sphx-glr-animation .. raw:: html
* .. container:: sphx-glr-animation .. raw:: html
* .. container:: sphx-glr-animation .. raw:: html
* .. container:: sphx-glr-animation .. raw:: html
.. rst-class:: sphx-glr-script-out .. code-block:: none /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLWaveformReader: Subarray information for LST: Subarray : MonteCarloArray_3,4 Num Tels : 2 Footprint: 0.05 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs -------------- ----- ------- LST_LST_LSTCam 2 3,4 None Number of gamma events: 1 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------ ----------------- ---------------- ----------------- ----------------- ---------------- ----------------- ---------------------- -------------------------- --------------------------- ----------------------- ---------------------- --------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ----------------- ------------------------- 0 0 0 1 0 5105 4 0.0 .. 0.0 1.7454713582992554 69.99999967119774 359.999982697156 -324.859130859375 398.5491027832031 20947.525390625 286.7567443847656 0 0.0 1.2217305 -1.7711440204833211e-06 -2.291954672042717e-06 2.896550942067524e-06 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 0.24191272680551626 514.1739416112068 1 /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLWaveformReader: Subarray information for MST_FlashCam: Subarray : MonteCarloArray_8,9,14 Num Tels : 3 Footprint: 0.33 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs ---------------- ----- ------- MST_MST_FlashCam 3 8,9,14 None Number of gamma events: 5 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------- ----------------- ---------------- ------------------- ----------------- ---------------- ------------------ ---------------------- -------------------------- --------------------------- --------------------- ----------------------- --------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ------------------ ------------------------- 0 0 0 1 0 4009 9 0.0 .. 0.0 0.07287972420454025 69.99999967119774 359.999982697156 -146.42298889160156 341.6435852050781 32396.98828125 159.41175842285156 0 0.0 1.2217305 -7.46347422920838e-07 -1.4773488972808342e-06 1.655171966895728e-06 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 -1.1373932795130073 371.69884447994934 1 /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLWaveformReader: Subarray information for MST_NectarCam: Subarray : MonteCarloArray_109,112,118,119,121,122,124 Num Tels : 7 Footprint: 1.07 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs ----------------- ----- --------------------------- MST_MST_NectarCam 7 109,112,118,119,121,122,124 None Number of gamma events: 9 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------ ----------------- ---------------- ------------------ ------------------ ---------------- ----------------- ---------------------- -------------------------- --------------------------- ----------------------- ----------------------- --------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ----------------- ------------------------- 0 0 0 1 0 5101 121 0.0 .. 0.0 1.7454713582992554 69.99999967119774 359.999982697156 -737.0097045898438 -266.6009521484375 20947.525390625 286.7567443847656 0 0.0 1.2217305 -1.0120822974190406e-06 -1.3096883840244097e-06 1.655171966895728e-06 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 0.24191272680551626 783.7470078705642 1 /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLWaveformReader: Subarray information for SST: Subarray : MonteCarloArray_43,46,53,57,92,98 Num Tels : 6 Footprint: 4.92 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs -------------- ----- ----------------- SST_ASTRI_CHEC 6 43,46,53,57,92,98 None Number of gamma events: 4 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------ ----------------- ---------------- ------------------ ------------------ ---------------- ----------------- ---------------------- -------------------------- --------------------------- ---------------------- ----------------------- ---------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ----------------- ------------------------- 0 0 0 1 0 5101 53 0.0 .. 0.0 1.7454713582992554 69.99999967119774 359.999982697156 -737.0097045898438 -266.6009521484375 20947.525390625 286.7567443847656 0 0.0 1.2217305 1.2405315158707766e-08 -2.2206751494591606e-07 2.2241374291720718e-07 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 0.24191272680551626 783.7470078705642 1 .. GENERATED FROM PYTHON SOURCE LINES 187-192 *Part B1* Read monoscopic images ================================ The image reader returns integrated charge and relative peak-time images. The mapper is selected for each camera type. .. GENERATED FROM PYTHON SOURCE LINES 192-233 .. code-block:: Python for tel_type, allowed_tels in telescope_types.items(): config = Config( { "TableQualityQuery": { "quality_criteria": [("> 50 phe", "hillas_intensity > 50")], }, "DLImageReader": { "allowed_tels": allowed_tels, "channels": ["image", "relative_peak_time"], "image_mapper_type": image_mapper_types[tel_type], "focal_length_choice": "EQUIVALENT", }, }, ) image_reader = DLImageReader( input_url_signal=[str(gamma_dl1_path)], config=config, ) batch = image_reader.generate_mono_batch(0) if print_log: print(f"DLImageReader: {image_reader}") print(f"Subarray information for {tel_type}:") print(image_reader.subarray.info()) print(f"Number of gamma events: {image_reader.n_signal_events}") print("First batch:") print("\n".join(batch.pformat(max_lines=-1, max_width=-1))) for channel_index, channel_name, unit in [ (0, "charge image", "p.e."), (1, "relative peak arrival time", "ns"), ]: fig, ax = plt.subplots(figsize=(5, 5)) image = ax.imshow(batch["features"][0, :, :, channel_index], cmap="viridis") ax.set_title(f"{tel_type} - {channel_name}") ax.grid(False) colorbar = fig.colorbar(image, ax=ax, fraction=0.046, pad=0.04) colorbar.set_label(unit, fontsize=12) plt.show() .. rst-class:: sphx-glr-horizontal * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_005.png :alt: LST - charge image :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_005.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_006.png :alt: LST - relative peak arrival time :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_006.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_007.png :alt: MST_FlashCam - charge image :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_007.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_008.png :alt: MST_FlashCam - relative peak arrival time :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_008.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_009.png :alt: MST_NectarCam - charge image :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_009.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_010.png :alt: MST_NectarCam - relative peak arrival time :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_010.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_011.png :alt: SST - charge image :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_011.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_012.png :alt: SST - relative peak arrival time :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_012.png :class: sphx-glr-multi-img .. rst-class:: sphx-glr-script-out .. code-block:: none /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLImageReader: Subarray information for LST: Subarray : MonteCarloArray_3,4 Num Tels : 2 Footprint: 0.05 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs -------------- ----- ------- LST_LST_LSTCam 2 3,4 None Number of gamma events: 1 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------ ----------------- ---------------- ----------------- ----------------- ---------------- ----------------- ---------------------- -------------------------- --------------------------- ----------------------- ---------------------- --------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ----------------- ------------------------- 0 0 0 1 0 5105 4 0.0 .. 0.0 1.7454713582992554 69.99999967119774 359.999982697156 -324.859130859375 398.5491027832031 20947.525390625 286.7567443847656 0 0.0 1.2217305 -1.7711440204833211e-06 -2.291954672042717e-06 2.896550942067524e-06 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 0.24191272680551626 514.1739416112068 1 /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLImageReader: Subarray information for MST_FlashCam: Subarray : MonteCarloArray_8,9,14 Num Tels : 3 Footprint: 0.33 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs ---------------- ----- ------- MST_MST_FlashCam 3 8,9,14 None Number of gamma events: 5 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------- ----------------- ---------------- ------------------- ----------------- ---------------- ------------------ ---------------------- -------------------------- --------------------------- --------------------- ----------------------- --------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ------------------ ------------------------- 0 0 0 1 0 4009 9 0.0 .. 0.0 0.07287972420454025 69.99999967119774 359.999982697156 -146.42298889160156 341.6435852050781 32396.98828125 159.41175842285156 0 0.0 1.2217305 -7.46347422920838e-07 -1.4773488972808342e-06 1.655171966895728e-06 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 -1.1373932795130073 371.69884447994934 1 /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLImageReader: Subarray information for MST_NectarCam: Subarray : MonteCarloArray_109,112,118,119,121,122,124 Num Tels : 7 Footprint: 1.07 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs ----------------- ----- --------------------------- MST_MST_NectarCam 7 109,112,118,119,121,122,124 None Number of gamma events: 9 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------ ----------------- ---------------- ------------------ ------------------ ---------------- ----------------- ---------------------- -------------------------- --------------------------- ----------------------- ----------------------- --------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ----------------- ------------------------- 0 0 0 1 0 5101 121 0.0 .. 0.0 1.7454713582992554 69.99999967119774 359.999982697156 -737.0097045898438 -266.6009521484375 20947.525390625 286.7567443847656 0 0.0 1.2217305 -1.0120822974190406e-06 -1.3096883840244097e-06 1.655171966895728e-06 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 0.24191272680551626 783.7470078705642 1 /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( DLImageReader: Subarray information for SST: Subarray : MonteCarloArray_43,46,53,57,92,98 Num Tels : 6 Footprint: 4.92 km2 Height : 2147.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs -------------- ----- ----------------- SST_ASTRI_CHEC 6 43,46,53,57,92,98 None Number of gamma events: 4 First batch: index file_index table_index obs_id tel_type_id event_id tel_id features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation log_true_energy impact_radius true_shower_primary_class TeV deg deg m m m g / cm2 rad rad m m m rad rad deg deg deg TeV m ----- ---------- ----------- ------ ----------- -------- ------ ---------- ------------------ ----------------- ---------------- ------------------ ------------------ ---------------- ----------------- ---------------------- -------------------------- --------------------------- ---------------------- ----------------------- ---------------------- ----------------- ---------------- ---------------------- --------------------- --------------------- ------------------- ----------------- ------------------------- 0 0 0 1 0 5101 53 0.0 .. 0.0 1.7454713582992554 69.99999967119774 359.999982697156 -737.0097045898438 -266.6009521484375 20947.525390625 286.7567443847656 0 0.0 1.2217305 1.2405315158707766e-08 -2.2206751494591606e-07 2.2241374291720718e-07 1.2217305 7.987575e-08 -7.483191294330021e-06 3.305921525315792e-07 7.490488175341835e-06 0.24191272680551626 783.7470078705642 1 .. GENERATED FROM PYTHON SOURCE LINES 234-241 Download and convert the stereoscopic simulated CTAO data --------------------------------------------------------- The Zenodo files contain CTAO open-source gamma and proton simulations. Convert each file with the installed ctapipe version, and store converted outputs in a version-specific directory so they are not confused with the original downloads. .. GENERATED FROM PYTHON SOURCE LINES 241-285 .. code-block:: Python ZENODO_FILES = [ "gamma-diffuse_with_images_00.dl2.h5", "gamma-diffuse_with_images_01.dl2.h5", "proton_with_images_00.dl2.h5", "proton_with_images_01.dl2.h5", ] ZENODO_FILES_URL = "https://zenodo.org/api/records/7298569/files" converted_path = TESTDATA_DIR / f"ctapipe-{ctapipe_version}{MAX_EVENTS_SUFFIX}" converted_path.mkdir(parents=True, exist_ok=True) for filename in ZENODO_FILES: source_path = TESTDATA_DIR / filename if not source_path.is_file(): download_file( url=f"{ZENODO_FILES_URL}/{filename}/content", path=source_path, progress=True, ) else: print(f"Using existing download: {source_path}") output_path = converted_path / filename if not output_path.is_file(): temporary_output = converted_path / f".{filename}.processing.h5" argv = [ f"--input={source_path}", f"--output={temporary_output}", "--write-images", "--write-parameters", "--write-showers", "--overwrite", ] if MAX_EVENTS_ARGUMENT is not None: argv.append(MAX_EVENTS_ARGUMENT) if ProductMetadata is not None: argv.append("--ProductMetadata.instance=site_id=CTAO-North") result = run_tool(ProcessorTool(), argv=argv, cwd=str(TESTDATA_DIR)) if result != 0: raise RuntimeError(f"ctapipe-process failed for {source_path}") temporary_output.replace(output_path) else: print(f"Using existing ctapipe output: {output_path}") .. rst-class:: sphx-glr-script-out .. code-block:: none Using existing download: /home/runner/.cache/ctlearn/tutorial-data/gamma-diffuse_with_images_00.dl2.h5 Using existing ctapipe output: /home/runner/.cache/ctlearn/tutorial-data/ctapipe-0.33.0-max500/gamma-diffuse_with_images_00.dl2.h5 Using existing download: /home/runner/.cache/ctlearn/tutorial-data/gamma-diffuse_with_images_01.dl2.h5 Using existing ctapipe output: /home/runner/.cache/ctlearn/tutorial-data/ctapipe-0.33.0-max500/gamma-diffuse_with_images_01.dl2.h5 Using existing download: /home/runner/.cache/ctlearn/tutorial-data/proton_with_images_00.dl2.h5 Using existing ctapipe output: /home/runner/.cache/ctlearn/tutorial-data/ctapipe-0.33.0-max500/proton_with_images_00.dl2.h5 Using existing download: /home/runner/.cache/ctlearn/tutorial-data/proton_with_images_01.dl2.h5 Using existing ctapipe output: /home/runner/.cache/ctlearn/tutorial-data/ctapipe-0.33.0-max500/proton_with_images_01.dl2.h5 .. GENERATED FROM PYTHON SOURCE LINES 286-291 *Part C1* Read stereo images ============================ Finally, combine gamma and proton events in stereo mode and plot the integrated charge and relative peak-time image from each telescope. .. GENERATED FROM PYTHON SOURCE LINES 291-353 .. code-block:: Python gamma_stereo_path = converted_path / "gamma-diffuse_with_images_00.dl2.h5" proton_stereo_path = converted_path / "proton_with_images_00.dl2.h5" for tel_type in ["LST_LST_LSTCam", "MST_MST_NectarCam"]: config = Config( { "TableQualityQuery": { "quality_criteria": [("> 500 phe", "hillas_intensity > 500")], }, "DLImageReader": { "mode": "stereo", "allowed_tel_types": [tel_type], "min_telescopes": 4, "channels": ["image", "relative_peak_time"], "image_mapper_type": "BilinearMapper", }, }, ) stereo_reader = DLImageReader( input_url_signal=[str(gamma_stereo_path)], input_url_background=[str(proton_stereo_path)], config=config, ) stereo_reader.subarray.peek() batch = stereo_reader.generate_stereo_batch(0) if print_log: print(f"DLImageReader: {stereo_reader}") print("Subarray information:") print(stereo_reader.subarray.info()) print(f"Number of gamma events: {stereo_reader.n_signal_events}") print(f"Number of proton events: {stereo_reader.n_bkg_events}") print("First batch:") print("\n".join(batch.pformat(max_lines=-1, max_width=-1))) fig, axes = plt.subplots( 2, len(batch["tel_id"]), figsize=(24, 14), constrained_layout=True, squeeze=False, ) for telescope_index, tel_id in enumerate(batch["tel_id"]): for channel_index, label, unit in [ (0, "Charge image", "p.e."), (1, "Peak arrival time", "ns"), ]: image = axes[channel_index, telescope_index].imshow( batch["features"][telescope_index, :, :, channel_index], cmap="viridis", ) axes[channel_index, telescope_index].set_title(f"Tel-{tel_id} - {label}") axes[channel_index, telescope_index].grid(False) colorbar = fig.colorbar( image, ax=axes[channel_index, telescope_index], fraction=0.046, pad=0.04, ) colorbar.set_label(unit, fontsize=12) plt.show() .. rst-class:: sphx-glr-horizontal * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_013.png :alt: MonteCarloArray_1-11,19,35_1-4 :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_013.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_014.png :alt: Tel-1 - Charge image, Tel-2 - Charge image, Tel-3 - Charge image, Tel-4 - Charge image, Tel-1 - Peak arrival time, Tel-2 - Peak arrival time, Tel-3 - Peak arrival time, Tel-4 - Peak arrival time :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_014.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_015.png :alt: MonteCarloArray_1-11,19,35_5-11,19,35 :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_015.png :class: sphx-glr-multi-img * .. image-sg:: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_016.png :alt: Tel-5 - Charge image, Tel-6 - Charge image, Tel-7 - Charge image, Tel-8 - Charge image, Tel-9 - Charge image, Tel-10 - Charge image, Tel-11 - Charge image, Tel-19 - Charge image, Tel-35 - Charge image, Tel-5 - Peak arrival time, Tel-6 - Peak arrival time, Tel-7 - Peak arrival time, Tel-8 - Peak arrival time, Tel-9 - Peak arrival time, Tel-10 - Peak arrival time, Tel-11 - Peak arrival time, Tel-19 - Peak arrival time, Tel-35 - Peak arrival time :srcset: /user-guide/auto_tutorials/images/sphx_glr_explore_public_data_016.png :class: sphx-glr-multi-img .. rst-class:: sphx-glr-script-out .. code-block:: none /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.17.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.17.0' warnings.warn( DLImageReader: Subarray information: Subarray : MonteCarloArray_1-11,19,35_1-4 Num Tels : 4 Footprint: 0.03 km2 Height : 0.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs -------------- ----- ------- LST_LST_LSTCam 4 1-4 None Number of gamma events: 10 Number of proton events: 7 First batch: file_index table_index obs_id event_id tel_type_id tel_id hillas_intensity features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance log_true_energy impact_radius true_shower_primary_class pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation TeV deg deg m m m g / cm2 rad rad m m m TeV m rad rad deg deg deg ---------- ----------- ------ -------- ----------- ------ ------------------ ---------- ------------------ ----------------- --------------- ---------------- ------------------ ---------------- ----------------- ---------------------- -------------------------- --------------------------- ------------------ ------------------ ------------------ ------------------ ----------------- ------------------------- ----------------- ---------------- ------------------ ----------------- ------------------ 0 6 5712 576707 0 1 11419.440873622894 0.0 .. 0.0 10.893922805786133 70.08921560213645 8.9336774060597 -4.9083251953125 263.83026123046875 17002.474609375 431.8487243652344 0 0.0 1.2217305 1.1355882793735934 1.0677868966470843 1.558758992564883 1.0371842935422266 263.8759147727589 1 1.2217305 -6.770173e-08 3.0315685361531215 0.311652637513208 3.0475308859590906 0 6 5712 576707 0 2 41779.749005794525 0.0 .. 0.0 10.893922805786133 70.08921560213645 8.9336774060597 -4.9083251953125 263.83026123046875 17002.474609375 431.8487243652344 0 0.0 1.2217305 1.1355882793735934 1.0677868966470843 1.558758992564883 1.0371842935422266 263.8759147727589 1 1.2217305 -6.770173e-08 3.0315685361531215 0.311652637513208 3.0475308859590906 0 5 5712 576707 0 3 32936.11060619354 0.0 .. 0.0 10.893922805786133 70.08921560213645 8.9336774060597 -4.9083251953125 263.83026123046875 17002.474609375 431.8487243652344 0 0.0 1.2217305 1.1355882793735934 1.0677868966470843 1.558758992564883 1.0371842935422266 263.8759147727589 1 1.2217305 -6.770173e-08 3.0315685361531215 0.311652637513208 3.0475308859590906 0 4 5712 576707 0 4 11688.117533683777 0.0 .. 0.0 10.893922805786133 70.08921560213645 8.9336774060597 -4.9083251953125 263.83026123046875 17002.474609375 431.8487243652344 0 0.0 1.2217305 1.1355882793735934 1.0677868966470843 1.558758992564883 1.0371842935422266 263.8759147727589 1 1.2217305 -6.770173e-08 3.0315685361531215 0.311652637513208 3.0475308859590906 /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.17.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.33.0' warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: In merged column 'obs_id' the 'description' attribute does not match (Observation Block ID != Simulation Run Identifier). Using Simulation Run Identifier for merged output warnings.warn( /opt/hostedtoolcache/Python/3.12.16/x64/lib/python3.12/site-packages/astropy/utils/metadata/merge.py:289: MergeConflictWarning: Cannot merge meta key 'CTAPIPE_VERSION' types and , choosing CTAPIPE_VERSION='0.17.0' warnings.warn( DLImageReader: Subarray information: Subarray : MonteCarloArray_1-11,19,35_5-11,19,35 Num Tels : 9 Footprint: 0.28 km2 Height : 0.00 m Lon/Lat : 0.0 deg, 0.0 deg Type Count Tel IDs ----------------- ----- ---------- MST_MST_NectarCam 9 5-11,19,35 None Number of gamma events: 25 Number of proton events: 16 First batch: file_index table_index obs_id event_id tel_type_id tel_id hillas_intensity features true_energy true_alt true_az true_core_x true_core_y true_h_first_int true_x_max true_shower_primary_id telescope_pointing_azimuth telescope_pointing_altitude cam_coord_offset_x cam_coord_offset_y cam_coord_distance log_true_energy impact_radius true_shower_primary_class pointing_altitude pointing_azimuth fov_lon fov_lat angular_separation TeV deg deg m m m g / cm2 rad rad m m m TeV m rad rad deg deg deg ---------- ----------- ------ -------- ----------- ------ ------------------ ---------- ----------------- ---------------- ------------------ ----------------- ----------------- ---------------- ------------------ ---------------------- -------------------------- --------------------------- ------------------ ------------------ ------------------ ------------------ ----------------- ------------------------- ----------------- ---------------- ---------------- ------------------ ------------------ 0 -1 5712 165408 0 5 0.0 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 -1 5712 165408 0 6 0.0 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 3 5712 165408 0 7 743.8112516403198 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 4 5712 165408 0 8 1172.6915082931519 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 1 5712 165408 0 9 536.0758013725281 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 -1 5712 165408 0 10 0.0 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 -1 5712 165408 0 11 0.0 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 1 5712 165408 0 19 604.6973376274109 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 0 -1 5712 165408 0 35 0.0 0.0 .. 0.0 58.88951110839844 70.6967336080524 27.806446309288734 346.2816467285156 632.5091552734375 28967.982421875 375.32244873046875 0 0.0 1.2217305 2.2660246674433715 1.4096377281906547 2.668697494696683 1.7700379488891007 721.0955625752595 1 1.2217305 -6.770173e-08 8.88105224435376 2.7529300388809794 9.294671110810198 .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 36.927 seconds) .. _sphx_glr_download_user-guide_auto_tutorials_explore_public_data.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: explore_public_data.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: explore_public_data.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: explore_public_data.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_