/** * Get the 3D vertical coordinate array for this time step. * * @param timeIndex the time index. Ignored if !isTimeDependent(). * @return vertical coordinate array * @throws java.io.IOException problem reading data * @throws ucar.ma2.InvalidRangeException _more_ */ public ArrayDouble.D3 getCoordinateArray(int timeIndex) throws IOException, InvalidRangeException { Array etaArray = readArray(etaVar, timeIndex); Array sArray = readArray(sVar, timeIndex); Array depthArray = readArray(depthVar, timeIndex); Array cArray = readArray(cVar, timeIndex); depth_c = depthCVar.readScalarDouble(); return makeHeight(etaArray, sArray, depthArray, cArray, depth_c); }
/** * Get the 3D vertical coordinate array for this time step. * * @param timeIndex the time index. Ignored if !isTimeDependent(). * @return vertical coordinate array * @throws java.io.IOException problem reading data * @throws ucar.ma2.InvalidRangeException _more_ */ public ArrayDouble.D3 getCoordinateArray(int timeIndex) throws IOException, InvalidRangeException { Array etaArray = readArray(etaVar, timeIndex); Array sArray = readArray(sVar, timeIndex); Array depthArray = readArray(depthVar, timeIndex); Array cArray = readArray(cVar, timeIndex); depth_c = depthCVar.readScalarDouble(); return makeHeight(etaArray, sArray, depthArray, cArray, depth_c); }
/** * Get the 3D vertical coordinate array for this time step. * * @param timeIndex the time index. Ignored if !isTimeDependent(). * @return vertical coordinate array * @throws java.io.IOException problem reading data * @throws ucar.ma2.InvalidRangeException _more_ */ public ArrayDouble.D3 getCoordinateArray(int timeIndex) throws IOException, InvalidRangeException { Array etaArray = readArray(etaVar, timeIndex); Array sArray = readArray(sVar, timeIndex); Array depthArray = readArray(depthVar, timeIndex); Array cArray = readArray(cVar, timeIndex); depth_c = depthCVar.readScalarDouble(); return makeHeight(etaArray, sArray, depthArray, cArray, depth_c); }