|
||||||||||
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 |
Field Summary |
---|
Fields inherited from class ucar.nc2.Variable |
---|
defaultSizeToCache |
Constructor Summary | |
---|---|
CoordinateAxis2D(NetcdfDataset ncd,
VariableDS vds)
Create a 2D coordinate axis from an existing VariableDS |
Method Summary | |
---|---|
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)
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 (staggered) Grids |
static ArrayDouble.D2 |
makeYEdges(ArrayDouble.D2 midy)
Normal case: do something reasonable in deciding on the edges when we have the midpoints of a 2D coordinate. |
static ArrayDouble.D2 |
makeYEdgesRotated(ArrayDouble.D2 midy)
Experimental: for WRF rotated (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 |
---|
copyNoCache, equals, factory, getAxisType, getBoundaryRef, getInfo, getMaxValue, getMinValue, getPositive, getUnitsString, hashCode, isContiguous, isNumeric, setAxisType, setBoundaryRef, setContiguous, setPositive |
Methods inherited from class java.lang.Object |
---|
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 hereMethod Detail |
---|
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 |