/** * 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 1D vertical coordinate array for this time step and * the specified X,Y index for Lat-Lon 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 ArrayDouble.D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) 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 makeHeight1D(etaArray, sArray, depthArray, cArray, depth_c, xIndex, yIndex); }
public ucar.unidata.geoloc.vertical.VerticalTransform makeMathTransform(NetcdfDataset ds, Dimension timeDim, VerticalCT vCT) { return new OceanSG1(ds, timeDim, vCT.getParameters()); } }
/** * Create a new vertical transform for Ocean_S_coordinate_g1 * * @param ds dataset * @param timeDim time dimension * @param params list of transformation Parameters */ public OceanSG1(NetcdfFile ds, Dimension timeDim, List<Parameter> params) { super(timeDim); String etaName = getParameterStringValue(params, ETA); String sName = getParameterStringValue(params, S); String depthName = getParameterStringValue(params, DEPTH); String depthCName = getParameterStringValue(params, DEPTH_C); String cName = getParameterStringValue(params, C); etaVar = ds.findVariable(etaName); sVar = ds.findVariable(sName); depthVar = ds.findVariable(depthName); depthCVar = ds.findVariable(depthCName); cVar = ds.findVariable(cName); units = ds.findAttValueIgnoreCase(depthVar, CDM.UNITS, "none"); }
public ucar.unidata.geoloc.vertical.VerticalTransform makeMathTransform(NetcdfDataset ds, Dimension timeDim, VerticalCT vCT) { return new OceanSG1(ds, timeDim, vCT.getParameters()); } }
/** * Create a new vertical transform for Ocean_S_coordinate_g1 * * @param ds dataset * @param timeDim time dimension * @param params list of transformation Parameters */ public OceanSG1(NetcdfFile ds, Dimension timeDim, List<Parameter> params) { super(timeDim); String etaName = getParameterStringValue(params, ETA); String sName = getParameterStringValue(params, S); String depthName = getParameterStringValue(params, DEPTH); String depthCName = getParameterStringValue(params, DEPTH_C); String cName = getParameterStringValue(params, C); etaVar = ds.findVariable(etaName); sVar = ds.findVariable(sName); depthVar = ds.findVariable(depthName); depthCVar = ds.findVariable(depthCName); cVar = ds.findVariable(cName); units = ds.findAttValueIgnoreCase(depthVar, CDM.UNITS, "none"); }
/** * 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 1D vertical coordinate array for this time step and * the specified X,Y index for Lat-Lon 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 ArrayDouble.D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) 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 makeHeight1D(etaArray, sArray, depthArray, cArray, depth_c, xIndex, yIndex); }
public ucar.unidata.geoloc.vertical.VerticalTransform makeMathTransform(NetcdfDataset ds, Dimension timeDim, VerticalCT vCT) { return new OceanSG1(ds, timeDim, vCT.getParameters()); } }
/** * Create a new vertical transform for Ocean_S_coordinate_g1 * * @param ds dataset * @param timeDim time dimension * @param params list of transformation Parameters */ public OceanSG1(NetcdfFile ds, Dimension timeDim, List<Parameter> params) { super(timeDim); String etaName = getParameterStringValue(params, ETA); String sName = getParameterStringValue(params, S); String depthName = getParameterStringValue(params, DEPTH); String depthCName = getParameterStringValue(params, DEPTH_C); String cName = getParameterStringValue(params, C); etaVar = ds.findVariable(etaName); sVar = ds.findVariable(sName); depthVar = ds.findVariable(depthName); depthCVar = ds.findVariable(depthCName); cVar = ds.findVariable(cName); units = ds.findAttValueIgnoreCase(depthVar, CDM.UNITS, "none"); }
/** * 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 1D vertical coordinate array for this time step and * the specified X,Y index for Lat-Lon 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 ArrayDouble.D1 getCoordinateArray1D(int timeIndex, int xIndex, int yIndex) 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 makeHeight1D(etaArray, sArray, depthArray, cArray, depth_c, xIndex, yIndex); }