diff --git a/doc/Loading_data_in_memory.ipynb b/doc/Loading_data_in_memory.ipynb index 20b40d9b18372654ea0397dd32548d488b4af0f1..0b9fabebedcf2f4e36eb27c763c9abafae1c3e4e 100644 --- a/doc/Loading_data_in_memory.ipynb +++ b/doc/Loading_data_in_memory.ipynb @@ -50,7 +50,7 @@ "cell_type": "markdown", "metadata": {}, "source": [ - "The list of available mnemonics can vary from run to run, depending on what sources were recorded. The function `mnemonics_for_run` returns the mnemonics that correspond to actual data sources in a run (`extra_data` `DataCollection`):" + "The list of available mnemonics can vary from run to run, depending on which sources were recorded. The function `mnemonics_for_run` returns the mnemonics that correspond to actual data sources in a run. The input parameters can be the proposal and run numbers of the run or the run itself (`extra_data` `DataCollection`):" ] }, { @@ -59,10 +59,34 @@ "metadata": {}, "outputs": [], "source": [ - "run, _ = tb.load(2212, 213)\n", + "# providing the proposal and run numbers\n", + "run_mnemonics = tb.mnemonics_for_run(2212, 213)\n", + "\n", + "# alternative, providing the DataCollection as input argument\n", + "run = tb.open_run(2212, 213)\n", "run_mnemonics = tb.mnemonics_for_run(run)" ] }, + { + "cell_type": "code", + "execution_count": 3, + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "dict_keys(['sase3', 'sase2', 'sase1', 'maindump', 'bunchpattern', 'bunchPatternTable', 'npulses_sase3', 'npulses_sase1', 'nrj', 'XTD10_photonFlux', 'XTD10_photonFlux_sigma', 'XTD10_XGM', 'XTD10_XGM_sigma', 'XTD10_SA3', 'XTD10_SA3_sigma', 'XTD10_SA1', 'XTD10_SA1_sigma', 'XTD10_slowTrain', 'XTD10_slowTrain_SA1', 'XTD10_slowTrain_SA3', 'SCS_photonFlux', 'SCS_photonFlux_sigma', 'SCS_XGM', 'SCS_XGM_sigma', 'SCS_SA1', 'SCS_SA1_sigma', 'SCS_SA3', 'SCS_SA3_sigma', 'SCS_slowTrain', 'SCS_slowTrain_SA1', 'SCS_slowTrain_SA3', 'AFS_FocusLens', 'PP800_PhaseShifter', 'PP800_DelayLine', 'PP800_HalfWP', 'PP800_FocusLens', 'PP800_TeleLens', 'MCP1apd', 'MCP1raw', 'MCP2apd', 'MCP2raw', 'MCP3apd', 'MCP3raw', 'MCP4apd', 'MCP4raw', 'FastADC0peaks', 'FastADC0raw', 'FastADC1peaks', 'FastADC1raw', 'FastADC2peaks', 'FastADC2raw', 'FastADC3peaks', 'FastADC3raw', 'FastADC4peaks', 'FastADC4raw', 'FastADC5peaks', 'FastADC5raw', 'FastADC6peaks', 'FastADC6raw', 'FastADC7peaks', 'FastADC7raw', 'FastADC8peaks', 'FastADC8raw', 'FastADC9peaks', 'FastADC9raw'])" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "run_mnemonics.keys()" + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -92,7 +116,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -460,8 +484,8 @@ " MCP3peaks (trainId, sa3_pId) float64 -197.7 -34.67 ... -1.213e+03\n", " SCS_SA3 (trainId, sa3_pId) float64 2.839e+03 897.9 ... 8.069e+03\n", "Attributes:\n", - " runFolder: /gpfs/exfel/exp/SCS/201901/p002212/raw/r0208</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-5749d5d4-4669-43a9-bf34-bd10d1445694' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-5749d5d4-4669-43a9-bf34-bd10d1445694' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>pulse_slot</span>: 2700</li><li><span class='xr-has-index'>sa3_pId</span>: 125</li><li><span class='xr-has-index'>trainId</span>: 3066</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-abec55c2-d5c0-4e22-82ba-37ea68bd1b34' class='xr-section-summary-in' type='checkbox' checked><label for='section-abec55c2-d5c0-4e22-82ba-37ea68bd1b34' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>520069541 520069542 ... 520072606</div><input id='attrs-e9c66ef0-ab66-4116-b9ab-c958ace198d4' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-e9c66ef0-ab66-4116-b9ab-c958ace198d4' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-eef747e7-31e0-4cbc-9417-41afa22ac2ab' class='xr-var-data-in' type='checkbox'><label for='data-eef747e7-31e0-4cbc-9417-41afa22ac2ab' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([520069541, 520069542, 520069543, ..., 520072604, 520072605, 520072606],\n", - " dtype=uint64)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sa3_pId</span></div><div class='xr-var-dims'>(sa3_pId)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1040 1048 1056 ... 2016 2024 2032</div><input id='attrs-375b6fcb-7273-4f21-9288-68533d2a75d5' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-375b6fcb-7273-4f21-9288-68533d2a75d5' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-4dd1c96a-68b6-40d8-8e0f-bf7e75dbbd77' class='xr-var-data-in' type='checkbox'><label for='data-4dd1c96a-68b6-40d8-8e0f-bf7e75dbbd77' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([1040, 1048, 1056, 1064, 1072, 1080, 1088, 1096, 1104, 1112, 1120, 1128,\n", + " runFolder: /gpfs/exfel/exp/SCS/201901/p002212/raw/r0208</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.Dataset</div></div><ul class='xr-sections'><li class='xr-section-item'><input id='section-9fd6588a-6d8d-4ffa-a5e4-0a30f40ae81c' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-9fd6588a-6d8d-4ffa-a5e4-0a30f40ae81c' class='xr-section-summary' title='Expand/collapse section'>Dimensions:</label><div class='xr-section-inline-details'><ul class='xr-dim-list'><li><span>pulse_slot</span>: 2700</li><li><span class='xr-has-index'>sa3_pId</span>: 125</li><li><span class='xr-has-index'>trainId</span>: 3066</li></ul></div><div class='xr-section-details'></div></li><li class='xr-section-item'><input id='section-a1ac8cc9-d3d1-4ed7-bba1-cdb4caedd52d' class='xr-section-summary-in' type='checkbox' checked><label for='section-a1ac8cc9-d3d1-4ed7-bba1-cdb4caedd52d' class='xr-section-summary' >Coordinates: <span>(2)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>520069541 520069542 ... 520072606</div><input id='attrs-475c6f77-b69a-44ef-a4dd-2d922e44e021' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-475c6f77-b69a-44ef-a4dd-2d922e44e021' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-06fc8160-10a7-4209-9546-cfbbef37bd5a' class='xr-var-data-in' type='checkbox'><label for='data-06fc8160-10a7-4209-9546-cfbbef37bd5a' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([520069541, 520069542, 520069543, ..., 520072604, 520072605, 520072606],\n", + " dtype=uint64)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>sa3_pId</span></div><div class='xr-var-dims'>(sa3_pId)</div><div class='xr-var-dtype'>int64</div><div class='xr-var-preview xr-preview'>1040 1048 1056 ... 2016 2024 2032</div><input id='attrs-0894ec57-d93d-4630-8b77-31568e72e9cf' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-0894ec57-d93d-4630-8b77-31568e72e9cf' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-48cd168f-2ab1-4acb-862a-00879f2a260e' class='xr-var-data-in' type='checkbox'><label for='data-48cd168f-2ab1-4acb-862a-00879f2a260e' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([1040, 1048, 1056, 1064, 1072, 1080, 1088, 1096, 1104, 1112, 1120, 1128,\n", " 1136, 1144, 1152, 1160, 1168, 1176, 1184, 1192, 1200, 1208, 1216, 1224,\n", " 1232, 1240, 1248, 1256, 1264, 1272, 1280, 1288, 1296, 1304, 1312, 1320,\n", " 1328, 1336, 1344, 1352, 1360, 1368, 1376, 1384, 1392, 1400, 1408, 1416,\n", @@ -471,15 +495,15 @@ " 1712, 1720, 1728, 1736, 1744, 1752, 1760, 1768, 1776, 1784, 1792, 1800,\n", " 1808, 1816, 1824, 1832, 1840, 1848, 1856, 1864, 1872, 1880, 1888, 1896,\n", " 1904, 1912, 1920, 1928, 1936, 1944, 1952, 1960, 1968, 1976, 1984, 1992,\n", - " 2000, 2008, 2016, 2024, 2032])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-2bf2a4bf-5efc-4328-90f8-6434c99e0d82' class='xr-section-summary-in' type='checkbox' checked><label for='section-2bf2a4bf-5efc-4328-90f8-6434c99e0d82' class='xr-section-summary' >Data variables: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>bunchPatternTable</span></div><div class='xr-var-dims'>(trainId, pulse_slot)</div><div class='xr-var-dtype'>uint32</div><div class='xr-var-preview xr-preview'>2139945 0 2129961 0 ... 0 0 0 0</div><input id='attrs-c6f3163a-6ff8-46d0-896d-84f4a30a1274' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-c6f3163a-6ff8-46d0-896d-84f4a30a1274' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-9f42782b-c07b-491c-aab0-bad6d85b08a5' class='xr-var-data-in' type='checkbox'><label for='data-9f42782b-c07b-491c-aab0-bad6d85b08a5' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[2139945, 0, 2129961, ..., 0, 0, 0],\n", + " 2000, 2008, 2016, 2024, 2032])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-68742532-f169-49c7-982d-3b5ef2962fac' class='xr-section-summary-in' type='checkbox' checked><label for='section-68742532-f169-49c7-982d-3b5ef2962fac' class='xr-section-summary' >Data variables: <span>(4)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span>bunchPatternTable</span></div><div class='xr-var-dims'>(trainId, pulse_slot)</div><div class='xr-var-dtype'>uint32</div><div class='xr-var-preview xr-preview'>2139945 0 2129961 0 ... 0 0 0 0</div><input id='attrs-d9140a9e-19f5-4d93-a8d0-b80fe4ca26e9' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d9140a9e-19f5-4d93-a8d0-b80fe4ca26e9' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-bb6e5207-2903-4718-894f-7f4d597bc8ba' class='xr-var-data-in' type='checkbox'><label for='data-bb6e5207-2903-4718-894f-7f4d597bc8ba' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[2139945, 0, 2129961, ..., 0, 0, 0],\n", " [2141993, 0, 2129961, ..., 0, 0, 0],\n", " [2139945, 0, 2129961, ..., 0, 0, 0],\n", " ...,\n", " [2141993, 0, 2129961, ..., 0, 0, 0],\n", " [2139945, 0, 2129961, ..., 0, 0, 0],\n", " [2141993, 0, 2129961, ..., 0, 0, 0]],\n", - " dtype=uint32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nrj</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>778.6 778.6 778.5 ... 783.4 783.4</div><input id='attrs-160a6c0f-b0f4-436b-a1d7-e391ce9be176' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-160a6c0f-b0f4-436b-a1d7-e391ce9be176' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-d7477817-0648-4b12-b543-4468c4bb0021' class='xr-var-data-in' type='checkbox'><label for='data-d7477817-0648-4b12-b543-4468c4bb0021' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([778.62824057, 778.55124428, 778.52251822, ..., 783.36562112,\n", - " 783.3947057 , 783.37531574])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>MCP3peaks</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-197.7 -34.67 ... -1.213e+03</div><input id='attrs-aa041bc0-149c-49c6-b91a-5b1d2601beeb' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-aa041bc0-149c-49c6-b91a-5b1d2601beeb' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-c711b983-98a1-4331-a8f6-cf6d597093fa' class='xr-var-data-in' type='checkbox'><label for='data-c711b983-98a1-4331-a8f6-cf6d597093fa' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[-1.97666667e+02, -3.46666667e+01, 1.83333333e+01, ...,\n", + " dtype=uint32)</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>nrj</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>778.6 778.6 778.5 ... 783.4 783.4</div><input id='attrs-d6e0b5fc-1319-4d95-99a1-54c9ddd6c5b0' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-d6e0b5fc-1319-4d95-99a1-54c9ddd6c5b0' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-af94d504-7788-4754-a6a5-055c106af92c' class='xr-var-data-in' type='checkbox'><label for='data-af94d504-7788-4754-a6a5-055c106af92c' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([778.62824057, 778.55124428, 778.52251822, ..., 783.36562112,\n", + " 783.3947057 , 783.37531574])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>MCP3peaks</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>-197.7 -34.67 ... -1.213e+03</div><input id='attrs-775ac114-f6f1-4892-a739-0df13a7db2fc' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-775ac114-f6f1-4892-a739-0df13a7db2fc' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-56907357-ebc7-4dbf-bd9d-61154a108cba' class='xr-var-data-in' type='checkbox'><label for='data-56907357-ebc7-4dbf-bd9d-61154a108cba' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[-1.97666667e+02, -3.46666667e+01, 1.83333333e+01, ...,\n", " -4.95533333e+03, -2.58333333e+03, -3.64000000e+03],\n", " [-1.14000000e+02, -4.00000000e+02, -2.75000000e+02, ...,\n", " -1.89733333e+03, -1.63966667e+03, -9.57000000e+02],\n", @@ -491,7 +515,7 @@ " [-6.08666667e+02, -7.73333333e+01, 2.33333333e+00, ...,\n", " -1.58466667e+03, -9.06333333e+02, -1.04700000e+03],\n", " [-4.16666667e+01, -4.10333333e+02, 5.00000000e+01, ...,\n", - " -9.43666667e+02, -2.86800000e+03, -1.21266667e+03]])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>SCS_SA3</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.839e+03 897.9 ... 8.069e+03</div><input id='attrs-a2a05ecd-eb49-4e87-9483-3a5bd014bcf6' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-a2a05ecd-eb49-4e87-9483-3a5bd014bcf6' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-a20bc7cc-3de5-4cfd-ae37-0436989b734f' class='xr-var-data-in' type='checkbox'><label for='data-a20bc7cc-3de5-4cfd-ae37-0436989b734f' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[ 2838.68261719, 897.93481445, 1270.12817383, ...,\n", + " -9.43666667e+02, -2.86800000e+03, -1.21266667e+03]])</pre></div></li><li class='xr-var-item'><div class='xr-var-name'><span>SCS_SA3</span></div><div class='xr-var-dims'>(trainId, sa3_pId)</div><div class='xr-var-dtype'>float64</div><div class='xr-var-preview xr-preview'>2.839e+03 897.9 ... 8.069e+03</div><input id='attrs-790807f1-7273-47dd-a373-807d4a90b140' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-790807f1-7273-47dd-a373-807d4a90b140' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-e973abe3-f710-4b2f-bba9-0df5ecd36ea7' class='xr-var-data-in' type='checkbox'><label for='data-e973abe3-f710-4b2f-bba9-0df5ecd36ea7' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([[ 2838.68261719, 897.93481445, 1270.12817383, ...,\n", " 33158.98046875, 19836.09570312, 27724.03515625],\n", " [ 2088.77197266, 861.36578369, 3565.16918945, ...,\n", " 16303.64941406, 12787.91503906, 6092.00097656],\n", @@ -503,7 +527,7 @@ " [ 3646.75048828, 2033.26245117, 569.56018066, ...,\n", " 9144.62402344, 7623.27978516, 4444.45361328],\n", " [ 708.95373535, 1963.84277344, 912.64025879, ...,\n", - " 5079.55371094, 12632.79003906, 8069.31152344]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-cda1897f-d27d-40dd-a0fb-5ca7d116fb6b' class='xr-section-summary-in' type='checkbox' checked><label for='section-cda1897f-d27d-40dd-a0fb-5ca7d116fb6b' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>runFolder :</span></dt><dd>/gpfs/exfel/exp/SCS/201901/p002212/raw/r0208</dd></dl></div></li></ul></div></div>" + " 5079.55371094, 12632.79003906, 8069.31152344]])</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-2d21710e-2503-447e-806b-3508c0edac69' class='xr-section-summary-in' type='checkbox' checked><label for='section-2d21710e-2503-447e-806b-3508c0edac69' class='xr-section-summary' >Attributes: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'><dt><span>runFolder :</span></dt><dd>/gpfs/exfel/exp/SCS/201901/p002212/raw/r0208</dd></dl></div></li></ul></div></div>" ], "text/plain": [ "<xarray.Dataset>\n", @@ -521,7 +545,7 @@ " runFolder: /gpfs/exfel/exp/SCS/201901/p002212/raw/r0208" ] }, - "execution_count": 3, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -569,7 +593,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -935,14 +959,14 @@ " [1499, 1502, 1508, ..., 1508, 1502, 1500]], dtype=int16)\n", "Coordinates:\n", " * trainId (trainId) uint64 520069541 520069542 ... 520072605 520072606\n", - "Dimensions without coordinates: samplesId</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'SCS_UTC1_ADQ/ADC/1:network.digitizers.channel_1_C.raw.samples'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>trainId</span>: 3066</li><li><span>samplesId</span>: 600000</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-0d8dea0c-7010-4a3f-82b7-4dc59ecb6bb5' class='xr-array-in' type='checkbox' checked><label for='section-0d8dea0c-7010-4a3f-82b7-4dc59ecb6bb5' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>1515 1500 1507 1506 1497 1505 1510 ... 1506 1508 1513 1508 1502 1500</span></div><div class='xr-array-data'><pre>array([[1515, 1500, 1507, ..., 1505, 1498, 1500],\n", + "Dimensions without coordinates: samplesId</pre><div class='xr-wrap' hidden><div class='xr-header'><div class='xr-obj-type'>xarray.DataArray</div><div class='xr-array-name'>'SCS_UTC1_ADQ/ADC/1:network.digitizers.channel_1_C.raw.samples'</div><ul class='xr-dim-list'><li><span class='xr-has-index'>trainId</span>: 3066</li><li><span>samplesId</span>: 600000</li></ul></div><ul class='xr-sections'><li class='xr-section-item'><div class='xr-array-wrap'><input id='section-04c49329-5850-46c0-9b41-0c15f47e6817' class='xr-array-in' type='checkbox' checked><label for='section-04c49329-5850-46c0-9b41-0c15f47e6817' title='Show/hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-array-preview xr-preview'><span>1515 1500 1507 1506 1497 1505 1510 ... 1506 1508 1513 1508 1502 1500</span></div><div class='xr-array-data'><pre>array([[1515, 1500, 1507, ..., 1505, 1498, 1500],\n", " [1500, 1502, 1498, ..., 1504, 1490, 1499],\n", " [1503, 1508, 1507, ..., 1512, 1500, 1496],\n", " ...,\n", " [1502, 1515, 1517, ..., 1503, 1498, 1509],\n", " [1512, 1511, 1513, ..., 1506, 1504, 1506],\n", - " [1499, 1502, 1508, ..., 1508, 1502, 1500]], dtype=int16)</pre></div></div></li><li class='xr-section-item'><input id='section-f974c2c1-cd6d-4d6f-929f-17f8ffe396ca' class='xr-section-summary-in' type='checkbox' checked><label for='section-f974c2c1-cd6d-4d6f-929f-17f8ffe396ca' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>520069541 520069542 ... 520072606</div><input id='attrs-adb662e7-d59a-4dcc-87bf-b4cb24492252' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-adb662e7-d59a-4dcc-87bf-b4cb24492252' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-6a9f5877-8c70-4e0e-90f0-f06830c55b69' class='xr-var-data-in' type='checkbox'><label for='data-6a9f5877-8c70-4e0e-90f0-f06830c55b69' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([520069541, 520069542, 520069543, ..., 520072604, 520072605, 520072606],\n", - " dtype=uint64)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-c90f8620-2a1d-4d41-9738-96bc8a4f4bc7' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-c90f8620-2a1d-4d41-9738-96bc8a4f4bc7' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>" + " [1499, 1502, 1508, ..., 1508, 1502, 1500]], dtype=int16)</pre></div></div></li><li class='xr-section-item'><input id='section-3f04f9f4-e464-4d1c-848c-edcb6b3c2f8a' class='xr-section-summary-in' type='checkbox' checked><label for='section-3f04f9f4-e464-4d1c-848c-edcb6b3c2f8a' class='xr-section-summary' >Coordinates: <span>(1)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><ul class='xr-var-list'><li class='xr-var-item'><div class='xr-var-name'><span class='xr-has-index'>trainId</span></div><div class='xr-var-dims'>(trainId)</div><div class='xr-var-dtype'>uint64</div><div class='xr-var-preview xr-preview'>520069541 520069542 ... 520072606</div><input id='attrs-3247f641-0199-4d4a-ab67-429c74de456e' class='xr-var-attrs-in' type='checkbox' disabled><label for='attrs-3247f641-0199-4d4a-ab67-429c74de456e' title='Show/Hide attributes'><svg class='icon xr-icon-file-text2'><use xlink:href='#icon-file-text2'></use></svg></label><input id='data-cee87eb8-5a66-4ece-8bc9-b18d39370c4d' class='xr-var-data-in' type='checkbox'><label for='data-cee87eb8-5a66-4ece-8bc9-b18d39370c4d' title='Show/Hide data repr'><svg class='icon xr-icon-database'><use xlink:href='#icon-database'></use></svg></label><div class='xr-var-attrs'><dl class='xr-attrs'></dl></div><div class='xr-var-data'><pre>array([520069541, 520069542, 520069543, ..., 520072604, 520072605, 520072606],\n", + " dtype=uint64)</pre></div></li></ul></div></li><li class='xr-section-item'><input id='section-e03d72bc-82e3-43aa-af0a-c4d45c357d79' class='xr-section-summary-in' type='checkbox' disabled ><label for='section-e03d72bc-82e3-43aa-af0a-c4d45c357d79' class='xr-section-summary' title='Expand/collapse section'>Attributes: <span>(0)</span></label><div class='xr-section-inline-details'></div><div class='xr-section-details'><dl class='xr-attrs'></dl></div></li></ul></div></div>" ], "text/plain": [ "<xarray.DataArray 'SCS_UTC1_ADQ/ADC/1:network.digitizers.channel_1_C.raw.samples' (trainId: 3066, samplesId: 600000)>\n", @@ -958,7 +982,7 @@ "Dimensions without coordinates: samplesId" ] }, - "execution_count": 4, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -977,16 +1001,16 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 6, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[<matplotlib.lines.Line2D at 0x2aef559eed68>]" + "[<matplotlib.lines.Line2D at 0x2b3d82127c88>]" ] }, - "execution_count": 5, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" },