public class CoordinateAxis2D extends CoordinateAxis
CoordinateAxis.AxisComparatorVariable.CacheaxisSizeToCache, axisType, boundaryRef, isContiguous, ncd, positiveorgDataType, orgName, orgVarattributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isMetadata, isVariableLength, ncfile, permitCaching, proxyReader, shape, shapeAsSection, sizeToCache, spiObjectannotations, 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() |
int |
findTimeIndexFromCalendarDate(int run_idx,
CalendarDate want) |
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 |
getEdges() |
ArrayDouble.D2 |
getXEdges()
Deprecated.
use getEdges()
|
ArrayDouble.D2 |
getYEdges()
Deprecated.
use getEdges()
|
boolean |
isInterval()
An interval coordinate consists of two numbers, bound1 and bound2.
|
static ArrayDouble.D2 |
makeEdges(ArrayDouble.D2 midpoints)
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 |
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, isIndependentCoordinate, isNumeric, setAxisType, setBoundaryRef, setPositive_read, _read, addCoordinateSystem, addEnhancement, applyScaleOffset, applyScaleOffset, clearCoordinateSystems, convert, convertMissing, convertMissing, convertUnsigned, convertUnsigned, enhance, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasCachedDataRecurse, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, readToStream, reallyRead, reallyRead, removeCoordinateSystem, removeEnhancement, setCaching, setFillValueIsMissing, setInvalidDataIsMissing, setMissingDataIsMissing, setName, setOriginalVariable, setUnitsString, showScaleMissingProxy, toStringDebugaddAll, addAttribute, compareTo, createNewCache, extraInfo, findAttribute, findAttributeIgnoreCase, findAttValueIgnoreCase, findDimensionIndex, getAttributeContainer, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getShapeNotScalar, getSize, getSizeToCache, getSPobject, hasCachedData, hashCodeShow, invalidateCache, isCaching, isCoordinateVariable, isImmutable, isMetadata, isScalar, isUnknownLength, isUnlimited, 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, setValues, setValues, slice, toString, writeCDL, writeCDLannotate, annotation, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrapclone, finalize, getClass, notify, notifyAll, wait, wait, waitfindAttribute, findAttributeIgnoreCase, findDimensionIndex, getAttributes, getDataType, getDimension, getDimensions, getDimensionsAll, getElementSize, getEnumTypedef, getFullName, getFullNameEscaped, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShapeAsSection, getShortName, getSize, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isVariableLength, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, sectiongetNamecompareTogetNamepublic CoordinateAxis2D(NetcdfDataset ncd, VariableDS vds)
ncd - the containing datasetvds - create it from hereprotected Variable copy()
copy in class CoordinateAxispublic double getCoordValue(int j,
int i)
i - index 0 (fastest varying, right-most)j - index 1public boolean isInterval()
CoordinateAxisisInterval in class CoordinateAxispublic double[] getCoordValues()
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 getEdges()
public ArrayDouble.D2 getXEdges()
public ArrayDouble.D2 getYEdges()
public static ArrayDouble.D2 makeEdges(ArrayDouble.D2 midpoints)
midpoints - values of midpoints with shape (ny, nx)public 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()
public int findTimeIndexFromCalendarDate(int run_idx,
CalendarDate want)
throws IOException,
InvalidRangeException
IOExceptionInvalidRangeException