public class CoordinateAxis2D extends CoordinateAxis
CoordinateAxis.AxisComparator
Variable.Cache
axisSizeToCache, axisType, boundaryRef, isContiguous, ncd, positive
orgDataType, orgName, orgVar
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isMetadata, isVariableLength, ncfile, permitCaching, proxyReader, shape, shapeAsSection, sizeToCache, spiObject
annotations, dodsname, group, immutable, parentstruct, shortName, sort
Constructor and Description |
---|
CoordinateAxis2D(NetcdfDataset ncd,
VariableDS vds)
Create a 2D coordinate axis from an existing VariableDS
|
Modifier and Type | Method and Description |
---|---|
protected Variable |
copy() |
ArrayDouble.D3 |
getCoordBoundsArray()
Only call if isInterval()
|
CoordinateAxisTimeHelper |
getCoordinateAxisTimeHelper() |
double |
getCoordValue(int j,
int i)
Get the coordinate value at the i, j index.
|
double[] |
getCoordValues()
Get the coordinate values as a 1D double array, in canonical order.
|
ArrayDouble.D2 |
getCoordValuesArray() |
ArrayDouble.D2 |
getMidpoints()
Deprecated.
use getCoordValuesArray
|
ArrayDouble.D2 |
getXEdges() |
ArrayDouble.D2 |
getYEdges() |
boolean |
isInterval()
An interval coordinate consists of two numbers, bound1 and bound2.
|
static ArrayDouble.D2 |
makeXEdges(ArrayDouble.D2 midx)
Normal case: do something reasonable in deciding on the edges when we have the midpoints of a 2D coordinate.
|
static ArrayDouble.D2 |
makeXEdgesRotated(ArrayDouble.D2 midx)
Experimental: for WRF rotated (NMM "E") Grids
|
static ArrayDouble.D2 |
makeYEdges(ArrayDouble.D2 midy)
Normal case: do something reasonable in deciding on the edges when we have the midpoints of a 2D coordinate.
|
static ArrayDouble.D2 |
makeYEdgesRotated(ArrayDouble.D2 midy)
Experimental: for WRF rotated (NMM "E") Grids
|
CoordinateAxis2D |
section(Range r1,
Range r2)
Create a new CoordinateAxis2D as a section of this CoordinateAxis2D.
|
copyNoCache, equals, factory, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getMaxValue, getMinValue, getPositive, getUnitsString, hashCode, isContiguous, isCoordinateVariable, isNumeric, setAxisType, setBoundaryRef, setPositive
_read, _read, addCoordinateSystem, clearCoordinateSystems, convertEnums, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, convertScaleOffsetMissing, enhance, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getMissingDataArray, getOriginalDataType, getOriginalName, getOriginalVariable, getUseNaNs, getValidMax, getValidMin, hasCachedDataRecurse, hasFillValue, hasInvalidData, hasMissing, hasMissingValue, hasScaleOffset, isFillValue, isInvalidData, isMissing, isMissingFast, isMissingValue, lookupEnumString, readToStream, reallyRead, reallyRead, removeCoordinateSystem, setCaching, setFillValueIsMissing, setInvalidDataIsMissing, setMissingDataIsMissing, setName, setOriginalVariable, setUnitsString, setUseNaNs, showScaleMissingProxy, toStringDebug
addAll, addAttribute, compareTo, createNewCache, extraInfo, findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNetcdfFile, getParentGroup, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getShapeNotScalar, getSize, getSizeToCache, getSPobject, hasCachedData, hashCodeShow, invalidateCache, isCaching, isImmutable, isMetadata, isScalar, isUnknownLength, isUnlimited, isUnsigned, isVariableLength, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, readToByteChannel, reduce, remove, removeAttribute, removeAttributeIgnoreCase, resetDimensions, resetShape, section, section, setCachedData, setCachedData, setDataType, setDimension, setDimensions, setDimensions, setDimensionsAnonymous, setElementSize, setEnumTypedef, setImmutable, setIsScalar, setParentGroup, setProxyReader, setSizeToCache, setSPobject, setUnsigned, setValues, setValues, slice, toString, writeCDL, writeCDL
annotate, getAnnotation, getAnnotations, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setImmutable, setParentStructure, setShortName, setSort, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
findAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getEnumTypedef, getFullName, getFullNameEscaped, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShapeAsSection, getShortName, getSize, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isUnsigned, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, section
getName
public CoordinateAxis2D(NetcdfDataset ncd, VariableDS vds)
ncd
- the containing datasetvds
- create it from hereprotected Variable copy()
copy
in class CoordinateAxis
public double getCoordValue(int j, int i)
i
- index 0 (fastest varying, right-most)j
- index 1public boolean isInterval()
CoordinateAxis
isInterval
in class CoordinateAxis
public double[] getCoordValues()
java.lang.UnsupportedOperationException
- if !isNumeric()public CoordinateAxis2D section(Range r1, Range r2) throws InvalidRangeException
r1
- the section on the first indexr2
- the section on the second indexInvalidRangeException
- if specified Ranges are invalidpublic ArrayDouble.D2 getCoordValuesArray()
public ArrayDouble.D3 getCoordBoundsArray()
public ArrayDouble.D2 getMidpoints()
public ArrayDouble.D2 getXEdges()
public ArrayDouble.D2 getYEdges()
public static ArrayDouble.D2 makeXEdges(ArrayDouble.D2 midx)
midx
- x coordinates of midpointspublic static ArrayDouble.D2 makeYEdges(ArrayDouble.D2 midy)
midy
- y coordinates of midpointspublic static ArrayDouble.D2 makeXEdgesRotated(ArrayDouble.D2 midx)
midx
- x coordinates of midpointspublic static ArrayDouble.D2 makeYEdgesRotated(ArrayDouble.D2 midy)
midy
- y coordinates of midpointspublic CoordinateAxisTimeHelper getCoordinateAxisTimeHelper()