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
Constructor and Description |
---|
CoordinateAxis2D(NetcdfDataset ncd,
VariableDS vds)
Deprecated.
Use CoordinateAxis2D.builder()
|
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() |
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.
|
CoordinateAxis2D.Builder<?> |
toBuilder()
Turn into a mutable Builder.
|
copyNoCache, equals, factory, fromVariableDS, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getMaxValue, getMinValue, getPositive, getUnitsString, hashCode, isContiguous, isIndependentCoordinate, isNumeric, setAxisType, setBoundaryRef, setPositive
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, toStringDebug
addAll, addAttribute, attributes, compareTo, createNewCache, findAttribute, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, findAttValueIgnoreCase, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getProxyReader, getRanges, getRank, getShape, getShape, getShapeAll, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, 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
annotate, annotation, getDODSName, getFullName, getFullNameEscaped, getGroup, getImmutable, getName, getParentStructure, getShortName, getSort, isMemberOfStructure, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrap
getFullName, getShortName
getFullName, getName, getShortName
getName, hasAttribute, iterator
forEach, spliterator
@Deprecated public CoordinateAxis2D(NetcdfDataset ncd, VariableDS vds)
ncd
- the containing datasetvds
- create it from herepublic 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()
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)
public CoordinateAxis2D.Builder<?> toBuilder()
Variable
toBuilder
in class CoordinateAxis
public static CoordinateAxis2D.Builder<?> builder()