public class CoverageCSImpl extends java.lang.Object implements CoverageCS
CoverageCS.Subset, CoverageCS.Type
Modifier and Type | Field and Description |
---|---|
protected CoordinateSystem |
cs |
protected NetcdfDataset |
ds |
protected CoverageCSFactory |
fac |
protected ProjectionRect |
mapArea |
protected ProjectionImpl |
projection |
Modifier | Constructor and Description |
---|---|
protected |
CoverageCSImpl(NetcdfDataset ds,
CoordinateSystem cs,
CoverageCSFactory fac) |
Modifier and Type | Method and Description |
---|---|
ProjectionRect |
getBoundingBox()
Get horizontal bounding box in projection coordinates.
|
CalendarDateRange |
getCalendarDateRange()
If there is a time coordinate, get the time covered.
|
java.util.List<CoordinateAxis> |
getCoordinateAxes()
Get the list of all axes.
|
java.util.List<CoordinateTransform> |
getCoordinateTransforms()
Get the list of all CoordinateTransforms.
|
java.util.List<Dimension> |
getDomain()
Get the list of dimensions used by any of the Axes in the Coordinate System.
|
LatLonRect |
getLatLonBoundingBox()
Get horizontal bounding box in lat, lon coordinates.
|
java.lang.String |
getName()
The name of the Grid Coordinate System.
|
java.util.List<CoordinateAxis> |
getOtherCoordinateAxes()
Get the list of axes that are not x,y,z,t.
|
ProjectionImpl |
getProjection()
Get the Projection that performs the transform math.
|
CoverageCS.Subset |
getSubset() |
CoordinateAxis |
getTimeAxis()
Get the Time axis, if it exists.
|
CoordinateAxis |
getVerticalAxis()
Get the Z axis.
|
VerticalCT |
getVerticalCT()
Get the Vertical CoordinateTransform, it it exists.
|
VerticalTransform |
getVerticalTransform()
Get the VerticalTransform that performs the transform math.
|
CoordinateAxis |
getXHorizAxis()
Get the X axis.
|
CoordinateAxis |
getYHorizAxis()
Get the Y axis.
|
boolean |
hasTimeAxis()
True if there is a Time Axis.
|
boolean |
isLatLon()
Does this use lat/lon horizontal axes?
If not, then the horizontal axes are GeoX, GeoY, and there must be a Projection defined.
|
boolean |
isProductSet()
True if all axes are 1 dimensional.
|
boolean |
isZPositive()
True if increasing z coordinate values means "up" in altitude
|
CoverageCS.Subset |
makeSubsetFromLatLonRect(LatLonRect llbb)
Get Index Ranges for the given lat, lon bounding box.
|
void |
show(java.util.Formatter f,
boolean showCoords)
Show information about this
|
java.lang.String |
toString() |
protected NetcdfDataset ds
protected CoordinateSystem cs
protected CoverageCSFactory fac
protected ProjectionImpl projection
protected ProjectionRect mapArea
protected CoverageCSImpl(NetcdfDataset ds, CoordinateSystem cs, CoverageCSFactory fac)
public java.lang.String getName()
CoverageCS
getName
in interface CoverageCS
public java.util.List<Dimension> getDomain()
CoverageCS
getDomain
in interface CoverageCS
public java.util.List<CoordinateAxis> getCoordinateAxes()
CoverageCS
getCoordinateAxes
in interface CoverageCS
public java.util.List<CoordinateAxis> getOtherCoordinateAxes()
CoverageCS
getOtherCoordinateAxes
in interface CoverageCS
public boolean isProductSet()
CoverageCS
isProductSet
in interface CoverageCS
public java.util.List<CoordinateTransform> getCoordinateTransforms()
CoverageCS
getCoordinateTransforms
in interface CoverageCS
public CoordinateAxis getXHorizAxis()
CoverageCS
getXHorizAxis
in interface CoverageCS
public CoordinateAxis getYHorizAxis()
CoverageCS
getYHorizAxis
in interface CoverageCS
public boolean isLatLon()
CoverageCS
isLatLon
in interface CoverageCS
public LatLonRect getLatLonBoundingBox()
CoverageCS
getLatLonBoundingBox
in interface CoverageCS
public ProjectionRect getBoundingBox()
CoverageCS
getBoundingBox
in interface CoverageCS
public ProjectionImpl getProjection()
CoverageCS
getProjection
in interface CoverageCS
public CoordinateAxis getVerticalAxis()
CoverageCS
getVerticalAxis
in interface CoverageCS
public boolean isZPositive()
CoverageCS
isZPositive
in interface CoverageCS
public VerticalCT getVerticalCT()
CoverageCS
getVerticalCT
in interface CoverageCS
public VerticalTransform getVerticalTransform()
CoverageCS
getVerticalTransform
in interface CoverageCS
public boolean hasTimeAxis()
CoverageCS
hasTimeAxis
in interface CoverageCS
public CoordinateAxis getTimeAxis()
CoverageCS
getTimeAxis
in interface CoverageCS
public CalendarDateRange getCalendarDateRange()
CoverageCS
getCalendarDateRange
in interface CoverageCS
public java.lang.String toString()
toString
in class java.lang.Object
public void show(java.util.Formatter f, boolean showCoords)
CoverageCS
show
in interface CoverageCS
f
- put info hereshowCoords
- optionally show the coordinate valuespublic CoverageCS.Subset makeSubsetFromLatLonRect(LatLonRect llbb) throws InvalidRangeException
CoverageCS
makeSubsetFromLatLonRect
in interface CoverageCS
llbb
- a lat/lon bounding box.InvalidRangeException
- if llbb generates bad rangespublic CoverageCS.Subset getSubset()
getSubset
in interface CoverageCS