if (getDataType() != DataType.DOUBLE) cachedData = MAMath.convert(cachedData, getDataType()); setCachedData(cachedData);
if (getDataType() != DataType.DOUBLE) cachedData = MAMath.convert(cachedData, getDataType()); setCachedData(cachedData);
final DataType dataType = coordinateAxis.getDataType();
if (getDataType() != DataType.DOUBLE) cachedData = MAMath.convert(cachedData, getDataType()); setCachedData(cachedData); } else if (getDataType() == DataType.STRING) { readStringValues(); wasRead = true;
@Override public CoordinateAxis copyNoCache() { CoordinateAxis1D axis = new CoordinateAxis1D(ncd, getParentGroup(), getShortName(), getDataType(), getDimensionsString(), getUnitsString(), getDescription()); // other state axis.axisType = this.axisType; axis.boundaryRef = this.boundaryRef; axis.isContiguous = this.isContiguous; axis.positive = this.positive; axis.cache = new Variable.Cache(); // decouple cache return axis; }
@Override public CoordinateAxis copyNoCache() { CoordinateAxis1D axis = new CoordinateAxis1D(ncd, getParentGroup(), getShortName(), getDataType(), getDimensionsString(), getUnitsString(), getDescription()); // other state axis.axisType = this.axisType; axis.boundaryRef = this.boundaryRef; axis.isContiguous = this.isContiguous; axis.positive = this.positive; axis.cache = new Variable.Cache(); // decouple cache return axis; }
@Override public CoordinateAxis copyNoCache() { CoordinateAxis1D axis = new CoordinateAxis1D(ncd, getParentGroup(), getShortName(), getDataType(), getDimensionsString(), getUnitsString(), getDescription()); // other state axis.axisType = this.axisType; axis.boundaryRef = this.boundaryRef; axis.isContiguous = this.isContiguous; axis.positive = this.positive; axis.cache = new Variable.Cache(); // decouple cache return axis; }
private void doRead() { if (isNumeric()) { readValues(); wasRead = true; if (getSize() < 2) isAscending = true; else isAscending = getCoordValue(0) < getCoordValue(1); // calcIsRegular(); */ } else if (getDataType() == DataType.STRING) { readStringValues(); wasRead = true; } else { readCharValues(); wasRead = true; } }
private void doRead() { if (isNumeric()) { readValues(); wasRead = true; if (getSize() < 2) isAscending = true; else isAscending = getCoordValue(0) < getCoordValue(1); // calcIsRegular(); */ } else if (getDataType() == DataType.STRING) { readStringValues(); wasRead = true; } else { readCharValues(); wasRead = true; } }