Package ucar.nc2

Class Sequence

    • Method Detail

      • section

        public Variable section​(Section subsection)
        Description copied from class: Variable
        Create a new Variable that is a logical subsection of this Variable. No data is read until a read method is called on it.
        Overrides:
        section in class Variable
        Parameters:
        subsection - Section of this variable. Each Range in the section corresponds to a Dimension, and specifies the section of data to read in that Dimension. A Range object may be null, which means use the entire dimension.
        Returns:
        a new Variable which is a logical section of this Variable.
        Throws:
        UnsupportedOperationException - always
      • slice

        public Variable slice​(int dim,
                              int value)
        Description copied from class: Variable
        Create a new Variable that is a logical slice of this Variable, by fixing the specified dimension at the specified index value. This reduces rank by 1. No data is read until a read method is called on it.
        Overrides:
        slice in class Variable
        Parameters:
        dim - which dimension to fix
        value - at what index value
        Returns:
        a new Variable which is a logical slice of this Variable.
        Throws:
        UnsupportedOperationException - always
      • builder

        public static Sequence.Builder<?> builder()
        Get Builder for this class that allows subclassing.
        See Also:
        "https://community.oracle.com/blogs/emcmanus/2010/10/24/using-builder-pattern-subclasses"