Class VerticalTransformImpl

    • Field Detail

      • units

        protected String units
    • Constructor Detail

      • VerticalTransformImpl

        public VerticalTransformImpl​(Dimension timeDim)
        Construct a VerticalCoordinate
        Parameters:
        timeDim - time dimension
    • Method Detail

      • isTimeDependent

        public boolean isTimeDependent()
        Get whether this coordinate is time dependent.
        Specified by:
        isTimeDependent in interface VerticalTransform
        Returns:
        true if time dependent
      • getTimeDimension

        protected Dimension getTimeDimension()
        Get the time Dimension
        Returns:
        time Dimension
      • readArray

        protected Array readArray​(Variable v,
                                  int timeIndex)
                           throws IOException,
                                  InvalidRangeException
        Read the data Array from the variable, at the specified time index if applicable. If the variable does not have a time dimension, the data array will have the same rank as the Variable. If the variable has a time dimension, the data array will have rank-1.
        Parameters:
        v - variable to read
        timeIndex - time index, ignored if !isTimeDependent()
        Returns:
        Array from the variable at that time index
        Throws:
        IOException - problem reading data
        InvalidRangeException - _more_
      • subset

        public VerticalTransform subset​(Range t_range,
                                        Range z_range,
                                        Range y_range,
                                        Range x_range)
        Create a subset of this VerticalTransform.
        Specified by:
        subset in interface VerticalTransform
        Parameters:
        t_range - subset the time dimension, or null if you want all of it
        z_range - subset the vertical dimension, or null if you want all of it
        y_range - subset the y dimension, or null if you want all of it
        x_range - subset the x dimension, or null if you want all of it
        Returns:
        the subsetted VerticalTransform
      • getParameterBooleanValue

        protected boolean getParameterBooleanValue​(List<Parameter> params,
                                                   String name)