{ "cells": [ { "cell_type": "markdown", "id": "0", "metadata": {}, "source": [ "# F-factor systematics files " ] }, { "cell_type": "code", "execution_count": null, "id": "1", "metadata": {}, "outputs": [], "source": [ "import tables\n", "import matplotlib.pyplot as plt\n", "import numpy as np\n", "from lstcam_calib.io import get_dataset_keys\n" ] }, { "cell_type": "markdown", "id": "2", "metadata": {}, "source": [ "## HDF5 format" ] }, { "cell_type": "code", "execution_count": null, "id": "3", "metadata": {}, "outputs": [], "source": [ "file = \"../../../test_data/real/service/PixelCalibration/Cat-A/ffactor_systematics/20200725/pro/ffactor_systematics_20200725.h5\"\n", "hdf5_f=tables.open_file(file, \"r\")\n", "hdf5_f" ] }, { "cell_type": "markdown", "id": "4", "metadata": {}, "source": [ "### Data " ] }, { "cell_type": "code", "execution_count": null, "id": "5", "metadata": {}, "outputs": [], "source": [ "# Data used for calibration are:\n", "# - B_term : quadratic coefficient in the LST f-factor formula per channel and pixel (2, 1855)\n", "\n", "B_term = hdf5_f.root.B_term\n", "B_term\n" ] }, { "cell_type": "code", "execution_count": null, "id": "6", "metadata": {}, "outputs": [], "source": [ "np.array(B_term)" ] }, { "cell_type": "code", "execution_count": null, "id": "7", "metadata": {}, "outputs": [], "source": [ "np.array(hdf5_f.root.runs)" ] }, { "cell_type": "markdown", "id": "8", "metadata": {}, "source": [ "### Meta-data " ] }, { "cell_type": "code", "execution_count": null, "id": "9", "metadata": {}, "outputs": [], "source": [ "hdf5_f.root._v_attrs " ] } ], "metadata": { "kernelspec": { "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.11.10" } }, "nbformat": 4, "nbformat_minor": 5 }