|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.Variable
ucar.nc2.dataset.VariableDS
ucar.nc2.dataset.CoordinateAxis
ucar.nc2.dataset.CoordinateAxis2D
public class CoordinateAxis2D
A 2-dimensional numeric Coordinate Axis. Must be invertible meaning, roughly, that if you draw lines connecting the points, none would cross.
CoordinateAxis.factory(ucar.nc2.dataset.NetcdfDataset, ucar.nc2.dataset.VariableDS)| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class ucar.nc2.dataset.CoordinateAxis |
|---|
CoordinateAxis.AxisComparator |
| Nested classes/interfaces inherited from class ucar.nc2.Variable |
|---|
Variable.Cache |
| Field Summary |
|---|
| Fields inherited from class ucar.nc2.dataset.CoordinateAxis |
|---|
axisType, boundaryRef, isContiguous, ncd, positive, POSITIVE_DOWN, POSITIVE_UP |
| Fields inherited from class ucar.nc2.dataset.VariableDS |
|---|
orgVar |
| Fields inherited from class ucar.nc2.Variable |
|---|
attributes, cache, dataType, debugCaching, defaultSizeToCache, dimensions, elementSize, group, isMetadata, isVariableLength, ncfile, parent, postReader, preReader, shape, shapeAsSection, shortName, sizeToCache, spiObject |
| Constructor Summary | |
|---|---|
CoordinateAxis2D(NetcdfDataset ncd,
VariableDS vds)
Create a 2D coordinate axis from an existing VariableDS |
|
| Method Summary | |
|---|---|
protected Variable |
copy()
|
double |
getCoordValue(int i,
int j)
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 |
getMidpoints()
|
static ArrayDouble.D2 |
makeXEdges(ArrayDouble.D2 midx)
For regular Grids |
static ArrayDouble.D2 |
makeXEdgesRotated(ArrayDouble.D2 midx)
For staggered Grids |
static ArrayDouble.D2 |
makeYEdges(ArrayDouble.D2 midy)
For regular Grids |
static ArrayDouble.D2 |
makeYEdgesRotated(ArrayDouble.D2 midy)
For staggered Grids |
CoordinateAxis2D |
section(Range r1,
Range r2)
Create a new CoordinateAxis2D as a section of this CoordinateAxis2D. |
| Methods inherited from class ucar.nc2.dataset.CoordinateAxis |
|---|
equals, factory, getAxisType, getBoundaryRef, getInfo, getMaxValue, getMinValue, getPositive, getUnitsString, hashCode, isContiguous, isNumeric, makeCopy, setAxisType, setBoundaryRef, setContiguous, setPositive |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
public CoordinateAxis2D(NetcdfDataset ncd,
VariableDS vds)
ncd - the containing datasetvds - create it from here| Method Detail |
|---|
protected Variable copy()
copy in class CoordinateAxis
public double getCoordValue(int i,
int j)
i - index 0j - index 1
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 index
InvalidRangeException - if specified Ranges are invalidpublic ArrayDouble.D2 getMidpoints()
public static ArrayDouble.D2 makeXEdges(ArrayDouble.D2 midx)
midx - x coordinates of midpoints
public static ArrayDouble.D2 makeYEdges(ArrayDouble.D2 midy)
midy - y coordinates of midpoints
public static ArrayDouble.D2 makeXEdgesRotated(ArrayDouble.D2 midx)
midx - x coordinates of midpoints
public static ArrayDouble.D2 makeYEdgesRotated(ArrayDouble.D2 midy)
midy - y coordinates of midpoints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||