Interface NXdata
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.eclipse.dawnsci.nexus.NXobject
NX_ATTRIBUTE_DEFAULT -
Method Summary
Modifier and TypeMethodDescriptionGet all Axisname fields: Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions.Get all Data fields: ......Which slice of data to show in a plot by default.getAttributeIndices(String axisname) The ``AXISNAME_indices`` attribute is a single integer or an array of integers that defines which :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions are spanned by the corresponding axis...org.eclipse.january.dataset.DatasetgetAxisname(String axisname) Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions.getAxisnameAttributeAxis(String axisname) Deprecated.Use the group ``axes`` attribute (NIAC2014)getAxisnameAttributeDistribution(String axisname) ``0|false``: single value, ``1|true``: multiple valuesgetAxisnameAttributeFirst_good(String axisname) Index of first good valuegetAxisnameAttributeLast_good(String axisname) Index of last good valuegetAxisnameAttributeLong_name(String axisname) Axis labelgetAxisnameAttributeUnits(String axisname) Unit in which the coordinate values are expressed.getAxisnameScalar(String axisname) Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions.org.eclipse.january.dataset.Dataset..getDataAttributeAxes(String data) Deprecated.Use the group ``axes`` attribute (NIAC2014)data labelgetDataAttributeSignal(String data) Deprecated.Use the group ``signal`` attribute (NIAC2014)getDataScalar(String data) ..org.eclipse.january.dataset.DatasetDeprecated.Use ``DATA_errors`` instead (NIAC2018)Deprecated.Use ``DATA_errors`` instead (NIAC2018)org.eclipse.january.dataset.Dataset"Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group."Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group.org.eclipse.january.dataset.DatasetAn optional offset to apply to the values in FIELDNAME (usually the signal).An optional offset to apply to the values in FIELDNAME (usually the signal).org.eclipse.january.dataset.DatasetAn optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group.An optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group.org.eclipse.january.dataset.DatasetDeprecated.Use FIELDNAME_offset insteadDeprecated.Use FIELDNAME_offset insteadorg.eclipse.january.dataset.DatasetDeprecated.Use FIELDNAME_scaling_factor insteadDeprecated.Use FIELDNAME_scaling_factor insteadorg.eclipse.january.dataset.DatasetgetTitle()Title for the plot.Title for the plot.org.eclipse.january.dataset.DatasetgetX()This is an array holding the values to use for the x-axis of data.This is an array holding the values to use for the x-axis of data.org.eclipse.january.dataset.DatasetgetY()This is an array holding the values to use for the y-axis of data.This is an array holding the values to use for the y-axis of data.org.eclipse.january.dataset.DatasetgetZ()This is an array holding the values to use for the z-axis of data.This is an array holding the values to use for the z-axis of data.voidsetAttributeAuxiliary_signals(String auxiliary_signalsValue) ..voidsetAttributeAxes(String axesValue) ..voidsetAttributeDefault_slice(String default_sliceValue) Which slice of data to show in a plot by default.voidsetAttributeIndices(String axisname, Long indicesValue) The ``AXISNAME_indices`` attribute is a single integer or an array of integers that defines which :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions are spanned by the corresponding axis.voidsetAttributeSignal(String signalValue) ..setAxisname(String axisname, org.eclipse.january.dataset.IDataset axisnameDataset) Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions.voidsetAxisnameAttributeAxis(String axisname, Long axisValue) Deprecated.Use the group ``axes`` attribute (NIAC2014)voidsetAxisnameAttributeDistribution(String axisname, Boolean distributionValue) ``0|false``: single value, ``1|true``: multiple valuesvoidsetAxisnameAttributeFirst_good(String axisname, Long first_goodValue) Index of first good valuevoidsetAxisnameAttributeLast_good(String axisname, Long last_goodValue) Index of last good valuevoidsetAxisnameAttributeLong_name(String axisname, String long_nameValue) Axis labelvoidsetAxisnameAttributeUnits(String axisname, String unitsValue) Unit in which the coordinate values are expressed.setAxisnameScalar(String axisname, Object axisnameValue) Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions...voidsetDataAttributeAxes(String data, String axesValue) Deprecated.Use the group ``axes`` attribute (NIAC2014)voidsetDataAttributeLong_name(String data, String long_nameValue) data labelvoidsetDataAttributeSignal(String data, Long signalValue) Deprecated.Use the group ``signal`` attribute (NIAC2014)setDataScalar(String data, Number dataValue) ..setErrors(org.eclipse.january.dataset.IDataset errorsDataset) Deprecated.Use ``DATA_errors`` instead (NIAC2018)setErrorsScalar(Number errorsValue) Deprecated.Use ``DATA_errors`` instead (NIAC2018)setFieldname_errors(org.eclipse.january.dataset.IDataset fieldname_errorsDataset) "Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group.setFieldname_errorsScalar(Number fieldname_errorsValue) "Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group.setFieldname_offset(org.eclipse.january.dataset.IDataset fieldname_offsetDataset) An optional offset to apply to the values in FIELDNAME (usually the signal).setFieldname_offsetScalar(Number fieldname_offsetValue) An optional offset to apply to the values in FIELDNAME (usually the signal).setFieldname_scaling_factor(org.eclipse.january.dataset.IDataset fieldname_scaling_factorDataset) An optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group.setFieldname_scaling_factorScalar(Number fieldname_scaling_factorValue) An optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group.setOffset(org.eclipse.january.dataset.IDataset offsetDataset) Deprecated.Use FIELDNAME_offset insteadsetOffsetScalar(Double offsetValue) Deprecated.Use FIELDNAME_offset insteadsetScaling_factor(org.eclipse.january.dataset.IDataset scaling_factorDataset) Deprecated.Use FIELDNAME_scaling_factor insteadsetScaling_factorScalar(Double scaling_factorValue) Deprecated.Use FIELDNAME_scaling_factor insteadsetTitle(org.eclipse.january.dataset.IDataset titleDataset) Title for the plot.setTitleScalar(String titleValue) Title for the plot.setX(org.eclipse.january.dataset.IDataset xDataset) This is an array holding the values to use for the x-axis of data.setXScalar(Double xValue) This is an array holding the values to use for the x-axis of data.setY(org.eclipse.january.dataset.IDataset yDataset) This is an array holding the values to use for the y-axis of data.setYScalar(Double yValue) This is an array holding the values to use for the y-axis of data.setZ(org.eclipse.january.dataset.IDataset zDataset) This is an array holding the values to use for the z-axis of data.setZScalar(Double zValue) This is an array holding the values to use for the z-axis of data.Methods inherited from interface org.eclipse.dawnsci.analysis.api.tree.GroupNode
addDataNode, addGroupNode, addNode, addNodeLink, addSymbolicNode, containsDataNode, containsGroupNode, containsNode, containsSymbolicNode, findLinkedNodeName, findNode, findNodeLink, getDataNode, getDataNodeMap, getDataNodeNames, getDataNodes, getDatasets, getGlobalPool, getGroupNode, getGroupNodeMap, getGroupNodeNames, getGroupNodes, getNames, getNode, getNodeLink, getNodeNameIterator, getNumberOfDataNodes, getNumberOfGroupNodes, getNumberOfNodelinks, getSymbolicNode, getSymbolicNodeNames, isPopulated, iterator, removeDataNode, removeDataNode, removeGroupNode, removeGroupNode, removeSymbolicNode, removeSymbolicNode, setGlobalPoolMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface org.eclipse.dawnsci.analysis.api.tree.Node
addAttribute, containsAttribute, getAttribute, getAttributeIterator, getAttributeNameIterator, getAttributeNames, getID, getNumberOfAttributes, isDataNode, isGroupNode, isSymbolicNode, removeAttribute, removeAttributeMethods inherited from interface org.eclipse.dawnsci.nexus.NXobject
addExternalLink, canAddChild, createDataNode, getAllDatasets, getAttr, getAttrBoolean, getAttrDate, getAttrDouble, getAttributeDefault, getAttrLong, getAttrNumber, getAttrString, getBoolean, getChild, getChildren, getChildren, getDataset, getDate, getDouble, getLazyDataset, getLazyWritableDataset, getLong, getNexusBaseClass, getNumber, getNXclass, getPermittedChildGroupClasses, getString, initializeFixedSizeLazyDataset, initializeLazyDataset, initializeLazyDataset, initializeLazyDataset, putChild, setAttribute, setAttributeDefault, setChildren, setDataset, setField
-
Field Details
-
NX_ATTRIBUTE_SIGNAL
- See Also:
-
NX_ATTRIBUTE_AUXILIARY_SIGNALS
- See Also:
-
NX_ATTRIBUTE_DEFAULT_SLICE
- See Also:
-
NX_ATTRIBUTE_INDICES
- See Also:
-
NX_ATTRIBUTE_AXES
- See Also:
-
NX_AXISNAME
- See Also:
-
NX_AXISNAME_ATTRIBUTE_LONG_NAME
- See Also:
-
NX_AXISNAME_ATTRIBUTE_UNITS
- See Also:
-
NX_AXISNAME_ATTRIBUTE_DISTRIBUTION
- See Also:
-
NX_AXISNAME_ATTRIBUTE_FIRST_GOOD
- See Also:
-
NX_AXISNAME_ATTRIBUTE_LAST_GOOD
- See Also:
-
NX_AXISNAME_ATTRIBUTE_AXIS
- See Also:
-
NX_DATA
- See Also:
-
NX_DATA_ATTRIBUTE_SIGNAL
- See Also:
-
NX_DATA_ATTRIBUTE_AXES
- See Also:
-
NX_DATA_ATTRIBUTE_LONG_NAME
- See Also:
-
NX_FIELDNAME_ERRORS
- See Also:
-
NX_ERRORS
- See Also:
-
NX_FIELDNAME_SCALING_FACTOR
- See Also:
-
NX_FIELDNAME_OFFSET
- See Also:
-
NX_SCALING_FACTOR
- See Also:
-
NX_OFFSET
- See Also:
-
NX_TITLE
- See Also:
-
NX_X
- See Also:
-
NX_Y
- See Also:
-
NX_Z
- See Also:
-
-
Method Details
-
getAttributeSignal
String getAttributeSignal().. index:: find the default plottable data .. index:: plotting .. index:: signal attribute value The value is the :ref:`name` of the signal that contains the default plottable data. This field or link *must* exist and be a direct child of this NXdata group. It is recommended (as of NIAC2014) to use this attribute rather than adding a signal attribute to the field. See https://www.nexusformat.org/2014_How_to_find_default_data.html for a summary of the discussion. - Returns:
- the value.
-
setAttributeSignal
.. index:: find the default plottable data .. index:: plotting .. index:: signal attribute value The value is the :ref:`name` of the signal that contains the default plottable data. This field or link *must* exist and be a direct child of this NXdata group. It is recommended (as of NIAC2014) to use this attribute rather than adding a signal attribute to the field. See https://www.nexusformat.org/2014_How_to_find_default_data.html for a summary of the discussion. - Parameters:
signalValue- the signalValue
-
getAttributeAuxiliary_signals
String getAttributeAuxiliary_signals().. index:: plotting Array of strings holding the :ref:`names` of additional signals to be plotted with the :ref:`default signal invalid input: '<'/NXdata@signal-attribute>`. These fields or links *must* exist and be direct children of this NXdata group. Each auxiliary signal needs to be of the same shape as the default signal. .. NIAC2018: https://www.nexusformat.org/NIAC2018Minutes.html - Returns:
- the value.
-
setAttributeAuxiliary_signals
.. index:: plotting Array of strings holding the :ref:`names` of additional signals to be plotted with the :ref:`default signal invalid input: '<'/NXdata@signal-attribute>`. These fields or links *must* exist and be direct children of this NXdata group. Each auxiliary signal needs to be of the same shape as the default signal. .. NIAC2018: https://www.nexusformat.org/NIAC2018Minutes.html - Parameters:
auxiliary_signalsValue- the auxiliary_signalsValue
-
getAttributeDefault_slice
String getAttributeDefault_slice()Which slice of data to show in a plot by default. This is useful especially for datasets with more than 2 dimensions. Should be an array of length equal to the number of dimensions in the data, with the following possible values: * ".": All the data in this dimension should be included * Integer: Only this slice should be used. * String: Only this slice should be used. Use if ``AXISNAME`` is a string array. Example:: data:NXdata- Returns:
- the value.
-
setAttributeDefault_slice
Which slice of data to show in a plot by default. This is useful especially for datasets with more than 2 dimensions. Should be an array of length equal to the number of dimensions in the data, with the following possible values: * ".": All the data in this dimension should be included * Integer: Only this slice should be used. * String: Only this slice should be used. Use if ``AXISNAME`` is a string array. Example:: data:NXdata- Parameters:
default_sliceValue- the default_sliceValue
-
getAttributeIndices
The ``AXISNAME_indices`` attribute is a single integer or an array of integers that defines which :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions are spanned by the corresponding axis. The first dimension index is ``0`` (zero). The number of indices must be equal to the rank of the :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field. When the ``AXISNAME_indices`` attribute is missing for a given :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field, its value becomes the index (or indices) of the :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` name in the :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute. .. note:: When ``AXISNAME_indices`` contains multiple integers, it must be saved as an actual array of integers and not a comma separated string.- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAttributeIndices
The ``AXISNAME_indices`` attribute is a single integer or an array of integers that defines which :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions are spanned by the corresponding axis. The first dimension index is ``0`` (zero). The number of indices must be equal to the rank of the :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field. When the ``AXISNAME_indices`` attribute is missing for a given :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field, its value becomes the index (or indices) of the :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` name in the :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute. .. note:: When ``AXISNAME_indices`` contains multiple integers, it must be saved as an actual array of integers and not a comma separated string.- Parameters:
axisname- the axisnameindicesValue- the indicesValue
-
getAttributeAxes
String getAttributeAxes().. index:: plotting The ``axes`` attribute is a list of strings which are the names of the :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` fields to be used as the default axis along every :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimension. As a result the length must be equal to the rank of the :ref:`DATA invalid input: '<'/NXdata/DATA-field>` fields. The string "." can be used for dimensions without a default axis. .. note:: When ``axes`` contains multiple strings, it must be saved as an actual array of strings and not a single comma separated string.1: dataRank;
- Returns:
- the value.
-
setAttributeAxes
.. index:: plotting The ``axes`` attribute is a list of strings which are the names of the :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` fields to be used as the default axis along every :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimension. As a result the length must be equal to the rank of the :ref:`DATA invalid input: '<'/NXdata/DATA-field>` fields. The string "." can be used for dimensions without a default axis. .. note:: When ``axes`` contains multiple strings, it must be saved as an actual array of strings and not a single comma separated string.1: dataRank;
- Parameters:
axesValue- the axesValue
-
getAxisname
Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions. The shape of an ``AXISNAME`` field must correspond to the shape of the :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions it spans. This means that for each ``i`` in ``[0, AXISNAME.ndim)`` the number of data points ``DATA.shape[AXISNAME_indices[i]]`` must be equal to the number of coordinates ``AXISNAME.shape[i]`` or the number of bin edges ``AXISNAME.shape[i]+1`` in case of histogram data. As the upper case ``AXISNAME`` indicates, the names of the ``AXISNAME`` fields can be chosen :ref:`freely`. Most ``AXISNAME`` fields will be sequences of numbers but if an axis is better represented using names, such as channel names, an array of NX_CHAR can be provided. Type: NX_CHAR_OR_NUMBER
- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisname
Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions. The shape of an ``AXISNAME`` field must correspond to the shape of the :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions it spans. This means that for each ``i`` in ``[0, AXISNAME.ndim)`` the number of data points ``DATA.shape[AXISNAME_indices[i]]`` must be equal to the number of coordinates ``AXISNAME.shape[i]`` or the number of bin edges ``AXISNAME.shape[i]+1`` in case of histogram data. As the upper case ``AXISNAME`` indicates, the names of the ``AXISNAME`` fields can be chosen :ref:`freely`. Most ``AXISNAME`` fields will be sequences of numbers but if an axis is better represented using names, such as channel names, an array of NX_CHAR can be provided. Type: NX_CHAR_OR_NUMBER
- Parameters:
axisname- the axisnameaxisnameDataset- the axisnameDataset
-
getAxisnameScalar
Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions. The shape of an ``AXISNAME`` field must correspond to the shape of the :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions it spans. This means that for each ``i`` in ``[0, AXISNAME.ndim)`` the number of data points ``DATA.shape[AXISNAME_indices[i]]`` must be equal to the number of coordinates ``AXISNAME.shape[i]`` or the number of bin edges ``AXISNAME.shape[i]+1`` in case of histogram data. As the upper case ``AXISNAME`` indicates, the names of the ``AXISNAME`` fields can be chosen :ref:`freely`. Most ``AXISNAME`` fields will be sequences of numbers but if an axis is better represented using names, such as channel names, an array of NX_CHAR can be provided. Type: NX_CHAR_OR_NUMBER
- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisnameScalar
Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions. The shape of an ``AXISNAME`` field must correspond to the shape of the :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions it spans. This means that for each ``i`` in ``[0, AXISNAME.ndim)`` the number of data points ``DATA.shape[AXISNAME_indices[i]]`` must be equal to the number of coordinates ``AXISNAME.shape[i]`` or the number of bin edges ``AXISNAME.shape[i]+1`` in case of histogram data. As the upper case ``AXISNAME`` indicates, the names of the ``AXISNAME`` fields can be chosen :ref:`freely`. Most ``AXISNAME`` fields will be sequences of numbers but if an axis is better represented using names, such as channel names, an array of NX_CHAR can be provided. Type: NX_CHAR_OR_NUMBER
- Parameters:
axisname- the axisnameaxisname- the axisname
-
getAllAxisname
Get all Axisname fields: Coordinate values along one or more :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions. The shape of an ``AXISNAME`` field must correspond to the shape of the :ref:`DATA invalid input: '<'/NXdata/DATA-field>` dimensions it spans. This means that for each ``i`` in ``[0, AXISNAME.ndim)`` the number of data points ``DATA.shape[AXISNAME_indices[i]]`` must be equal to the number of coordinates ``AXISNAME.shape[i]`` or the number of bin edges ``AXISNAME.shape[i]+1`` in case of histogram data. As the upper case ``AXISNAME`` indicates, the names of the ``AXISNAME`` fields can be chosen :ref:`freely`. Most ``AXISNAME`` fields will be sequences of numbers but if an axis is better represented using names, such as channel names, an array of NX_CHAR can be provided. Type: NX_CHAR_OR_NUMBER
Note: this method returns ALL datasets within this group.
- Returns:
- a map from node names to the ? extends IDataset for that node.
-
getAxisnameAttributeLong_name
Axis label- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisnameAttributeLong_name
Axis label- Parameters:
axisname- the axisnamelong_nameValue- the long_nameValue
-
getAxisnameAttributeUnits
Unit in which the coordinate values are expressed. See the section :ref:`Design-Units` for more information.- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisnameAttributeUnits
Unit in which the coordinate values are expressed. See the section :ref:`Design-Units` for more information.- Parameters:
axisname- the axisnameunitsValue- the unitsValue
-
getAxisnameAttributeDistribution
``0|false``: single value, ``1|true``: multiple values- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisnameAttributeDistribution
``0|false``: single value, ``1|true``: multiple values- Parameters:
axisname- the axisnamedistributionValue- the distributionValue
-
getAxisnameAttributeFirst_good
Index of first good value- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisnameAttributeFirst_good
Index of first good value- Parameters:
axisname- the axisnamefirst_goodValue- the first_goodValue
-
getAxisnameAttributeLast_good
Index of last good value- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisnameAttributeLast_good
Index of last good value- Parameters:
axisname- the axisnamelast_goodValue- the last_goodValue
-
getAxisnameAttributeAxis
Deprecated.Use the group ``axes`` attribute (NIAC2014)Index (positive integer) identifying this specific set of numbers. N.B. The ``axis`` attribute is the old way of designating a link. Do not use the :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute with the ``axis`` attribute. The :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute is now preferred.- Parameters:
axisname- the axisname- Returns:
- the value.
-
setAxisnameAttributeAxis
Deprecated.Use the group ``axes`` attribute (NIAC2014)Index (positive integer) identifying this specific set of numbers. N.B. The ``axis`` attribute is the old way of designating a link. Do not use the :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute with the ``axis`` attribute. The :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute is now preferred.- Parameters:
axisname- the axisnameaxisValue- the axisValue
-
getData
.. index:: plotting Data values to be used as the NeXus *plottable data*. As the upper case ``DATA`` indicates, the names of the ``DATA`` fields can be chosen :ref:`freely`. The :ref:`signal attribute invalid input: '<'/NXdata@signal-attribute>` and :ref:`auxiliary_signals attributeinvalid input: '<'/NXdata@auxiliary_signals-attribute>` can be used to find all datasets in the ``NXdata`` that contain data values. The maximum rank is ``32`` for compatibility with backend file formats. Type: NX_NUMBER Dimensions:
- Parameters:
data- the data- Returns:
- the value.
-
setData
.. index:: plotting Data values to be used as the NeXus *plottable data*. As the upper case ``DATA`` indicates, the names of the ``DATA`` fields can be chosen :ref:`freely`. The :ref:`signal attribute invalid input: '<'/NXdata@signal-attribute>` and :ref:`auxiliary_signals attributeinvalid input: '<'/NXdata@auxiliary_signals-attribute>` can be used to find all datasets in the ``NXdata`` that contain data values. The maximum rank is ``32`` for compatibility with backend file formats. Type: NX_NUMBER Dimensions:
- Parameters:
data- the datadataDataset- the dataDataset
-
getDataScalar
.. index:: plotting Data values to be used as the NeXus *plottable data*. As the upper case ``DATA`` indicates, the names of the ``DATA`` fields can be chosen :ref:`freely`. The :ref:`signal attribute invalid input: '<'/NXdata@signal-attribute>` and :ref:`auxiliary_signals attributeinvalid input: '<'/NXdata@auxiliary_signals-attribute>` can be used to find all datasets in the ``NXdata`` that contain data values. The maximum rank is ``32`` for compatibility with backend file formats. Type: NX_NUMBER Dimensions:
- Parameters:
data- the data- Returns:
- the value.
-
setDataScalar
.. index:: plotting Data values to be used as the NeXus *plottable data*. As the upper case ``DATA`` indicates, the names of the ``DATA`` fields can be chosen :ref:`freely`. The :ref:`signal attribute invalid input: '<'/NXdata@signal-attribute>` and :ref:`auxiliary_signals attributeinvalid input: '<'/NXdata@auxiliary_signals-attribute>` can be used to find all datasets in the ``NXdata`` that contain data values. The maximum rank is ``32`` for compatibility with backend file formats. Type: NX_NUMBER Dimensions:
- Parameters:
data- the datadata- the data
-
getAllData
Get all Data fields: .. index:: plotting Data values to be used as the NeXus *plottable data*. As the upper case ``DATA`` indicates, the names of the ``DATA`` fields can be chosen :ref:`freely`. The :ref:`signal attribute invalid input: '<'/NXdata@signal-attribute>` and :ref:`auxiliary_signals attributeinvalid input: '<'/NXdata@auxiliary_signals-attribute>` can be used to find all datasets in the ``NXdata`` that contain data values. The maximum rank is ``32`` for compatibility with backend file formats. Type: NX_NUMBER Dimensions:
Note: this method returns ALL datasets within this group.
- Returns:
- a map from node names to the ? extends IDataset for that node.
-
getDataAttributeSignal
Deprecated.Use the group ``signal`` attribute (NIAC2014).. index:: plotting Plottable (independent) axis, indicate index number. Only one field in a :ref:`NXdata` group may have the ``signal=1`` attribute. Do not use the ``signal`` attribute with the ``axis`` attribute.- Parameters:
data- the data- Returns:
- the value.
-
setDataAttributeSignal
Deprecated.Use the group ``signal`` attribute (NIAC2014).. index:: plotting Plottable (independent) axis, indicate index number. Only one field in a :ref:`NXdata` group may have the ``signal=1`` attribute. Do not use the ``signal`` attribute with the ``axis`` attribute.- Parameters:
data- the datasignalValue- the signalValue
-
getDataAttributeAxes
Deprecated.Use the group ``axes`` attribute (NIAC2014)Defines the names of the coordinates (independent axes) for this data set as a colon-delimited array. NOTE: The :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute is the preferred method of designating a link. Do not use the :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute with the ``axis`` attribute.- Parameters:
data- the data- Returns:
- the value.
-
setDataAttributeAxes
Deprecated.Use the group ``axes`` attribute (NIAC2014)Defines the names of the coordinates (independent axes) for this data set as a colon-delimited array. NOTE: The :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute is the preferred method of designating a link. Do not use the :ref:`axes invalid input: '<'/NXdata@axes-attribute>` attribute with the ``axis`` attribute.- Parameters:
data- the dataaxesValue- the axesValue
-
getDataAttributeLong_name
data label- Parameters:
data- the data- Returns:
- the value.
-
setDataAttributeLong_name
data label- Parameters:
data- the datalong_nameValue- the long_nameValue
-
getFieldname_errors
org.eclipse.january.dataset.Dataset getFieldname_errors()"Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The dimensions of the ``FIELDNAME_errors`` field must match the dimensions of the corresponding ``FIELDNAME`` field.Type: NX_NUMBER
- Returns:
- the value.
-
setFieldname_errors
"Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The dimensions of the ``FIELDNAME_errors`` field must match the dimensions of the corresponding ``FIELDNAME`` field.Type: NX_NUMBER
- Parameters:
fieldname_errorsDataset- the fieldname_errorsDataset
-
getFieldname_errorsScalar
Number getFieldname_errorsScalar()"Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The dimensions of the ``FIELDNAME_errors`` field must match the dimensions of the corresponding ``FIELDNAME`` field.Type: NX_NUMBER
- Returns:
- the value.
-
setFieldname_errorsScalar
"Errors" (meaning *uncertainties* or *standard deviations*) associated with any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The dimensions of the ``FIELDNAME_errors`` field must match the dimensions of the corresponding ``FIELDNAME`` field.Type: NX_NUMBER
- Parameters:
fieldname_errors- the fieldname_errors
-
getErrors
Deprecated.Use ``DATA_errors`` instead (NIAC2018)Standard deviations of data values - the data array is identified by the group attribute ``signal``. The ``errors`` array must have the same dimensions as ``DATA``. Client is responsible for defining the dimensions of the data.Type: NX_NUMBER Dimensions:
- Returns:
- the value.
-
setErrors
Deprecated.Use ``DATA_errors`` instead (NIAC2018)Standard deviations of data values - the data array is identified by the group attribute ``signal``. The ``errors`` array must have the same dimensions as ``DATA``. Client is responsible for defining the dimensions of the data.Type: NX_NUMBER Dimensions:
- Parameters:
errorsDataset- the errorsDataset
-
getErrorsScalar
Deprecated.Use ``DATA_errors`` instead (NIAC2018)Standard deviations of data values - the data array is identified by the group attribute ``signal``. The ``errors`` array must have the same dimensions as ``DATA``. Client is responsible for defining the dimensions of the data.Type: NX_NUMBER Dimensions:
- Returns:
- the value.
-
setErrorsScalar
Deprecated.Use ``DATA_errors`` instead (NIAC2018)Standard deviations of data values - the data array is identified by the group attribute ``signal``. The ``errors`` array must have the same dimensions as ``DATA``. Client is responsible for defining the dimensions of the data.Type: NX_NUMBER Dimensions:
- Parameters:
errors- the errors
-
getFieldname_scaling_factor
org.eclipse.january.dataset.Dataset getFieldname_scaling_factor()An optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The elements stored in NXdata datasets are often stored as integers for efficiency reasons and need further correction or conversion, generating floats. For example, raw values could be stored from a device that need to be converted to values that represent the physical values. The two fields FIELDNAME_scaling_factor and FIELDNAME_offset allow linear corrections using the following convention: .. code-block:: corrected values = (FIELDNAME + offset) * scaling_factor This formula will derive the values to use in downstream applications, when necessary. When omitted, the scaling factor is assumed to be 1.Type: NX_NUMBER
- Returns:
- the value.
-
setFieldname_scaling_factor
DataNode setFieldname_scaling_factor(org.eclipse.january.dataset.IDataset fieldname_scaling_factorDataset) An optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The elements stored in NXdata datasets are often stored as integers for efficiency reasons and need further correction or conversion, generating floats. For example, raw values could be stored from a device that need to be converted to values that represent the physical values. The two fields FIELDNAME_scaling_factor and FIELDNAME_offset allow linear corrections using the following convention: .. code-block:: corrected values = (FIELDNAME + offset) * scaling_factor This formula will derive the values to use in downstream applications, when necessary. When omitted, the scaling factor is assumed to be 1.Type: NX_NUMBER
- Parameters:
fieldname_scaling_factorDataset- the fieldname_scaling_factorDataset
-
getFieldname_scaling_factorScalar
Number getFieldname_scaling_factorScalar()An optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The elements stored in NXdata datasets are often stored as integers for efficiency reasons and need further correction or conversion, generating floats. For example, raw values could be stored from a device that need to be converted to values that represent the physical values. The two fields FIELDNAME_scaling_factor and FIELDNAME_offset allow linear corrections using the following convention: .. code-block:: corrected values = (FIELDNAME + offset) * scaling_factor This formula will derive the values to use in downstream applications, when necessary. When omitted, the scaling factor is assumed to be 1.Type: NX_NUMBER
- Returns:
- the value.
-
setFieldname_scaling_factorScalar
An optional scaling factor to apply to the values in any field named ``FIELDNAME`` in this ``NXdata`` group. This can be a :ref:`DATA invalid input: '<'/NXdata/DATA-field>` field (signal or auxiliary signal) or a :ref:`AXISNAME invalid input: '<'/NXdata/AXISNAME-field>` field (axis). The elements stored in NXdata datasets are often stored as integers for efficiency reasons and need further correction or conversion, generating floats. For example, raw values could be stored from a device that need to be converted to values that represent the physical values. The two fields FIELDNAME_scaling_factor and FIELDNAME_offset allow linear corrections using the following convention: .. code-block:: corrected values = (FIELDNAME + offset) * scaling_factor This formula will derive the values to use in downstream applications, when necessary. When omitted, the scaling factor is assumed to be 1.Type: NX_NUMBER
- Parameters:
fieldname_scaling_factor- the fieldname_scaling_factor
-
getFieldname_offset
org.eclipse.january.dataset.Dataset getFieldname_offset()An optional offset to apply to the values in FIELDNAME (usually the signal). When omitted, the offset is assumed to be 0. See :ref:`FIELDNAME_scaling_factor invalid input: '<'/NXdata/FIELDNAME_scaling_factor-field>` for more information.Type: NX_NUMBER
- Returns:
- the value.
-
setFieldname_offset
An optional offset to apply to the values in FIELDNAME (usually the signal). When omitted, the offset is assumed to be 0. See :ref:`FIELDNAME_scaling_factor invalid input: '<'/NXdata/FIELDNAME_scaling_factor-field>` for more information.Type: NX_NUMBER
- Parameters:
fieldname_offsetDataset- the fieldname_offsetDataset
-
getFieldname_offsetScalar
Number getFieldname_offsetScalar()An optional offset to apply to the values in FIELDNAME (usually the signal). When omitted, the offset is assumed to be 0. See :ref:`FIELDNAME_scaling_factor invalid input: '<'/NXdata/FIELDNAME_scaling_factor-field>` for more information.Type: NX_NUMBER
- Returns:
- the value.
-
setFieldname_offsetScalar
An optional offset to apply to the values in FIELDNAME (usually the signal). When omitted, the offset is assumed to be 0. See :ref:`FIELDNAME_scaling_factor invalid input: '<'/NXdata/FIELDNAME_scaling_factor-field>` for more information.Type: NX_NUMBER
- Parameters:
fieldname_offset- the fieldname_offset
-
getScaling_factor
Deprecated.Use FIELDNAME_scaling_factor insteadThe scaling_factor and FIELDNAME_scaling_factor fields have similar semantics. However, scaling_factor is ambiguous in the case of multiple signals. Therefore scaling_factor is deprecated. Use FIELDNAME_scaling_factor instead, even when only a single signal is present.Type: NX_FLOAT
- Returns:
- the value.
-
setScaling_factor
Deprecated.Use FIELDNAME_scaling_factor insteadThe scaling_factor and FIELDNAME_scaling_factor fields have similar semantics. However, scaling_factor is ambiguous in the case of multiple signals. Therefore scaling_factor is deprecated. Use FIELDNAME_scaling_factor instead, even when only a single signal is present.Type: NX_FLOAT
- Parameters:
scaling_factorDataset- the scaling_factorDataset
-
getScaling_factorScalar
Deprecated.Use FIELDNAME_scaling_factor insteadThe scaling_factor and FIELDNAME_scaling_factor fields have similar semantics. However, scaling_factor is ambiguous in the case of multiple signals. Therefore scaling_factor is deprecated. Use FIELDNAME_scaling_factor instead, even when only a single signal is present.Type: NX_FLOAT
- Returns:
- the value.
-
setScaling_factorScalar
Deprecated.Use FIELDNAME_scaling_factor insteadThe scaling_factor and FIELDNAME_scaling_factor fields have similar semantics. However, scaling_factor is ambiguous in the case of multiple signals. Therefore scaling_factor is deprecated. Use FIELDNAME_scaling_factor instead, even when only a single signal is present.Type: NX_FLOAT
- Parameters:
scaling_factor- the scaling_factor
-
getOffset
Deprecated.Use FIELDNAME_offset insteadThe offset and FIELDNAME_offset fields have similar semantics. However, offset is ambiguous in the case of multiple signals. Therefore offset is deprecated. Use FIELDNAME_offset instead, even when only a single signal is present.Type: NX_FLOAT
- Returns:
- the value.
-
setOffset
Deprecated.Use FIELDNAME_offset insteadThe offset and FIELDNAME_offset fields have similar semantics. However, offset is ambiguous in the case of multiple signals. Therefore offset is deprecated. Use FIELDNAME_offset instead, even when only a single signal is present.Type: NX_FLOAT
- Parameters:
offsetDataset- the offsetDataset
-
getOffsetScalar
Deprecated.Use FIELDNAME_offset insteadThe offset and FIELDNAME_offset fields have similar semantics. However, offset is ambiguous in the case of multiple signals. Therefore offset is deprecated. Use FIELDNAME_offset instead, even when only a single signal is present.Type: NX_FLOAT
- Returns:
- the value.
-
setOffsetScalar
Deprecated.Use FIELDNAME_offset insteadThe offset and FIELDNAME_offset fields have similar semantics. However, offset is ambiguous in the case of multiple signals. Therefore offset is deprecated. Use FIELDNAME_offset instead, even when only a single signal is present.Type: NX_FLOAT
- Parameters:
offset- the offset
-
getTitle
org.eclipse.january.dataset.Dataset getTitle()Title for the plot.- Returns:
- the value.
-
setTitle
Title for the plot.- Parameters:
titleDataset- the titleDataset
-
getTitleScalar
String getTitleScalar()Title for the plot.- Returns:
- the value.
-
setTitleScalar
Title for the plot.- Parameters:
title- the title
-
getX
org.eclipse.january.dataset.Dataset getX()This is an array holding the values to use for the x-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nx;
- Returns:
- the value.
-
setX
This is an array holding the values to use for the x-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nx;
- Parameters:
xDataset- the xDataset
-
getXScalar
Double getXScalar()This is an array holding the values to use for the x-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nx;
- Returns:
- the value.
-
setXScalar
This is an array holding the values to use for the x-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nx;
- Parameters:
x- the x
-
getY
org.eclipse.january.dataset.Dataset getY()This is an array holding the values to use for the y-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: ny;
- Returns:
- the value.
-
setY
This is an array holding the values to use for the y-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: ny;
- Parameters:
yDataset- the yDataset
-
getYScalar
Double getYScalar()This is an array holding the values to use for the y-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: ny;
- Returns:
- the value.
-
setYScalar
This is an array holding the values to use for the y-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: ny;
- Parameters:
y- the y
-
getZ
org.eclipse.january.dataset.Dataset getZ()This is an array holding the values to use for the z-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nz;
- Returns:
- the value.
-
setZ
This is an array holding the values to use for the z-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nz;
- Parameters:
zDataset- the zDataset
-
getZScalar
Double getZScalar()This is an array holding the values to use for the z-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nz;
- Returns:
- the value.
-
setZScalar
This is an array holding the values to use for the z-axis of data. The units must be appropriate for the measurement. This is a special case of a :ref:`AXISNAME field invalid input: '<'/NXdata/AXISNAME-field>` kept for backward compatibility.Type: NX_FLOAT Units: NX_ANY Dimensions: 1: nz;
- Parameters:
z- the z
-