Package ucar.nc2.ft2.coverage.adapter
Class DtCoverageCS
- java.lang.Object
-
- ucar.nc2.ft2.coverage.adapter.DtCoverageCS
-
- Direct Known Subclasses:
CurvilinearCS
,FmrcCS
,GridCS
public class DtCoverageCS extends Object
fork ucar.nc2.dt.grid.GridCoordSys for adaption of GridCoverage. Minimalist, does not do subsetting, vertical transform.- Since:
- 5/26/2015
-
-
Field Summary
Fields Modifier and Type Field Description protected DtCoverageCSBuilder
builder
-
Constructor Summary
Constructors Constructor Description DtCoverageCS(DtCoverageCSBuilder builder)
Create a GeoGridCoordSys from an existing Coordinate System.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CoordinateAxis
findCoordAxis(String shortName)
ProjectionRect
getBoundingBox()
Get the x,y bounding box in projection coordinates.CalendarDateRange
getCalendarDateRange()
List<CoordinateAxis>
getCoordAxes()
List<CoordinateTransform>
getCoordTransforms()
FeatureType
getCoverageType()
int
getDomainRank()
CoordinateAxis1D
getEnsembleAxis()
String
getHorizStaggerType()
LatLonPoint
getLatLon(double xcoord, double ycoord)
LatLonPoint
getLatLon(int xindex, int yindex)
Get the Lat/Lon coordinates of the midpoint of a grid cell, using the x,y indicesLatLonRect
getLatLonBoundingBox()
Get horizontal bounding box in lat, lon coordinates.String
getName()
ProjectionImpl
getProjection()
int
getRangeRank()
CoordinateAxis1DTime
getRunTimeAxis()
CoordinateAxis
getTimeAxis()
CoordinateAxis1D
getVerticalAxis()
get the Vertical axis (either Geoz, Height, or Pressure)CoordinateAxis
getXHorizAxis()
get the X Horizontal axis (either GeoX or Lon)CoordinateAxis
getYHorizAxis()
get the Y Horizontal axis (either GeoY or Lat)boolean
isGlobalLon()
Is this a global coverage over longitude ?boolean
isLatLon()
is this a Lat/Lon coordinate system?boolean
isRegularSpatial()
true if x and y axes are CoordinateAxis1D and are regularvoid
setHorizStaggerType(String horizStaggerType)
void
show(Formatter f, boolean showCoords)
String
toString()
-
-
-
Field Detail
-
builder
protected DtCoverageCSBuilder builder
-
-
Constructor Detail
-
DtCoverageCS
public DtCoverageCS(DtCoverageCSBuilder builder)
Create a GeoGridCoordSys from an existing Coordinate System. This will choose which axes are the XHoriz, YHoriz, Vertical, Time, RunTIme, Ensemble. If theres a Projection, it will set its map area- Parameters:
builder
- create from this
-
-
Method Detail
-
getName
public String getName()
-
getCoverageType
public FeatureType getCoverageType()
-
getCoordAxes
public List<CoordinateAxis> getCoordAxes()
-
findCoordAxis
public CoordinateAxis findCoordAxis(String shortName)
-
getCoordTransforms
public List<CoordinateTransform> getCoordTransforms()
-
getXHorizAxis
public CoordinateAxis getXHorizAxis()
get the X Horizontal axis (either GeoX or Lon)
-
getYHorizAxis
public CoordinateAxis getYHorizAxis()
get the Y Horizontal axis (either GeoY or Lat)
-
getVerticalAxis
public CoordinateAxis1D getVerticalAxis()
get the Vertical axis (either Geoz, Height, or Pressure)
-
getTimeAxis
public CoordinateAxis getTimeAxis()
-
getRunTimeAxis
public CoordinateAxis1DTime getRunTimeAxis()
-
getEnsembleAxis
public CoordinateAxis1D getEnsembleAxis()
-
getProjection
public ProjectionImpl getProjection()
-
isLatLon
public boolean isLatLon()
is this a Lat/Lon coordinate system?
-
isGlobalLon
public boolean isGlobalLon()
Is this a global coverage over longitude ?- Returns:
- true if isLatLon and longitude wraps
-
isRegularSpatial
public boolean isRegularSpatial()
true if x and y axes are CoordinateAxis1D and are regular
-
getHorizStaggerType
public String getHorizStaggerType()
-
setHorizStaggerType
public void setHorizStaggerType(String horizStaggerType)
-
getBoundingBox
public ProjectionRect getBoundingBox()
Get the x,y bounding box in projection coordinates.
-
getLatLon
public LatLonPoint getLatLon(int xindex, int yindex)
Get the Lat/Lon coordinates of the midpoint of a grid cell, using the x,y indices- Parameters:
xindex
- x indexyindex
- y index- Returns:
- lat/lon coordinate of the midpoint of the cell
-
getLatLon
public LatLonPoint getLatLon(double xcoord, double ycoord)
-
getLatLonBoundingBox
public LatLonRect getLatLonBoundingBox()
Get horizontal bounding box in lat, lon coordinates.- Returns:
- lat, lon bounding box.
-
show
public void show(Formatter f, boolean showCoords)
-
getCalendarDateRange
public CalendarDateRange getCalendarDateRange()
-
getDomainRank
public int getDomainRank()
-
getRangeRank
public int getRangeRank()
-
-