/** * 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_ */ public D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) throws IOException, InvalidRangeException { ArrayDouble.D3 ddata = getCoordinateArray(timeIndex); int[] origin = new int[]{0, yIndex, xIndex }; int[] shape = new int[]{ ddata.getShape()[0] , 1, 1 }; return (ArrayDouble.D1)ddata.section(origin, shape).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_ */ public D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) throws IOException, InvalidRangeException { ArrayDouble.D3 ddata = getCoordinateArray(timeIndex); int[] origin = new int[]{0, yIndex, xIndex }; int[] shape = new int[]{ ddata.getShape()[0] , 1, 1 }; return (ArrayDouble.D1)ddata.section(origin, shape).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_ */ public D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) throws IOException, InvalidRangeException { ArrayDouble.D3 ddata = (ArrayDouble.D3) getCoordinateArray(timeIndex); int[] origin = new int[]{0, yIndex, xIndex }; int[] shape = new int[]{ ddata.getShape()[0] , 1, 1 }; return (ArrayDouble.D1)ddata.section(origin, shape).reduce(); }