public float getGateSize() { try { if (Double.isNaN(gateSize)) gateSize = getRadialDistance(1) - getRadialDistance(0); return (float) gateSize; } catch (IOException e) { e.printStackTrace(); return 0.0f; } }
public float getMeanAzimuth() { if (Double.isNaN(meanAzimuth)) setMeanAzimuth(); return (float) meanAzimuth; }
public float getMeanElevation() { if (Double.isNaN(meanElevation)) setMeanElevation(); return (float) meanElevation; }
private void setMeanAzimuth() { if (getType() != null) { Array spData = null; try { Variable sp = ds.findVariable("azimuth"); spData = sp.read(); sp.setCachedData(spData, false); } catch (IOException e) { e.printStackTrace(); meanAzimuth = 0.0; } meanAzimuth = MAMath.sumDouble(spData) / spData.getSize(); } else meanAzimuth = 0.0; }
private void setMeanAzimuth() { if (getType() != null) { Array spData = null; try { Variable sp = ds.findVariable("azimuth"); spData = sp.read(); sp.setCachedData(spData, false); } catch (IOException e) { e.printStackTrace(); meanAzimuth = 0.0; } meanAzimuth = MAMath.sumDouble(spData) / spData.getSize(); } else meanAzimuth = 0.0; }
private Nids2Variable(NetcdfDataset nds, VariableSimpleIF v, Variable v0) { super(v.getShortName(), v0.getAttributes()); sweeps = new ArrayList(); nsweeps = 0; name = v.getShortName(); int[] shape = v0.getShape(); int count = v0.getRank() - 1; int ngates = shape[count]; count--; int nrays = shape[count]; count--; sweeps.add(new Nids2Sweep(nds, v0, 0, nrays, ngates)); //sweep = new Sweep[nsweeps]; }
public float getGateSize() { try { if (Double.isNaN(gateSize)) gateSize = getRadialDistance(1) - getRadialDistance(0); return (float) gateSize; } catch (IOException e) { e.printStackTrace(); return 0.0f; } }
private Nids2Variable(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]; count--; sweeps.add(new Nids2Sweep(nds, v0, 0, nrays, ngates)); //sweep = new Sweep[nsweeps]; }
public float getMeanElevation() { if (Double.isNaN(meanElevation)) setMeanElevation(); return (float) meanElevation; }
public float getMeanAzimuth() { if (Double.isNaN(meanAzimuth)) setMeanAzimuth(); return (float) meanAzimuth; }