public class CoordinateAxis2D extends CoordinateAxis
Modifier and Type | Class and Description |
---|---|
static class |
CoordinateAxis2D.Builder<T extends CoordinateAxis2D.Builder<T>> |
CoordinateAxis.AxisComparator
Variable.Cache
axisType, boundaryRef, isContiguous, ncd, positive
orgDataType, orgName, orgVar
attributes, cache, dataType, debugCaching, defaultCoordsSizeToCache, defaultSizeToCache, dimensions, elementSize, hashCode, isVariableLength, ncfile, permitCaching, proxyReader, shape, sizeToCache, spiObject
annotations, dodsname, group, immutable, parentstruct, shortName, sort
Modifier | Constructor and Description |
---|---|
protected |
CoordinateAxis2D(CoordinateAxis2D.Builder<?> builder,
Group parentGroup) |
|
CoordinateAxis2D(NetcdfDataset ncd,
VariableDS vds)
Deprecated.
Use CoordinateAxis2D.builder()
|
Modifier and Type | Method and Description |
---|---|
protected CoordinateAxis2D.Builder<?> |
addLocalFieldsToBuilder(CoordinateAxis2D.Builder<? extends CoordinateAxis2D.Builder<?>> b) |
static CoordinateAxis2D.Builder<?> |
builder()
Get Builder for this class that allows subclassing.
|
protected CoordinateAxis2D |
copy()
Deprecated.
Use
toBuilder() |
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.
|
addLocalFieldsToBuilder, copyNoCache, equals, factory, fromVariableDS, getAxisType, getBoundaryRef, getCalendarFromAttribute, getInfo, getMaxValue, getMinValue, getPositive, getUnitsString, hashCode, isContiguous, isIndependentCoordinate, isNumeric, setAxisType, setBoundaryRef, setPositive
_read, _read, addCoordinateSystem, addEnhancement, addLocalFieldsToBuilder, applyScaleOffset, applyScaleOffset, clearCoordinateSystems, convert, convertMissing, convertMissing, convertUnsigned, convertUnsigned, convertUnsigned, enhance, fillValueIsMissing, getCoordinateSystems, getDatasetLocation, getDescription, getEnhanceMode, getFillValue, getMissingDataArray, getMissingValues, getNetcdfFile, getOffset, getOriginalDataType, getOriginalName, getOriginalVariable, getScaledOffsetType, getScaleFactor, getSignedness, getUnsignedConversionType, getValidMax, getValidMin, hasCachedDataRecurse, hasFillValue, hasMissing, hasMissingValue, hasScaleOffset, hasValidData, invalidDataIsMissing, isFillValue, isInvalidData, isMissing, isMissingValue, lookupEnumString, missingDataIsMissing, readToStream, reallyRead, reallyRead, removeCoordinateSystem, removeEnhancement, setCaching, setFillValueIsMissing, setInvalidDataIsMissing, setMissingDataIsMissing, setName, setOriginalVariable, setUnitsString, showScaleMissingProxy, toStringDebug
_readScalarData, addAll, addAttribute, addLocalFieldsToBuilder, attributes, compareTo, createNewCache, extraInfo, findAttribute, findAttributeDouble, findAttributeIgnoreCase, findAttributeInteger, findAttributeString, findDimensionIndex, getAttributes, getDAPName, getDAPName, getDataType, getDimension, getDimensions, getDimensionsAll, getDimensionsString, getElementSize, getEnumTypedef, getFileTypeId, getFullName, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getNameAndDimensions, getParentGroup, getParentGroupOrRoot, getParentStructure, getProxyReader, getRanges, getRank, getScalarData, getShape, getShape, getShapeAll, getShapeAsSection, getSize, getSizeToCache, getSPobject, hasCachedData, invalidateCache, isCaching, isCoordinateVariable, isEmpty, isImmutable, isMemberOfStructure, 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, writeCDL
annotate, annotation, getDODSName, getFullNameEscaped, getGroup, getImmutable, getName, getShortName, getSort, localhash, setDODSName, setParentStructure, setShortName, setSort, unwrap
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getFullName, getShortName
getName, getShortName
filter, findAttValueIgnoreCase, getName, hasAttribute, hasAttributeIgnoreCase, iterator
@Deprecated public CoordinateAxis2D(NetcdfDataset ncd, VariableDS vds)
ncd
- the containing datasetvds
- create it from hereprotected CoordinateAxis2D(CoordinateAxis2D.Builder<?> builder, Group parentGroup)
@Deprecated protected CoordinateAxis2D copy()
toBuilder()
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 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
protected CoordinateAxis2D.Builder<?> addLocalFieldsToBuilder(CoordinateAxis2D.Builder<? extends CoordinateAxis2D.Builder<?>> b)
public static CoordinateAxis2D.Builder<?> builder()