public class CoordinateAxis2D extends CoordinateAxis
Modifier and Type | Class and Description |
---|---|
static class |
CoordinateAxis2D.Builder<T extends CoordinateAxis2D.Builder<T>> |
CoordinateAxis.AxisComparator
defaultCoordsSizeToCache, defaultSizeToCache, permitCaching
Modifier and Type | Method and Description |
---|---|
static CoordinateAxis2D.Builder<?> |
builder()
Get Builder for this class that allows subclassing.
|
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() |
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.
|
CoordinateAxis2D.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
copyNoCache, equals, fromVariableDS, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getMaxValue, getMinValue, getPositive, getUnitsString, hashCode, isContiguous, isIndependentCoordinate, isNumeric
applyScaleOffset, applyScaleOffset, convert, convertMissing, convertMissing, convertUnsigned, convertUnsigned, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, readToStream, reallyRead, reallyRead, showScaleMissingProxy, toStringDebug
attributes, compareTo, createNewCache, findAttribute, findAttributeString, findDimensionIndex, getDataType, getDimension, getDimensions, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentStructure, getRanges, getRank, getShape, getShape, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, isCaching, isCoordinateVariable, isMemberOfStructure, isMetadata, isScalar, isUnlimited, isVariableLength, read, read, read, read, read, readScalarByte, readScalarDouble, readScalarFloat, readScalarInt, readScalarLong, readScalarShort, readScalarString, reduce, section, section, slice, toString
getFullName, getShortName
addCoordinateSystem, removeCoordinateSystem
getShortName
filter, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, getName, hasAttribute, hasAttributeIgnoreCase, isEmpty, iterator
forEach, spliterator
public static CoordinateAxis2D.Builder<?> builder()
public int findTimeIndexFromCalendarDate(int run_idx, CalendarDate want)
public ArrayDouble.D3 getCoordBoundsArray()
public CoordinateAxisTimeHelper getCoordinateAxisTimeHelper()
public double getCoordValue(int j, int i)
i
- index 0 (fastest varying, right-most)j
- index 1public double[] getCoordValues()
UnsupportedOperationException
- if !isNumeric()public ArrayDouble.D2 getCoordValuesArray()
public ArrayDouble.D2 getEdges()
public boolean isInterval()
CoordinateAxis
isInterval
in class CoordinateAxis
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 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 CoordinateAxis2D.Builder<?> toBuilder()
Variable
toBuilder
in class CoordinateAxis