.. auto-generated by dev_tools.docs.nxdl from the NXDL source applications/NXscan.nxdl.xml -- DO NOT EDIT .. index:: ! NXscan (application definition) ! scan (application definition) see: scan (application definition); NXscan .. _NXscan: ====== NXscan ====== .. Contributors List .. |contrib_name| replace:: Pete R Jemian|prjemian|https://avatars.githubusercontent.com/u/2279984?v=4|2022-01-28 .. |contrib_name| replace:: Russ Berg|RussBerg|https://avatars.githubusercontent.com/u/4698891?v=4|2020-11-05 .. |contrib_name| replace:: Tobias Richter|zjttoefs|https://avatars.githubusercontent.com/u/856440?v=4|2018-05-15 .. |contrib_name| replace:: Joachim Wuttke (l)|jwuttke|https://avatars.githubusercontent.com/u/5262000?v=4|2014-08-26 **Status**: application definition, extends :ref:`NXobject` **Description**: .. collapse:: Application definition for a generic scan instrument. ... Application definition for a generic scan instrument. This definition is more an example then a stringent definition as the content of a given NeXus scan file needs to differ for different types of scans. This example definition shows a scan like done on a rotation camera: the sample is rotated and a detector image, the rotation angle and a monitor value is stored at each step in the scan. In the following, the symbol ``NP`` is used to represent the number of scan points. These are the rules for storing scan data in NeXus files which are implemented in this example: * Each value varied throughout a scan is stored as an array of length ``NP`` at its respective location within the NeXus hierarchy. * For area detectors, ``NP`` is the first dimension, example for a detector of 256x256: ``data[NP,256,256]`` * The NXdata group contains links to all variables varied in the scan and the data. This to give an equivalent to the more familiar classical tabular representation of scans. These rules exist for a reason: HDF allows the first dimension of a data set to be unlimited. This means the data can be appended too. Thus a NeXus file built according to the rules given above can be used in the following way: * At the start of a scan, write all the static information. * At each scan point, append new data from varied variables and the detector to the file. **Symbols**: The symbol(s) listed here will be used below to coordinate datasets with the same shape. **nP**: Number of points **xDim**: xDim description **yDim**: yDim description **Groups cited**: :ref:`NXdata`, :ref:`NXdetector`, :ref:`NXentry`, :ref:`NXinstrument`, :ref:`NXmonitor`, :ref:`NXsample` .. index:: NXentry (base class); used in application definition, NXinstrument (base class); used in application definition, NXdetector (base class); used in application definition, NXsample (base class); used in application definition, NXmonitor (base class); used in application definition, NXdata (base class); used in application definition **Structure**: .. _/NXscan/ENTRY-group: **ENTRY**: (required) :ref:`NXentry` .. _/NXscan/ENTRY/title-field: .. index:: title (field) **title**: (required) :ref:`NX_CHAR ` :ref:`⤆ ` .. _/NXscan/ENTRY/start_time-field: .. index:: start_time (field) **start_time**: (required) :ref:`NX_DATE_TIME ` :ref:`⤆ ` .. _/NXscan/ENTRY/end_time-field: .. index:: end_time (field) **end_time**: (required) :ref:`NX_DATE_TIME ` :ref:`⤆ ` .. _/NXscan/ENTRY/definition-field: .. index:: definition (field) **definition**: (required) :ref:`NX_CHAR ` :ref:`⤆ ` .. collapse:: Official NeXus NXDL schema to which this file conforms ... Official NeXus NXDL schema to which this file conforms Obligatory value: ``NXscan`` .. _/NXscan/ENTRY/INSTRUMENT-group: **INSTRUMENT**: (required) :ref:`NXinstrument` :ref:`⤆ ` .. _/NXscan/ENTRY/INSTRUMENT/DETECTOR-group: **DETECTOR**: (required) :ref:`NXdetector` :ref:`⤆ ` .. _/NXscan/ENTRY/INSTRUMENT/DETECTOR/data-field: .. index:: data (field) **data**: (required) :ref:`NX_INT ` (Rank: 3, Dimensions: [nP, xDim, yDim]) .. _/NXscan/ENTRY/SAMPLE-group: **SAMPLE**: (required) :ref:`NXsample` :ref:`⤆ ` .. _/NXscan/ENTRY/SAMPLE/rotation_angle-field: .. index:: rotation_angle (field) **rotation_angle**: (required) :ref:`NX_FLOAT ` (Rank: 1, Dimensions: [nP]) :ref:`⤆ ` .. _/NXscan/ENTRY/MONITOR-group: **MONITOR**: (required) :ref:`NXmonitor` :ref:`⤆ ` .. _/NXscan/ENTRY/MONITOR/data-field: .. index:: data (field) **data**: (required) :ref:`NX_INT ` (Rank: 1, Dimensions: [nP]) .. _/NXscan/ENTRY/DATA-group: **DATA**: (required) :ref:`NXdata` :ref:`⤆ ` .. _/NXscan/ENTRY/DATA/data-link: **data**: :ref:`link` (suggested target: ``/NXentry/NXinstrument/NXdetector/data``) .. _/NXscan/ENTRY/DATA/rotation_angle-link: **rotation_angle**: :ref:`link` (suggested target: ``/NXentry/NXsample/rotation_angle``) Hypertext Anchors ----------------- List of hypertext anchors for all groups, fields, attributes, and links defined in this class. * :ref:`/NXscan/ENTRY-group ` * :ref:`/NXscan/ENTRY/DATA-group ` * :ref:`/NXscan/ENTRY/DATA/data-link ` * :ref:`/NXscan/ENTRY/DATA/rotation_angle-link ` * :ref:`/NXscan/ENTRY/definition-field ` * :ref:`/NXscan/ENTRY/end_time-field ` * :ref:`/NXscan/ENTRY/INSTRUMENT-group ` * :ref:`/NXscan/ENTRY/INSTRUMENT/DETECTOR-group ` * :ref:`/NXscan/ENTRY/INSTRUMENT/DETECTOR/data-field ` * :ref:`/NXscan/ENTRY/MONITOR-group ` * :ref:`/NXscan/ENTRY/MONITOR/data-field ` * :ref:`/NXscan/ENTRY/SAMPLE-group ` * :ref:`/NXscan/ENTRY/SAMPLE/rotation_angle-field ` * :ref:`/NXscan/ENTRY/start_time-field ` * :ref:`/NXscan/ENTRY/title-field ` **NXDL Source**: https://github.com/nexusformat/definitions/blob/main/applications/NXscan.nxdl.xml