/** * _more_ * * @return _more_ */ public float getGateSize() { try { return getRadialDistance(1) - getRadialDistance(0); } catch (IOException e) { e.printStackTrace(); return 0.0f; } }
/** * _more_ * * @return _more_ */ public float getMeanAzimuth() { if (Double.isNaN(meanAzimuth)) { setMeanAzimuth(); } return (float) meanAzimuth; }
/** * _more_ * * @return _more_ */ public float getMeanElevation() { if (Double.isNaN(meanElevation)) { setMeanElevation(); } return (float) meanElevation; }
/** * _more_ * * @param nds _more_ * @param v _more_ * @param v0 _more_ */ private CFRadial2Variable(NetcdfDataset nds, VariableSimpleIF v, Variable v0) { super(v.getShortName(), v0.getAttributes()); sweeps = new ArrayList(); name = v.getShortName(); int[] shape = v0.getShape(); int count = v0.getRank() - 1; int ngates = shape[count]; count--; int nrays = shape[count]; for (int i = 0; i < nsweeps; i++) { sweeps.add(new CFRadial2Sweep(v0, i, nrays, ngates, rayStartIdx[i], rayEndIdx[i])); } }
/** * _more_ * * @param nds _more_ * @param v0 _more_ */ private CFRadial2Variable(NetcdfDataset nds, Variable v0) { super(v0.getShortName(), v0.getAttributes()); sweeps = new ArrayList<>(); name = v0.getShortName(); int[] shape = v0.getShape(); int ngates = shape[v0.getRank() - 1]; flattened = v0.findDimensionIndex("n_points") == 0; for (int i = 0; i < nsweeps; i++) { // For flattened (1D stored data) find max number of gates if (flattened) { ngates = ray_n_gates[rayStartIdx[i]]; for (int ray = rayStartIdx[i]; ray <= rayEndIdx[i]; ++ray) ngates = ray_n_gates[ray] > ngates ? ray_n_gates[ray] : ngates; } sweeps.add(new CFRadial2Sweep(v0, i, ngates, rayStartIdx[i], rayEndIdx[i])); } }
/** * _more_ * * @return _more_ */ public float getGateSize() { try { return getRadialDistance(1) - getRadialDistance(0); } catch (IOException e) { e.printStackTrace(); return 0.0f; } }
/** * _more_ * * @return _more_ */ public float getRangeToFirstGate() { try { return getRadialDistance(0); } catch (IOException e) { e.printStackTrace(); return 0.0f; } }
/** * _more_ * * @return _more_ */ public float getRangeToFirstGate() { try { return getRadialDistance(0); } catch (IOException e) { e.printStackTrace(); return 0.0f; } }
/** * _more_ * * @return _more_ * * @throws java.io.IOException _more_ */ public float[] readData() throws java.io.IOException { return sweepData(); }
/** * Return data for 1 ray * * @param ray _more_ * @return _more_ * @throws java.io.IOException _more_ */ public float[] readData(int ray) throws java.io.IOException { return rayData(ray); }
/** * _more_ * * @return _more_ * @throws java.io.IOException _more_ */ public float[] readData() throws java.io.IOException { return sweepData(); }
/** * _more_ * * @param ray _more_ * * @return _more_ * * @throws java.io.IOException _more_ */ public float[] readData(int ray) throws java.io.IOException { return rayData(ray); }
/** * _more_ * * @return _more_ */ public float getMeanElevation() { if (Double.isNaN(meanElevation)) { setMeanElevation(); } return (float) meanElevation; }
/** * _more_ * * @return _more_ */ public float getMeanAzimuth() { if (Double.isNaN(meanAzimuth)) { setMeanAzimuth(); } return (float) meanAzimuth; }