Quick Start Guide#
Overview#
The NeXus Data Format is typically used to structure HDF5 files. An HDF5 file is a container for datasets and groups. Groups are folder-like and work like Python dictionaries. Datasets work like NumPy arrays. In addition, groups and datasets have a dictionary of attributes.
NeXus extends this with the following:
Definitions for attributes for datasets, in particular a
units
attribute. In NeXus, datasets are referred to as field.Definitions for attributes and structure of groups. This includes:
In the following we use a file from the POWGEN instrument at SNS. It is bundled with ScippNexus and will be downloaded automatically using pooch if it is not cached already:
[1]:
from scippnexus import data
filename = data.get_path('PG3_4844_event.nxs')
Loading files#
Given such a NeXus file, we can load the entire file using snx.load:
[2]:
import scippnexus as snx
data = snx.load(filename)
data
/home/runner/work/scippnexus/scippnexus/.tox/docs/lib/python3.10/site-packages/scippnexus/base.py:408: UserWarning: Failed to load /entry/bank184_events as NXevent_data: Invalid index in NXevent_data at /entry/bank184_events/event_index:
Bin indices out of range Falling back to loading HDF5 group children as scipp.DataGroup.
self._warn_fallback(e)
/home/runner/work/scippnexus/scippnexus/.tox/docs/lib/python3.10/site-packages/scippnexus/base.py:408: UserWarning: Failed to load /entry/bank82_events as NXevent_data: Invalid index in NXevent_data at /entry/bank82_events/event_index:
Bin begin index must be less or equal to its end index. Falling back to loading HDF5 group children as scipp.DataGroup.
self._warn_fallback(e)
/home/runner/work/scippnexus/scippnexus/.tox/docs/lib/python3.10/site-packages/scippnexus/base.py:408: UserWarning: Failed to load /entry/bank84_events as NXevent_data: Invalid index in NXevent_data at /entry/bank84_events/event_index:
Bin begin index must be less or equal to its end index. Falling back to loading HDF5 group children as scipp.DataGroup.
self._warn_fallback(e)
/home/runner/work/scippnexus/scippnexus/.tox/docs/lib/python3.10/site-packages/scippnexus/base.py:408: UserWarning: Failed to load /entry/instrument/bank184 as NXevent_data: Invalid index in NXevent_data at /entry/instrument/bank184/event_index:
Bin indices out of range Falling back to loading HDF5 group children as scipp.DataGroup.
self._warn_fallback(e)
/home/runner/work/scippnexus/scippnexus/.tox/docs/lib/python3.10/site-packages/scippnexus/base.py:408: UserWarning: Failed to load /entry/instrument/bank82 as NXevent_data: Invalid index in NXevent_data at /entry/instrument/bank82/event_index:
Bin begin index must be less or equal to its end index. Falling back to loading HDF5 group children as scipp.DataGroup.
self._warn_fallback(e)
/home/runner/work/scippnexus/scippnexus/.tox/docs/lib/python3.10/site-packages/scippnexus/base.py:408: UserWarning: Failed to load /entry/instrument/bank84 as NXevent_data: Invalid index in NXevent_data at /entry/instrument/bank84/event_index:
Bin begin index must be less or equal to its end index. Falling back to loading HDF5 group children as scipp.DataGroup.
self._warn_fallback(e)
[2]:
- scippDataGroup(time: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7,
 event_time_zero: 330473,
 event: None,
 dim_0: None,
 time_of_flight: 200001)- scippDataGroup(time: None)
- ChopperStatus1scippDataArray(time: 1)float324.0
- ChopperStatus2scippDataArray(time: 1)float324.0
- ChopperStatus3scippDataArray(time: 1)float324.0
- CurrentSPscippDataArray(time: 1)float32300.0
- EnergyRequestscippDataArray(time: 1)float32meV287.9554
- LKSRampRatescippDataArray(time: 1)float320.0
- LambdaRequestscippDataArray(time: 1)float32Å0.533
- Phase1scippDataArray(time: 1793)float32µs8166.72, 8165.158, ..., 8163.6177, 8163.8525
- Phase2scippDataArray(time: 1792)float32µs8335.626, 8334.088, ..., 8332.628, 8332.859
- Phase3scippDataArray(time: 1776)float32µs14001.451, 14001.385, ..., 14001.898, 14001.978
- PhaseRequest1scippDataArray(time: 1)float32µs8164.0747
- PhaseRequest2scippDataArray(time: 1)float32µs8332.893
- PhaseRequest3scippDataArray(time: 1)float32µs14001.829
- scippDataGroup()
- average_valuescippVariable()float32mm0.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm0.0
- maximum_valuescippVariable()float32mm0.0
- minimum_valuescippVariable()float32mm0.0
- requested_valuescippVariable()float32mm0.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm0.0
- scippDataGroup()
- average_valuefloat32()0.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()0.0
- maximum_valuefloat32()0.0
- minimum_valuefloat32()0.0
- requested_valuescippVariable()float32N0.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuefloat32()0.0
- scippDataGroup()
- average_valuescippVariable()float32mm10.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm10.0
- maximum_valuescippVariable()float32mm10.0
- minimum_valuescippVariable()float32mm10.0
- requested_valuescippVariable()float32mm10.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm10.0
- scippDataGroup()
- average_valuescippVariable()float32mm5.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm5.0
- maximum_valuescippVariable()float32mm5.0
- minimum_valuescippVariable()float32mm5.0
- requested_valuescippVariable()float32mm5.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm5.0
- scippDataGroup()
- average_valuefloat32()0.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()0.0
- maximum_valuefloat32()0.0
- minimum_valuefloat32()0.0
- requested_valuescippVariable()float32N0.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuefloat32()0.0
- scippDataGroup()
- average_valuescippVariable()float32mm30.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm30.0
- maximum_valuescippVariable()float32mm30.0
- minimum_valuescippVariable()float32mm30.0
- requested_valuescippVariable()float32mm30.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.816000000
- valuescippVariable()float32mm30.0
- SampleTempscippDataArray(time: 466)float32299.352, 299.446, ..., 300.001, 300.0
- Speed1scippDataArray(time: 1)float32Hz60.0
- Speed2scippDataArray(time: 1)float32Hz60.0
- Speed3scippDataArray(time: 1)float32Hz60.0
- SpeedRequest1scippDataArray(time: 1)float32Hz60.0
- SpeedRequest2scippDataArray(time: 1)float32Hz60.0
- SpeedRequest3scippDataArray(time: 1)float32Hz60.0
- TolRequestscippDataArray(time: 1)float3220.0
- scippDataGroup()
- veto_pulse_timefloat64()0.0
- scippDataGroup()
- average_valuefloat32()0.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()0.0
- maximum_valuefloat32()0.0
- minimum_valuefloat32()0.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuefloat32()0.0
- currentsamplescippDataArray(time: 1)float324.0
- fernsstatusscippDataArray(time: 1)float323.0
- frequencyscippDataArray(time: 330473)float64Hz0.0, 60.024, ..., 60.002, 59.999
- scippDataGroup()
- average_valuescippVariable()float32mm-55.463
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm-55.463
- maximum_valuescippVariable()float32mm-55.463
- minimum_valuescippVariable()float32mm-55.463
- requested_valuescippVariable()float32mm-55.463
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm-55.463
- proton_chargescippDataArray(time: 330473)float64pC1.484e+07, 1.484e+07, ..., 1.487e+07, 1.484e+07
- scippDataGroup()
- average_valuescippVariable()float32mm20.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm20.0
- maximum_valuescippVariable()float32mm20.0
- minimum_valuescippVariable()float32mm20.0
- requested_valuescippVariable()float32mm20.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm20.0
- scippDataGroup()
- average_valuescippVariable()float32mm5.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm5.0
- maximum_valuescippVariable()float32mm5.0
- minimum_valuescippVariable()float32mm5.0
- requested_valuescippVariable()float32mm5.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm5.0
- scippDataGroup()
- average_valuescippVariable()float32mm-5.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm-5.0
- maximum_valuescippVariable()float32mm-5.0
- minimum_valuescippVariable()float32mm-5.0
- requested_valuescippVariable()float32mm-5.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm-5.0
- scippDataGroup()
- average_valuescippVariable()float32mm-10.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm-10.0
- maximum_valuescippVariable()float32mm-10.0
- minimum_valuescippVariable()float32mm-10.0
- requested_valuescippVariable()float32mm-10.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm-10.0
- samplerequestscippDataArray(time: 1)float324.0
- scippDataGroup()
- average_valuefloat32()2.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()2.0
- maximum_valuefloat32()2.0
- minimum_valuefloat32()2.0
- requested_valuescippVariable()float32N2.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuefloat32()2.0
- scippDataGroup()
- SNSbanking_file_namestr()PG3_bank_2011_02_25.xml
- SNSmapping_file_namestr()PG3_TS_2009_04_17.dat
- authorstr()HistoTool
- command1str()event2nxl --mapping PG3_TS_2009_04_17.dat --banking PG3_bank_2011_02_25.xml --in...
- command2str()monitorappend --time_offset 0.0 --max_time_bin 200001.0 -l 1.0 --input PG3_4844_...
- datestr()2011-08-12
- descriptionstr()List of commands run within the HistoTool package
- versionstr()3.4.5
- bank102scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank102_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=0, len=3, ..., len=3, len=2]
- bank103scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank103_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=1]
- bank104scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank104_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=1, len=1, ..., len=2, len=1]
- bank105scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank105_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=1, len=5, ..., len=6, len=4]
- bank106scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank106_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=3, len=2, ..., len=2, len=1]
- bank123scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank123_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=3, len=4, ..., len=0, len=4]
- bank124scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank124_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=1, len=2, ..., len=7, len=1]
- bank143scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank143_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=2, len=2, ..., len=2, len=3]
- bank144scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank144_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=2, len=3, ..., len=3, len=5]
- bank164scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank164_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=3, len=0, ..., len=1, len=3]
- bank184scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - scippDataGroup(event_time_zero: 330473,
 event: 513380)- event_indexscippVariable(event_time_zero: 330473)int640, 0, ..., 9223372036854775807, 9223372036854775807
- event_time_offsetscippVariable(event: 513380)float32µs5906.3, 6189.3, ..., 10358.8, 11654.9
- event_time_zeroscippVariable(event_time_zero: 330473)datetime64ns2011-08-12T15:50:17.000000000, 2011-08-12T15:50:17.016659999, ..., 2011-08-12T17:22:05.085449218, 2011-08-12T17:22:05.102050781
- event_idscippVariable(event: 513380)int32230254, 231027, ..., 230834, 230571
- bank22scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank22_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=4, len=7, ..., len=3, len=9]
- bank23scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank23_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=3, len=4, ..., len=5, len=6]
- bank24scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank24_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=1, len=5, ..., len=2, len=5]
- bank42scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank42_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=5, len=0, ..., len=3, len=4]
- bank43scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank43_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=2, len=7, ..., len=4, len=3]
- bank44scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank44_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=3, len=0, ..., len=2, len=3]
- bank62scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank62_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=3, len=3, ..., len=1, len=4]
- bank63scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank63_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=0, len=5, ..., len=2, len=2]
- bank64scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank64_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=2, len=8, ..., len=1, len=7]
- bank82scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - scippDataGroup(event_time_zero: 330473,
 event: 663792)- event_indexscippVariable(event_time_zero: 330473)int640, 0, ..., 663790, 9223372036854775807
- event_time_offsetscippVariable(event: 663792)float32µs8883.5, 9103.0, ..., 7131.6, 7331.1
- event_time_zeroscippVariable(event_time_zero: 330473)datetime64ns2011-08-12T15:50:17.000000000, 2011-08-12T15:50:17.016659999, ..., 2011-08-12T17:22:05.085449218, 2011-08-12T17:22:05.102050781
- event_idscippVariable(event: 663792)int32102537, 102886, ..., 102960, 102948
- bank83scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - bank83_eventsscippDataArray(event_time_zero: 330473)DataArrayViewbinned data [len=2, len=1, ..., len=3, len=1]
- bank84scippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - scippDataGroup(event_time_zero: 330473,
 event: 624439)- event_indexscippVariable(event_time_zero: 330473)int640, 0, ..., 624438, 9223372036854775807
- event_time_offsetscippVariable(event: 624439)float32µs8164.1, 4931.2, ..., 6524.7, 14206.1
- event_time_zeroscippVariable(event_time_zero: 330473)datetime64ns2011-08-12T15:50:17.000000000, 2011-08-12T15:50:17.016659999, ..., 2011-08-12T17:22:05.085449218, 2011-08-12T17:22:05.102050781
- event_idscippVariable(event: 624439)int32105088, 105821, ..., 105403, 105275
- collection_identifierstr()0
- collection_titlestr()No title entered
- definitionstr()EVENTRAW
- durationscippVariable()float32s5508.0
- end_timestr()2011-08-12T13:22:05-04:00
- entry_identifierstr()4844
- experiment_identifierstr()IPTS-2767
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7,
 event_time_zero: 330473,
 event: None)- scippDataGroup(dim_0: None)
- azimuthal_anglescippVariable()float32rad0.0
- bend_angle_xscippVariable()stringdeg0
- bend_angle_yscippVariable()stringdeg0
- coating_materialstr()Ni/Ti
- distancescippVariable()float32m-54.5
- external_materialstr()stainless steel
- scippDataGroup()
- average_valuescippVariable()float32mm-55.463
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm-55.463
- maximum_valuescippVariable()float32mm-55.463
- minimum_valuescippVariable()float32mm-55.463
- requested_valuescippVariable()float32mm-55.463
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm-55.463
- interior_atmospherestr()vacuum
- m_valuestr()2.0
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float321.0, 0.0, ..., 1.0, 0.0
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.014, 0.0515, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m0.0, 0.0, -54.5
- polar_anglescippVariable()float32rad3.1415927
- substrate_materialstr()borofloat glass
- substrate_thickness_maxscippVariable()stringmm11
- substrate_thickness_minscippVariable()stringmm9
- scippDataGroup()
- average_valuefloat32()2.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()2.0
- maximum_valuefloat32()2.0
- minimum_valuefloat32()2.0
- requested_valuescippVariable()float32N2.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuefloat32()2.0
- x_pixel_offsetscippVariable()float32m0.0
- y_pixel_offsetscippVariable()float32m0.0
- scippDataGroup(dim_0: None)
- azimuthal_anglescippVariable()float32rad0.0
- bend_angle_xscippVariable()stringdeg0
- bend_angle_yscippVariable()stringdeg0
- coating_materialstr()Ni/Ti
- distancescippVariable()float32m-54.5
- external_materialstr()stainless steel
- scippDataGroup()
- average_valuescippVariable()float32mm-55.463
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm-55.463
- maximum_valuescippVariable()float32mm-55.463
- minimum_valuescippVariable()float32mm-55.463
- requested_valuescippVariable()float32mm-55.463
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm-55.463
- interior_atmospherestr()vacuum
- m_valuestr()0.0
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float321.0, 0.0, ..., 1.0, 0.0
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.014, 0.0515, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m0.0, 0.0, -54.5
- polar_anglescippVariable()float32rad3.1415927
- substrate_materialstr()borofloat glass
- substrate_thickness_maxscippVariable()stringmm11
- substrate_thickness_minscippVariable()stringmm9
- scippDataGroup()
- average_valuefloat32()2.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()2.0
- maximum_valuefloat32()2.0
- minimum_valuefloat32()2.0
- requested_valuescippVariable()float32N2.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuefloat32()2.0
- x_pixel_offsetscippVariable()float32m0.0
- y_pixel_offsetscippVariable()float32m0.0
- scippDataGroup()
- frequencyscippVariable()float32Hz60.0
- namestr()Spallation Neutron Source
- probestr()neutron
- typestr()Spallation Neutron Source
- SNSdetector_calibration_idstr()139
- SNSgeometry_file_namestr()PG3_geom_2011_02_25.xml
- SNSnxtranslatestr()0.3.0
- SNStranslation_servicestr()3.2.3
- scippDataGroup(dim_0: None)
- scippDataGroup()
- average_valuescippVariable()float32mm0.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm0.0
- maximum_valuescippVariable()float32mm0.0
- minimum_valuescippVariable()float32mm0.0
- requested_valuescippVariable()float32mm0.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm0.0
- scippDataGroup()
- average_valuefloat32()0.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()0.0
- maximum_valuefloat32()0.0
- minimum_valuefloat32()0.0
- requested_valuescippVariable()float32N0.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuefloat32()0.0
- scippDataGroup()
- average_valuescippVariable()float32mm10.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm10.0
- maximum_valuescippVariable()float32mm10.0
- minimum_valuescippVariable()float32mm10.0
- requested_valuescippVariable()float32mm10.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm10.0
- scippDataGroup()
- average_valuescippVariable()float32mm5.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm5.0
- maximum_valuescippVariable()float32mm5.0
- minimum_valuescippVariable()float32mm5.0
- requested_valuescippVariable()float32mm5.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm5.0
- scippDataGroup()
- average_valuefloat32()0.0
- durationscippVariable()float32s0.0
- effective_valuefloat32()0.0
- maximum_valuefloat32()0.0
- minimum_valuefloat32()0.0
- requested_valuescippVariable()float32N0.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuefloat32()0.0
- scippDataGroup()
- average_valuescippVariable()float32mm30.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm30.0
- maximum_valuescippVariable()float32mm30.0
- minimum_valuescippVariable()float32mm30.0
- requested_valuescippVariable()float32mm30.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.816000000
- valuescippVariable()float32mm30.0
- azimuthal_anglescippVariable()float32rad0.0
- distancescippVariable()float32m-1.0
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float321.0, 0.0, ..., 1.0, 0.0
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.01, 0.03, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m0.0, 0.0, -1.0
- polar_anglescippVariable()float32rad3.1415927
- scippDataGroup()
- average_valuescippVariable()float32mm20.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm20.0
- maximum_valuescippVariable()float32mm20.0
- minimum_valuescippVariable()float32mm20.0
- requested_valuescippVariable()float32mm20.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm20.0
- scippDataGroup()
- average_valuescippVariable()float32mm5.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm5.0
- maximum_valuescippVariable()float32mm5.0
- minimum_valuescippVariable()float32mm5.0
- requested_valuescippVariable()float32mm5.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.800000000
- valuescippVariable()float32mm5.0
- scippDataGroup()
- average_valuescippVariable()float32mm-5.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm-5.0
- maximum_valuescippVariable()float32mm-5.0
- minimum_valuescippVariable()float32mm-5.0
- requested_valuescippVariable()float32mm-5.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm-5.0
- scippDataGroup()
- average_valuescippVariable()float32mm-10.0
- durationscippVariable()float32s0.0
- effective_valuescippVariable()float32mm-10.0
- maximum_valuescippVariable()float32mm-10.0
- minimum_valuescippVariable()float32mm-10.0
- requested_valuescippVariable()float32mm-10.0
- timescippVariable()datetime64ns2011-08-12T15:50:16.784000000
- valuescippVariable()float32mm-10.0
- x_pixel_offsetscippVariable()float32m0.0
- y_pixel_offsetscippVariable()float32m0.0
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()F2
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.07520324, 0.0008634576, ..., 0.95087516, -0.024099652
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.2050142, -0.8542655, 0.67503774
- total_countsint32()456601
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()F3
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.07206946, 0.0019221402, ..., 0.9885856, -0.012752413
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.3054664, -0.42925474, 0.66754323
- total_countsint32()484446
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()F4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.07762421, 0.0025745311, ..., 0.9999957, -0.0026736327
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.3375163, 0.007599, 0.6648235
- total_countsint32()465038
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()F5
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.074737966, 0.0007595541, ..., 0.9876911, 0.010942041
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.3034072, 0.44297725, 0.6675825
- total_countsint32()597687
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()F6
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.07553149, -0.0007277964, ..., 0.95065147, 0.02412432
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.2015195, 0.86776173, 0.67536724
- total_countsint32()619400
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()G3
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float32-0.12487066, -0.005911149, ..., 0.9997881, 0.008326013
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.1319537, -0.41684926, 1.4719385
- total_countsint32()835910
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()G4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float32-0.11986005, -0.005193665, ..., 0.99983066, 0.0030392138
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.1185687, -0.0002555, 1.470097
- total_countsint32()719846
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()H3
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float32-0.34058982, -0.007132651, ..., 0.99986297, 0.0016174228
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.9351792, -0.41630125, 2.2435923
- total_countsint32()605641
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()H4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float32-0.3371856, -0.005633195, ..., 0.9998946, 0.0007914557
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.9297032, -0.00782325, 2.243953
- total_countsint32()719502
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()I4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float32-0.52433485, -0.0075674476, ..., 0.9999132, 0.0120967375
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.5749183, -0.0123765, 2.939976
- total_countsint32()619712
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7,
 event_time_zero: 330473,
 event: 513380)- local_namestr()J4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float32-0.68827075, 0.0023438812, ..., 0.99987054, -0.012655793
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.078632, -0.0137955, 3.5672722
- total_countsint32()513380
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - scippDataGroup(event_time_zero: 330473,
 event: 513380)- event_indexscippVariable(event_time_zero: 330473)int640, 0, ..., 9223372036854775807, 9223372036854775807
- event_time_offsetscippVariable(event: 513380)float32µs5906.3, 6189.3, ..., 10358.8, 11654.9
- event_time_zeroscippVariable(event_time_zero: 330473)datetime64ns2011-08-12T15:50:17.000000000, 2011-08-12T15:50:17.016659999, ..., 2011-08-12T17:22:05.085449218, 2011-08-12T17:22:05.102050781
- event_idscippVariable(event: 513380)int32230254, 231027, ..., 230834, 230571
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()B2
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.91311646, -0.0018039594, ..., 0.9504342, -0.2832085
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m1.544676, -0.8569665, -1.9281462
- total_countsint32()1383144
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()B3
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.91298234, -0.0015865297, ..., 0.98713416, -0.14533475
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m1.586625, -0.43086874, -2.0230145
- total_countsint32()1003546
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()B4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.912612, -4.732385e-05, ..., 0.99999857, 0.0015598646
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m1.599787, 0.004278, -2.0524123
- total_countsint32()1123324
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()C2
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.7532727, -0.0017466473, ..., 0.94824696, -0.2380973
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.1918738, -0.84933674, -1.435612
- total_countsint32()991345
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()C3
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.7523526, -0.0001120215, ..., 0.9868775, -0.12141007
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.2594852, -0.4253265, -1.5125445
- total_countsint32()1050733
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()C4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.7523935, -0.0016688275, ..., 0.99998444, -0.0029054708
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.283286, 0.011741, -1.5391445
- total_countsint32()933319
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()D2
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.5424301, 0.0032140214, ..., 0.9512337, -0.16988519
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.712514, -0.8528865, -0.8270292
- total_countsint32()1145925
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()D3
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.54071504, -0.0031628278, ..., 0.9870752, -0.084011525
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.7984772, -0.4272105, -0.8828877
- total_countsint32()602001
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()D4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.54180133, -0.0009649804, ..., 0.9999995, 0.0009414952
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m2.828899, 0.00748275, -0.9024227
- total_countsint32()1123669
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7,
 event_time_zero: 330473,
 event: 663792)- local_namestr()E2
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.30577186, 0.0016155625, ..., 0.9530574, -0.09404948
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.0537205, -0.8558485, -0.10468375
- total_countsint32()663792
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - scippDataGroup(event_time_zero: 330473,
 event: 663792)- event_indexscippVariable(event_time_zero: 330473)int640, 0, ..., 663790, 9223372036854775807
- event_time_offsetscippVariable(event: 663792)float32µs8883.5, 9103.0, ..., 7131.6, 7331.1
- event_time_zeroscippVariable(event_time_zero: 330473)datetime64ns2011-08-12T15:50:17.000000000, 2011-08-12T15:50:17.016659999, ..., 2011-08-12T17:22:05.085449218, 2011-08-12T17:22:05.102050781
- event_idscippVariable(event: 663792)int32102537, 102886, ..., 102960, 102948
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7)- local_namestr()E3
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.30549735, -0.002963881, ..., 0.9888769, -0.04263911
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.1493595, -0.42939225, -0.13501576
- total_countsint32()644580
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - eventsscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)DataArrayViewbinned data [len=0, len=0, ..., len=0, len=0]
- scippDataGroup(dim_0: None,
 x_pixel_offset: 154,
 y_pixel_offset: 7,
 event_time_zero: 330473,
 event: 624439)- local_namestr()E4
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float320.30450308, -0.0036800236, ..., 0.99995583, 0.006138266
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.77, 0.3801, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m3.1805677, 0.00451375, -0.146255
- total_countsint32()624439
- data_x_yscippDataArray(x_pixel_offset: 154,
 y_pixel_offset: 7)int320, 0, ..., 0, 0 - scippDataGroup(event_time_zero: 330473,
 event: 624439)- event_indexscippVariable(event_time_zero: 330473)int640, 0, ..., 624438, 9223372036854775807
- event_time_offsetscippVariable(event: 624439)float32µs8164.1, 4931.2, ..., 6524.7, 14206.1
- event_time_zeroscippVariable(event_time_zero: 330473)datetime64ns2011-08-12T15:50:17.000000000, 2011-08-12T15:50:17.016659999, ..., 2011-08-12T17:22:05.085449218, 2011-08-12T17:22:05.102050781
- event_idscippVariable(event: 624439)int32105088, 105821, ..., 105403, 105275
- beamlinestr()11A
- scippDataGroup()
- distancescippVariable()float64m6.647418
- scippDataGroup()
- distancescippVariable()float64m7.899603
- scippDataGroup()
- distancescippVariable()float64m49.975666
- scippDataGroup()
- distancescippVariable()float32m-60.0
- poison_depthscippVariable()float32cm2.5
- poison_materialstr()Gd
- temperaturescippVariable()float32K20.0
- typestr()H2, supercritical
- namestr()POWGEN
- scippDataGroup(dim_0: None)
- azimuthal_anglescippVariable()float32rad0.0
- bend_angle_xscippVariable()stringdeg0
- bend_angle_yscippVariable()stringdeg0
- coating_materialstr()Ni/Ti
- distancescippVariable()float32m-25.5
- external_materialstr()stainless steel
- interior_atmospherestr()vacuum
- m_valuestr()2.0
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float321.0, 0.0, ..., 1.0, 0.0
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.014, 0.086, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m0.0, 0.0, -25.5
- polar_anglescippVariable()float32rad3.1415927
- substrate_materialstr()borofloat glass
- substrate_thickness_maxscippVariable()stringmm11
- substrate_thickness_minscippVariable()stringmm9
- x_pixel_offsetscippVariable()float32m0.0
- y_pixel_offsetscippVariable()float32m0.0
- scippDataGroup(dim_0: None)
- azimuthal_anglescippVariable()float32rad0.0
- bend_angle_xscippVariable()stringdeg0
- bend_angle_yscippVariable()stringdeg0
- coating_materialstr()Ni/Ti
- distancescippVariable()float32m-47.5
- external_materialstr()stainless steel
- interior_atmospherestr()vacuum
- m_valuestr()2.0
- scippDataGroup(dim_0: None)
- scippDataGroup(dim_0: 6)
- valuescippVariable(dim_0: 6)float321.0, 0.0, ..., 1.0, 0.0
- scippDataGroup(dim_0: 3)
- descriptionstr()x,y,z
- shapestr()nxbox
- sizescippVariable(dim_0: 3)float32m0.014, 0.0725, nan
- scippDataGroup(dim_0: 3)
- distancescippVariable(dim_0: 3)float32m0.0, 0.0, -47.5
- polar_anglescippVariable()float32rad3.1415927
- substrate_materialstr()borofloat glass
- substrate_thickness_maxscippVariable()stringmm11
- substrate_thickness_minscippVariable()stringmm9
- x_pixel_offsetscippVariable()float32m0.0
- y_pixel_offsetscippVariable()float32m0.0
- scippDataGroup(time_of_flight: 200001)
- modestr()monitor
- datascippDataArray(time_of_flight: 200001)int3225, 10, ..., 0, 0
- notesstr()NONE
- proton_chargescippVariable()float64pC4219034050530.0
- raw_framesint32()330473
- run_numberstr()4844
- scippDataGroup()
- changer_positionstr()NONE
- holderstr()NONE
- identifierstr()NONE
- namestr()LaB6
- naturestr()NONE
- start_timestr()2011-08-12T11:50:17-04:00
- titlestr()diamond cw0.533 4.22e12 60Hz [10x30]
- total_countsint32()17926980
- total_uncounted_countsint32()0
- scippDataGroup()
- facility_user_idstr()HPJ
- namestr()HPJ
- rolestr()E
- scippDataGroup()
- facility_user_idstr()3AH
- namestr()3AH
- rolestr()P
- scippDataGroup()
- facility_user_idstr()OG6
- namestr()OG6
- rolestr()E
- scippDataGroup()
- facility_user_idstr()2IH
- namestr()2IH
- rolestr()E
snx.load supports selecting part of a file to load:
[3]:
bank102 = snx.load(filename, root='entry/bank102')
bank102
[3]:
- x_pixel_offset: 154
- y_pixel_offset: 7
- x_pixel_offset(x_pixel_offset)float32m-0.3825, -0.3775, ..., 0.3775, 0.3825
Values:
array([-0.3825, -0.3775, -0.3725, -0.3675, -0.3625, -0.3575, -0.3525, -0.3475, -0.3425, -0.3375, -0.3325, -0.3275, -0.3225, -0.3175, -0.3125, -0.3075, -0.3025, -0.2975, -0.2925, -0.2875, -0.2825, -0.2775, -0.2725, -0.2675, -0.2625, -0.2575, -0.2525, -0.2475, -0.2425, -0.2375, -0.2325, -0.2275, -0.2225, -0.2175, -0.2125, -0.2075, -0.2025, -0.1975, -0.1925, -0.1875, -0.1825, -0.1775, -0.1725, -0.1675, -0.1625, -0.1575, -0.1525, -0.1475, -0.1425, -0.1375, -0.1325, -0.1275, -0.1225, -0.1175, -0.1125, -0.1075, -0.1025, -0.0975, -0.0925, -0.0875, -0.0825, -0.0775, -0.0725, -0.0675, -0.0625, -0.0575, -0.0525, -0.0475, -0.0425, -0.0375, -0.0325, -0.0275, -0.0225, -0.0175, -0.0125, -0.0075, -0.0025, 0.0025, 0.0075, 0.0125, 0.0175, 0.0225, 0.0275, 0.0325, 0.0375, 0.0425, 0.0475, 0.0525, 0.0575, 0.0625, 0.0675, 0.0725, 0.0775, 0.0825, 0.0875, 0.0925, 0.0975, 0.1025, 0.1075, 0.1125, 0.1175, 0.1225, 0.1275, 0.1325, 0.1375, 0.1425, 0.1475, 0.1525, 0.1575, 0.1625, 0.1675, 0.1725, 0.1775, 0.1825, 0.1875, 0.1925, 0.1975, 0.2025, 0.2075, 0.2125, 0.2175, 0.2225, 0.2275, 0.2325, 0.2375, 0.2425, 0.2475, 0.2525, 0.2575, 0.2625, 0.2675, 0.2725, 0.2775, 0.2825, 0.2875, 0.2925, 0.2975, 0.3025, 0.3075, 0.3125, 0.3175, 0.3225, 0.3275, 0.3325, 0.3375, 0.3425, 0.3475, 0.3525, 0.3575, 0.3625, 0.3675, 0.3725, 0.3775, 0.3825], dtype=float32) - y_pixel_offset(y_pixel_offset)float32m-0.1629, -0.1086, ..., 0.1086, 0.1629
Values:
array([-0.1629, -0.1086, -0.0543, 0. , 0.0543, 0.1086, 0.1629], dtype=float32)
- (x_pixel_offset, y_pixel_offset)int320, 0, ..., 0, 0
Values:
array([[ 0, 0, 0, ..., 0, 0, 0], [340, 259, 191, ..., 118, 110, 94], [464, 527, 401, ..., 193, 160, 151], ..., [ 0, 0, 0, ..., 0, 0, 0], [ 0, 0, 0, ..., 0, 0, 0], [ 0, 0, 0, ..., 0, 0, 0]], dtype=int32)
This is a simpler and less powerful version of the interface described below.
Opening files#
It is often useful to only load part of a file or inspecting the file structure without loading any data. ScippNexus provides an interface that is similar to h5py for this purpose.
We first need to open the file using snx.File. Wherever possible this should be done using a context manager as follows:
[4]:
import scippnexus as snx
with snx.File(filename) as f:
print(list(f.keys()))
['entry']
Unfortunately working with a context manager in a Jupyter Notebook is cumbersome, so for the following we open the file directly instead:
[5]:
f = snx.File(filename)
Loading groups and datasets#
This proton_charge
group we “navigated” to above is an NXlog, which typically contains 1-D data with a time axis. Since ScippNexus knows about NXlog, it knows how to identify its shape:
[9]:
proton_charge.shape
[9]:
(330473,)
Note:
This is in contrast to plain HDF5 where groups do not have a shape. Note that not all NeXus classes have a defined shape.
We read the NXlog from the file using the slicing notation. To read the entire group, use ellipses (or an empty tuple):
[10]:
proton_charge[...]
[10]:
- time: 330473
- average_value()float64pC12766652.799260454σ = 5061670.635363746
Values:
array(12766652.79926045)
Variances (σ²):
array(2.56205096e+13) - description()stringdescription
Values:
'description' - duration()float32s5508.0
Values:
array(5508., dtype=float32) - maximum_value()float64pC15146700.0
Values:
array(15146700.) - minimum_value()float64pC0.0
Values:
array(0.) - time(time)datetime64ns2011-08-12T15:50:17.000000000, 2011-08-12T15:50:17.016659999, ..., 2011-08-12T17:22:05.085449218, 2011-08-12T17:22:05.102050781
Values:
array(['2011-08-12T15:50:17.000000000', '2011-08-12T15:50:17.016659999', '2011-08-12T15:50:17.033321000', ..., '2011-08-12T17:22:05.068359375', '2011-08-12T17:22:05.085449218', '2011-08-12T17:22:05.102050781'], dtype='datetime64[ns]')
- (time)float64pC1.484e+07, 1.484e+07, ..., 1.487e+07, 1.484e+07
Values:
array([14843360., 14843360., 14787820., ..., 14809180., 14873260., 14839090.])
Above, ScippNexus automatically dealt with:
Loading the data field (signal value dataset and its
'units'
attribute).Identifying the dimension labels (here:
'time'
).Other fields in the group were loaded as coordinates, including:
Units of the fields.
Uncertainties of the fields (here for
'average_value'
).
This structure is compatible with a scipp.DataArray
and is returned as such.
We may also load an individual field instead of an entire group. A field corresponds to a scipp.Variable
, i.e., similar to how h5py represents datasets as NumPy arrays but with an added unit and dimension labels (if applicable). For example, we may load only the 'value'
dataset:
[11]:
proton_charge['value'][...]
[11]:
- (time: 330473)float64pC1.484e+07, 1.484e+07, ..., 1.487e+07, 1.484e+07
Values:
array([14843360., 14843360., 14787820., ..., 14809180., 14873260., 14839090.])
Attributes of datasets or groups are accessed just like in h5py:
[12]:
proton_charge['value'].attrs['units']
[12]:
'picoCoulombs'
A subset of the group (and its datasets) can be loaded by selecting only a slice. We can also plot this directly using the plot
method of scipp.DataArray
:
[13]:
proton_charge['time', 193000:197000].plot()
[13]:
As another example, consider the following NXdata group:
[14]:
bank = f['entry/bank103']
print(bank.shape, bank.dims)
(154, 7) ('x_pixel_offset', 'y_pixel_offset')
This can be loaded and plotted as above. In this case the resulting data array is 2-D:
[15]:
da = bank[...]
da
[15]:
- x_pixel_offset: 154
- y_pixel_offset: 7
- x_pixel_offset(x_pixel_offset)float32m-0.3825, -0.3775, ..., 0.3775, 0.3825
Values:
array([-0.3825, -0.3775, -0.3725, -0.3675, -0.3625, -0.3575, -0.3525, -0.3475, -0.3425, -0.3375, -0.3325, -0.3275, -0.3225, -0.3175, -0.3125, -0.3075, -0.3025, -0.2975, -0.2925, -0.2875, -0.2825, -0.2775, -0.2725, -0.2675, -0.2625, -0.2575, -0.2525, -0.2475, -0.2425, -0.2375, -0.2325, -0.2275, -0.2225, -0.2175, -0.2125, -0.2075, -0.2025, -0.1975, -0.1925, -0.1875, -0.1825, -0.1775, -0.1725, -0.1675, -0.1625, -0.1575, -0.1525, -0.1475, -0.1425, -0.1375, -0.1325, -0.1275, -0.1225, -0.1175, -0.1125, -0.1075, -0.1025, -0.0975, -0.0925, -0.0875, -0.0825, -0.0775, -0.0725, -0.0675, -0.0625, -0.0575, -0.0525, -0.0475, -0.0425, -0.0375, -0.0325, -0.0275, -0.0225, -0.0175, -0.0125, -0.0075, -0.0025, 0.0025, 0.0075, 0.0125, 0.0175, 0.0225, 0.0275, 0.0325, 0.0375, 0.0425, 0.0475, 0.0525, 0.0575, 0.0625, 0.0675, 0.0725, 0.0775, 0.0825, 0.0875, 0.0925, 0.0975, 0.1025, 0.1075, 0.1125, 0.1175, 0.1225, 0.1275, 0.1325, 0.1375, 0.1425, 0.1475, 0.1525, 0.1575, 0.1625, 0.1675, 0.1725, 0.1775, 0.1825, 0.1875, 0.1925, 0.1975, 0.2025, 0.2075, 0.2125, 0.2175, 0.2225, 0.2275, 0.2325, 0.2375, 0.2425, 0.2475, 0.2525, 0.2575, 0.2625, 0.2675, 0.2725, 0.2775, 0.2825, 0.2875, 0.2925, 0.2975, 0.3025, 0.3075, 0.3125, 0.3175, 0.3225, 0.3275, 0.3325, 0.3375, 0.3425, 0.3475, 0.3525, 0.3575, 0.3625, 0.3675, 0.3725, 0.3775, 0.3825], dtype=float32) - y_pixel_offset(y_pixel_offset)float32m-0.1629, -0.1086, ..., 0.1086, 0.1629
Values:
array([-0.1629, -0.1086, -0.0543, 0. , 0.0543, 0.1086, 0.1629], dtype=float32)
- (x_pixel_offset, y_pixel_offset)int320, 0, ..., 0, 0
Values:
array([[0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], ..., [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0], [0, 0, 0, ..., 0, 0, 0]], dtype=int32)
[16]:
da.plot()
[16]:
Writing to files#
See application definitions section for documentation about how to write to Nexus files.