origin[2] = xIndex; Array section = data.section(origin, shape);
origin[2] = xIndex; Array section = data.section(origin, shape);
origin[2] = xIndex; Array section = data.section(origin, shape);
shape[2] =1; Array tmp = data.section(origin, shape); result = (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_ */ 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_ */ 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_ */ 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(); }
/** * 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(); }