All Downloads are FREE. Search and download functionalities are using the official Maven repository.

generated.docs.javadoc.org.eclipse.dawnsci.nexus.NXlog.html Maven / Gradle / Ivy






NXlog (h5jan API)












org.eclipse.dawnsci.nexus

Interface NXlog

  • All Superinterfaces:
    GroupNode, java.lang.Iterable<NodeLink>, Node, NXobject
    All Known Implementing Classes:
    NXlogImpl


    public interface NXlog
    extends NXobject
    Information recorded as a function of time. Description of information that is recorded against time. There are two common use cases for this: - When logging data such as temperature during a run - When data is taken in streaming mode data acquisition, i.e. just timestamp, value pairs are stored and correlated later in data reduction with other data, In both cases, NXlog contains the logged or streamed values and the times at which they were measured as elapsed time since a starting time recorded in ISO8601 format. The time units are specified in the units attribute. An optional scaling attribute can be used to accomodate non standard clocks. This method of storing logged data helps to distinguish instances in which a variable is a dimension scale of the data, in which case it is stored in an :ref:`NXdata` group, and instances in which it is logged during the run, when it should be stored in an :ref:`NXlog` group. In order to make random access to timestamped data faster there is an optional array pair of ``cue_timestamp_zero`` and ``cue_index``. The ``cue_timestamp_zero`` will contain coarser timestamps than in the time array, say every five minutes. The ``cue_index`` will then contain the index into the time,value pair of arrays for that coarser ``cue_timestamp_zero``.
    • Method Detail

      • getTime

        IDataset getTime()
        Time of logged entry. The times are relative to the "start" attribute and in the units specified in the "units" attribute. Please note that absolute timestamps under unix are relative to ``1970-01-01T:00:00``. The scaling_factor, when present, has to be applied to the time values in order to arrive at the units specified in the units attribute. The scaling_factor allows for arbitrary time units such as ticks of some hardware clock.

        Type: NX_NUMBER Units: NX_TIME

        Returns:
        the value.
      • setTime

        DataNode setTime(IDataset time)
        Time of logged entry. The times are relative to the "start" attribute and in the units specified in the "units" attribute. Please note that absolute timestamps under unix are relative to ``1970-01-01T:00:00``. The scaling_factor, when present, has to be applied to the time values in order to arrive at the units specified in the units attribute. The scaling_factor allows for arbitrary time units such as ticks of some hardware clock.

        Type: NX_NUMBER Units: NX_TIME

        Parameters:
        time - the time
      • getTimeScalar

        java.lang.Number getTimeScalar()
        Time of logged entry. The times are relative to the "start" attribute and in the units specified in the "units" attribute. Please note that absolute timestamps under unix are relative to ``1970-01-01T:00:00``. The scaling_factor, when present, has to be applied to the time values in order to arrive at the units specified in the units attribute. The scaling_factor allows for arbitrary time units such as ticks of some hardware clock.

        Type: NX_NUMBER Units: NX_TIME

        Returns:
        the value.
      • setTimeScalar

        DataNode setTimeScalar(java.lang.Number time)
        Time of logged entry. The times are relative to the "start" attribute and in the units specified in the "units" attribute. Please note that absolute timestamps under unix are relative to ``1970-01-01T:00:00``. The scaling_factor, when present, has to be applied to the time values in order to arrive at the units specified in the units attribute. The scaling_factor allows for arbitrary time units such as ticks of some hardware clock.

        Type: NX_NUMBER Units: NX_TIME

        Parameters:
        time - the time
      • getTimeAttributeStart

        java.util.Date getTimeAttributeStart()
        Returns:
        the value.
      • setTimeAttributeStart

        void setTimeAttributeStart(java.util.Date start)
        Parameters:
        start - the start
      • getTimeAttributeScaling_factor

        java.lang.Number getTimeAttributeScaling_factor()
        Returns:
        the value.
      • setTimeAttributeScaling_factor

        void setTimeAttributeScaling_factor(java.lang.Number scaling_factor)
        Parameters:
        scaling_factor - the scaling_factor
      • getValue

        IDataset getValue()
        Array of logged value, such as temperature. If this is a single value the dimensionality is nEntries. However, NXlog can also be used to store multi dimensional time stamped data such as images. In this example the dimensionality of values would be value[nEntries,xdim,ydim].

        Units: NX_ANY Type: NX_NUMBER

        Returns:
        the value.
      • setValue

        DataNode setValue(IDataset value)
        Array of logged value, such as temperature. If this is a single value the dimensionality is nEntries. However, NXlog can also be used to store multi dimensional time stamped data such as images. In this example the dimensionality of values would be value[nEntries,xdim,ydim].

        Units: NX_ANY Type: NX_NUMBER

        Parameters:
        value - the value
      • getValueScalar

        java.lang.Number getValueScalar()
        Array of logged value, such as temperature. If this is a single value the dimensionality is nEntries. However, NXlog can also be used to store multi dimensional time stamped data such as images. In this example the dimensionality of values would be value[nEntries,xdim,ydim].

        Units: NX_ANY Type: NX_NUMBER

        Returns:
        the value.
      • setValueScalar

        DataNode setValueScalar(java.lang.Number value)
        Array of logged value, such as temperature. If this is a single value the dimensionality is nEntries. However, NXlog can also be used to store multi dimensional time stamped data such as images. In this example the dimensionality of values would be value[nEntries,xdim,ydim].

        Units: NX_ANY Type: NX_NUMBER

        Parameters:
        value - the value
      • getRaw_value

        IDataset getRaw_value()
        Array of raw information, such as thermocouple voltage

        Units: NX_ANY Type: NX_NUMBER

        Returns:
        the value.
      • setRaw_value

        DataNode setRaw_value(IDataset raw_value)
        Array of raw information, such as thermocouple voltage

        Units: NX_ANY Type: NX_NUMBER

        Parameters:
        raw_value - the raw_value
      • getRaw_valueScalar

        java.lang.Number getRaw_valueScalar()
        Array of raw information, such as thermocouple voltage

        Units: NX_ANY Type: NX_NUMBER

        Returns:
        the value.
      • setRaw_valueScalar

        DataNode setRaw_valueScalar(java.lang.Number raw_value)
        Array of raw information, such as thermocouple voltage

        Units: NX_ANY Type: NX_NUMBER

        Parameters:
        raw_value - the raw_value
      • getDescription

        IDataset getDescription()
        Description of logged value
        Returns:
        the value.
      • setDescription

        DataNode setDescription(IDataset description)
        Description of logged value
        Parameters:
        description - the description
      • getDescriptionScalar

        java.lang.String getDescriptionScalar()
        Description of logged value
        Returns:
        the value.
      • setDescriptionScalar

        DataNode setDescriptionScalar(java.lang.String description)
        Description of logged value
        Parameters:
        description - the description
      • getAverage_value

        IDataset getAverage_value()

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setAverage_value

        DataNode setAverage_value(IDataset average_value)

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        average_value - the average_value
      • getAverage_valueScalar

        java.lang.Double getAverage_valueScalar()

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setAverage_valueScalar

        DataNode setAverage_valueScalar(java.lang.Double average_value)

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        average_value - the average_value
      • getAverage_value_error

        IDataset getAverage_value_error()
        estimated uncertainty (often used: standard deviation) of average_value

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setAverage_value_error

        DataNode setAverage_value_error(IDataset average_value_error)
        estimated uncertainty (often used: standard deviation) of average_value

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        average_value_error - the average_value_error
      • getAverage_value_errorScalar

        java.lang.Double getAverage_value_errorScalar()
        estimated uncertainty (often used: standard deviation) of average_value

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setAverage_value_errorScalar

        DataNode setAverage_value_errorScalar(java.lang.Double average_value_error)
        estimated uncertainty (often used: standard deviation) of average_value

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        average_value_error - the average_value_error
      • getMinimum_value

        IDataset getMinimum_value()

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setMinimum_value

        DataNode setMinimum_value(IDataset minimum_value)

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        minimum_value - the minimum_value
      • getMinimum_valueScalar

        java.lang.Double getMinimum_valueScalar()

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setMinimum_valueScalar

        DataNode setMinimum_valueScalar(java.lang.Double minimum_value)

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        minimum_value - the minimum_value
      • getMaximum_value

        IDataset getMaximum_value()

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setMaximum_value

        DataNode setMaximum_value(IDataset maximum_value)

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        maximum_value - the maximum_value
      • getMaximum_valueScalar

        java.lang.Double getMaximum_valueScalar()

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setMaximum_valueScalar

        DataNode setMaximum_valueScalar(java.lang.Double maximum_value)

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        maximum_value - the maximum_value
      • getDuration

        IDataset getDuration()
        Total time log was taken

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setDuration

        DataNode setDuration(IDataset duration)
        Total time log was taken

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        duration - the duration
      • getDurationScalar

        java.lang.Double getDurationScalar()
        Total time log was taken

        Type: NX_FLOAT Units: NX_ANY

        Returns:
        the value.
      • setDurationScalar

        DataNode setDurationScalar(java.lang.Double duration)
        Total time log was taken

        Type: NX_FLOAT Units: NX_ANY

        Parameters:
        duration - the duration
      • getCue_timestamp_zero

        IDataset getCue_timestamp_zero()
        Timestamps matching the corresponding cue_index into the time, value pair.

        Type: NX_NUMBER Units: NX_TIME

        Returns:
        the value.
      • setCue_timestamp_zero

        DataNode setCue_timestamp_zero(IDataset cue_timestamp_zero)
        Timestamps matching the corresponding cue_index into the time, value pair.

        Type: NX_NUMBER Units: NX_TIME

        Parameters:
        cue_timestamp_zero - the cue_timestamp_zero
      • getCue_timestamp_zeroScalar

        java.lang.Number getCue_timestamp_zeroScalar()
        Timestamps matching the corresponding cue_index into the time, value pair.

        Type: NX_NUMBER Units: NX_TIME

        Returns:
        the value.
      • setCue_timestamp_zeroScalar

        DataNode setCue_timestamp_zeroScalar(java.lang.Number cue_timestamp_zero)
        Timestamps matching the corresponding cue_index into the time, value pair.

        Type: NX_NUMBER Units: NX_TIME

        Parameters:
        cue_timestamp_zero - the cue_timestamp_zero
      • getCue_timestamp_zeroAttributeStart

        java.util.Date getCue_timestamp_zeroAttributeStart()
        If missing start is assumed to be the same as for "time".
        Returns:
        the value.
      • setCue_timestamp_zeroAttributeStart

        void setCue_timestamp_zeroAttributeStart(java.util.Date start)
        If missing start is assumed to be the same as for "time".
        Parameters:
        start - the start
      • getCue_timestamp_zeroAttributeScaling_factor

        java.lang.Number getCue_timestamp_zeroAttributeScaling_factor()
        If missing start is assumed to be the same as for "time".
        Returns:
        the value.
      • setCue_timestamp_zeroAttributeScaling_factor

        void setCue_timestamp_zeroAttributeScaling_factor(java.lang.Number scaling_factor)
        If missing start is assumed to be the same as for "time".
        Parameters:
        scaling_factor - the scaling_factor
      • getCue_index

        IDataset getCue_index()
        Index into the time, value pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Returns:
        the value.
      • setCue_index

        DataNode setCue_index(IDataset cue_index)
        Index into the time, value pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Parameters:
        cue_index - the cue_index
      • getCue_indexScalar

        java.lang.Long getCue_indexScalar()
        Index into the time, value pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Returns:
        the value.
      • setCue_indexScalar

        DataNode setCue_indexScalar(java.lang.Long cue_index)
        Index into the time, value pair matching the corresponding cue_timestamp.

        Type: NX_INT

        Parameters:
        cue_index - the cue_index




© 2015 - 2024 Weber Informatics LLC | Privacy Policy