public class CoordinateAxis extends VariableDS
Mathematically it is a scalar function F from index space to S: F:D -> S where D is a product set of dimensions (aka index space), and S is the set of reals (R) or Strings.If its element type is CHAR, it is considered a string-valued Coordinate Axis and rank is reduced by one, since the outermost dimension is considered the string length: v(i, j, .., strlen). If its element type is String, it is a string-valued Coordinate Axis. Otherwise it is numeric-valued, and isNumeric() is true. A CoordinateAxis is optionally marked as georeferencing with an AxisType. It should have a units string and optionally a description string. A Structure cannot be a CoordinateAxis, although members of Structures can. TODO make Immutable in ver7
| Modifier and Type | Class and Description |
|---|---|
static class |
CoordinateAxis.AxisComparator |
static class |
CoordinateAxis.Builder<T extends CoordinateAxis.Builder<T>> |
Variable.Cache| Modifier and Type | Field and Description |
|---|---|
protected AxisType |
axisType |
protected String |
boundaryRef |
protected boolean |
isContiguous |
protected NetcdfDataset |
ncd |
protected String |
positive |
orgDataType, orgName, orgVarattributes, cache, dataType, dimensions, elementSize, hashCode, isVariableLength, ncfile, permitCaching, proxyReader, shape, spiObject| Modifier | Constructor and Description |
|---|---|
protected |
CoordinateAxis(CoordinateAxis.Builder<?> builder,
Group parentGroup) |
| Modifier and Type | Method and Description |
|---|---|
protected CoordinateAxis.Builder<?> |
addLocalFieldsToBuilder(CoordinateAxis.Builder<? extends CoordinateAxis.Builder<?>> b) |
static CoordinateAxis.Builder<?> |
builder()
Get a Builder of CoordinateAxis
|
boolean |
equals(Object oo)
Instances which have same content are equal.
|
static CoordinateAxis.Builder<?> |
fromVariableDS(VariableDS.Builder<?> vdsBuilder)
Create a coordinate axis from an existing VariableDS.Builder.
|
AxisType |
getAxisType()
Get type of axis
|
String |
getBoundaryRef()
Deprecated.
do not use.
|
Calendar |
getCalendarFromAttribute()
Figure out what calendar to use from the axis' attributes.
|
static Calendar |
getCalendarFromAttribute(NetcdfDataset ncd,
AttributeContainer attributes)
Figure out what calendar to use from the given attributes.
|
void |
getInfo(Formatter buf)
Get a string representation
|
double |
getMaxValue()
Deprecated.
use GridAxis1D.getMaxValue()
|
double |
getMinValue()
Deprecated.
use GridAxis1D.getMinValue()
|
String |
getPositive()
Deprecated.
use GridCoordSys.getPositive()
|
String |
getUnitsString()
Get the Unit String for the Variable.
|
int |
hashCode()
Override Object.hashCode() to implement equals.
|
boolean |
isContiguous()
Deprecated.
use GridAxis1D.isContiguous()
|
boolean |
isIndependentCoordinate()
Deprecated.
use NetcdfDataset.isIndependentCoordinate(CoordinateAxis)
|
boolean |
isInterval()
Deprecated.
use GridAxis1D.isInterval()
|
boolean |
isNumeric()
Does the axis have numeric values?
|
CoordinateAxis.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
_read, _read, addLocalFieldsToBuilder, applyScaleOffset, applyScaleOffset, convert, convertArray, convertMissing, convertMissing, convertNeeded, convertUnsigned, convertUnsigned, fromVar, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalArrayType, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, proxyReadArray, proxyReadArray, readArray, readArray, readToStream, reallyRead, reallyRead, setCaching, showScaleMissingProxy, toString, toStringDebug_readScalarData, addLocalFieldsToBuilder, attributes, compareTo, extraInfo, findAttribute, findAttributeString, findDimensionIndex, getArrayType, getDataType, getDimension, getDimensions, getDimensionSet, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getSection, getShape, getShape, getShapeAsSection, getShortName, getSize, getSizeToCache, getSPobject, hasCachedData, invalidateCache, isCaching, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isVariableLength, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, reduce, resetShape, section, section, setCachedData, slice, writeCDLclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetFullName, getParentGroup, getShortNameprotected final NetcdfDataset ncd
protected final AxisType axisType
protected final String positive
protected final String boundaryRef
protected boolean isContiguous
protected CoordinateAxis(CoordinateAxis.Builder<?> builder, Group parentGroup)
public static CoordinateAxis.Builder<?> fromVariableDS(VariableDS.Builder<?> vdsBuilder)
vdsBuilder - an existing Variable in dataset.public String getUnitsString()
VariablegetUnitsString in interface VariableEnhancedgetUnitsString in interface VariableSimpleIFgetUnitsString in class VariableDSpublic boolean isNumeric()
@Deprecated public boolean isContiguous()
@Deprecated public boolean isInterval()
@Deprecated public boolean isIndependentCoordinate()
@Deprecated public String getPositive()
@Deprecated public String getBoundaryRef()
@Deprecated public double getMinValue()
@Deprecated public double getMaxValue()
public void getInfo(Formatter buf)
buf - place info herepublic boolean equals(Object oo)
public int hashCode()
public Calendar getCalendarFromAttribute()
public static Calendar getCalendarFromAttribute(@Nullable NetcdfDataset ncd, AttributeContainer attributes)
public CoordinateAxis.Builder<?> toBuilder()
VariabletoBuilder in class VariableDSprotected CoordinateAxis.Builder<?> addLocalFieldsToBuilder(CoordinateAxis.Builder<? extends CoordinateAxis.Builder<?>> b)
public static CoordinateAxis.Builder<?> builder()