|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.nc2.dataset.CoordinateSystem
ucar.nc2.dataset.grid.GridCoordSys
public class GridCoordSys
A georeferencing "gridded" CoordinateSystem. This describes a "grid" of coordinates, which implies a connected topology such that values next to each other in index space are next to each other in coordinate space. Note: these classes should be considered experimental and will likely be refactored in the next release.
This currently assumes that the CoordinateSystem
| Field Summary |
|---|
| Fields inherited from class ucar.nc2.dataset.CoordinateSystem |
|---|
aziAxis, coordAxes, coordTrans, dataType, domain, ds, elevAxis, hAxis, isImplicit, latAxis, lonAxis, name, pAxis, radialAxis, tAxis, xAxis, yAxis, zAxis |
| Constructor Summary | |
|---|---|
GridCoordSys(CoordinateSystem cs)
Deprecated. Create a GridCoordSys from an existing Coordinate System. |
|
GridCoordSys(GridCoordSys from,
Range t_range,
Range z_range,
Range y_range,
Range x_range)
Deprecated. Create a GridCoordSys as a section of an existing GridCoordSys. |
|
| Method Summary | |
|---|---|
int |
findTimeCoordElement(java.util.Date d)
Deprecated. Given a Date, find the corresponding time index on the time coordinate axis. |
int[] |
findXYCoordElement(double xpos,
double ypos,
int[] result)
Deprecated. Given a point in x,y coordinate space, find the x,y index in the coordinate system. |
ProjectionRect |
getBoundingBox()
Deprecated. Get the x,y bounding box in projection coordinates. |
DateRange |
getDateRange()
Deprecated. |
DateUnit |
getDateUnit()
Deprecated. |
LatLonRect |
getLatLonBoundingBox()
Deprecated. Get horizontal bounding box in lat, lon coordinates. |
java.util.List |
getLatLonBoundingBox(LatLonRect rect)
Deprecated. Get Index Ranges for the given lat, lon bounding box. |
int |
getLevelIndex(java.lang.String name)
Deprecated. Get the index corresponding to the level name. |
java.lang.String |
getLevelName(int index)
Deprecated. Get the String name for the ith level(z) coordinate. |
java.util.ArrayList |
getLevels()
Deprecated. Get the list of level names, to be used for user selection. |
ProjectionImpl |
getProjection()
Deprecated. get the projection |
CoordinateAxis1D |
getTimeAxis()
Deprecated. get the Time axis (same as getTaxis()) |
java.util.Date[] |
getTimeDates()
Deprecated. Get the list of times as Dates. |
int |
getTimeIndex(java.lang.String name)
Deprecated. Get the index corresponding to the level name. |
java.lang.String |
getTimeName(int index)
Deprecated. Get the string name for the ith time coordinate. |
TimeUnit |
getTimeResolution()
Deprecated. only if isRegular() |
java.util.ArrayList |
getTimes()
Deprecated. Get the list of time names, to be used for user selection. |
CoordinateAxis1D |
getVerticalAxis()
Deprecated. get the Vertical axis (either Geoz, Height, or Pressure) |
VerticalTransform |
getVerticalTransform()
Deprecated. Get the vertical transform, if any. |
VerticalCT |
getVerticalTransform2()
Deprecated. |
CoordinateAxis |
getXHorizAxis()
Deprecated. get the X Horizontal axis (either GeoX or Lon) |
CoordinateAxis |
getYHorizAxis()
Deprecated. get the Y Horizontal axis (either GeoY or Lat) |
boolean |
isDate()
Deprecated. is there a time coordinate, and can it be expressed as a Date? |
static boolean |
isGridCoordSys(java.lang.StringBuffer sbuff,
CoordinateSystem cs)
Deprecated. Determine if this CoordinateSystem can be made into a GridCoordSys. |
boolean |
isLatLon()
Deprecated. is this a Lat/Lon coordinate system? |
boolean |
isRegularSpatial()
Deprecated. true if all spatial axes are CoordinateAxis1D and are regular |
boolean |
isZPositive()
Deprecated. true if increasing z coordinate values means "up" in altitude |
static GridCoordSys |
makeGridCoordSys(java.lang.StringBuffer sbuff,
CoordinateSystem cs,
VariableEnhanced v)
Deprecated. Determine if the CoordinateSystem cs can be made into a GridCoordSys for the Variable v. |
java.lang.String |
toString()
Deprecated. String representation. |
| Methods inherited from class ucar.nc2.dataset.CoordinateSystem |
|---|
addCoordinateTransform, addCoordinateTransforms, containsAxes, containsAxis, containsAxisType, containsAxisTypes, containsDomain, equals, findAxis, getAzimuthAxis, getCoordinateAxes, getCoordinateTransforms, getDomain, getElevationAxis, getHeightAxis, getLatAxis, getLonAxis, getName, getPressureAxis, getProjectionCT, getRadialAxis, getRankDomain, getRankRange, getTaxis, getXaxis, getYaxis, getZaxis, hashCode, hasTimeAxis, hasVerticalAxis, isComplete, isGeoReferencing, isGeoXY, isImplicit, isProductSet, isRadial, isRegular, makeName, setImplicit |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public GridCoordSys(CoordinateSystem cs)
public GridCoordSys(GridCoordSys from,
Range t_range,
Range z_range,
Range y_range,
Range x_range)
throws InvalidRangeException
from - copy this GridCoordSyst_range - subset the time dimension, or null if you want all of itz_range - subset the vertical dimension, or null if you want all of ity_range - subset the y dimension, or null if you want all of itx_range - subset the x dimension, or null if you want all of it
InvalidRangeException| Method Detail |
|---|
public static boolean isGridCoordSys(java.lang.StringBuffer sbuff,
CoordinateSystem cs)
cs - the CoordinateSystem to test
CoordinateSystem.isGeoReferencing()
public static GridCoordSys makeGridCoordSys(java.lang.StringBuffer sbuff,
CoordinateSystem cs,
VariableEnhanced v)
sbuff - put debug information into this StringBuffer; may be null.cs - CoordinateSystem to check.v - Variable to check.
public VerticalTransform getVerticalTransform()
public VerticalCT getVerticalTransform2()
public CoordinateAxis getXHorizAxis()
public CoordinateAxis getYHorizAxis()
public CoordinateAxis1D getVerticalAxis()
public CoordinateAxis1D getTimeAxis()
public ProjectionImpl getProjection()
getProjection in class CoordinateSystempublic java.util.ArrayList getLevels()
public java.util.ArrayList getTimes()
public java.util.Date[] getTimeDates()
public boolean isLatLon()
isLatLon in class CoordinateSystempublic boolean isDate()
public boolean isZPositive()
public boolean isRegularSpatial()
public int[] findXYCoordElement(double xpos,
double ypos,
int[] result)
xpos - position in x coordinate space.ypos - position in y coordinate space.result - put result in here, may be null
public int findTimeCoordElement(java.util.Date d)
d - date to look for
java.lang.UnsupportedOperationException - is no time axis or isDate() falsepublic java.lang.String getLevelName(int index)
index - which level coordinate
public int getLevelIndex(java.lang.String name)
name - level name
public java.lang.String getTimeName(int index)
index - which time coordinate
public int getTimeIndex(java.lang.String name)
name - level name
public DateRange getDateRange()
public DateUnit getDateUnit()
throws java.lang.Exception
java.lang.Exception
public TimeUnit getTimeResolution()
throws java.lang.Exception
java.lang.Exceptionpublic ProjectionRect getBoundingBox()
public LatLonRect getLatLonBoundingBox()
public java.util.List getLatLonBoundingBox(LatLonRect rect)
public java.lang.String toString()
toString in class CoordinateSystem
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||