cdm/src/main/java/ucar/unidata/geoloc/vertical/WRFEta.java
public D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex)
  		throws IOException, InvalidRangeException {
	  

	  ArrayDouble.D3 data = getCoordinateArray(timeIndex);
	  
	  int[] origin = new int[3];
	  int[] shape = new int[3];
	  
	  origin[0]=0;
	  origin[1]=yIndex;
	  origin[2]=xIndex;
	  
	  shape[0] = data.getShape()[0];
	  shape[1] =1;
	  shape[2] =1;
	  
	  Array tmp = data.section(origin, shape);
    return (ArrayDouble.D1)tmp.reduce();
  }
public D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex)
  		throws IOException, InvalidRangeException {
	  

	  ArrayDouble.D3 data = getCoordinateArray(timeIndex);
	  
	  int[] origin = new int[3];
	  int[] shape = new int[3];
	  
	  origin[0]=0;
	  origin[1]=yIndex;
	  origin[2]=xIndex;
	  
	  shape[0] = data.getShape()[0];
	  shape[1] =1;
	  shape[2] =1;
	  
	  Array tmp = data.section(origin, shape);
    return (ArrayDouble.D1)tmp.reduce();
  }
public D1 getCoordinateArray1D ( int timeIndex , int xIndex , int yIndex ) throws IOException , InvalidRangeException { ArrayDouble . D3 data = getCoordinateArray ( timeIndex ) ; int [ ] origin = new int [ 3 ] ; int [ ] shape = new int [ 3 ] ; origin [ 0 ] = 0 ; origin [ 1 ] = yIndex ; origin [ 2 ] = xIndex ; shape [ 0 ] = data . getShape ( ) [ 0 ] ; shape [ 1 ] = 1 ; shape [ 2 ] = 1 ; Array tmp = data . section ( origin , shape ) ; return ( ArrayDouble . D1 ) tmp . reduce ( ) ; }
Get the 1D vertical coordinate array for this time step and point

@param timeIndex the time index. Ignored if !isTimeDependent().
@param xIndex    the x index
@param yIndex    the y index
@return vertical coordinate array
@throws java.io.IOException problem reading data
@throws ucar.ma2.InvalidRangeException _more_
Get the 1D vertical coordinate array for this time step and point