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 DtCoverageCSBuilderbuilder
-
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 CoordinateAxisfindCoordAxis(String shortName)ProjectionRectgetBoundingBox()Get the x,y bounding box in projection coordinates.CalendarDateRangegetCalendarDateRange()List<CoordinateAxis>getCoordAxes()List<CoordinateTransform>getCoordTransforms()FeatureTypegetCoverageType()intgetDomainRank()CoordinateAxis1DgetEnsembleAxis()StringgetHorizStaggerType()LatLonPointgetLatLon(double xcoord, double ycoord)LatLonPointgetLatLon(int xindex, int yindex)Get the Lat/Lon coordinates of the midpoint of a grid cell, using the x,y indicesLatLonRectgetLatLonBoundingBox()Get horizontal bounding box in lat, lon coordinates.StringgetName()ProjectionImplgetProjection()intgetRangeRank()CoordinateAxis1DTimegetRunTimeAxis()CoordinateAxisgetTimeAxis()CoordinateAxis1DgetVerticalAxis()get the Vertical axis (either Geoz, Height, or Pressure)CoordinateAxisgetXHorizAxis()get the X Horizontal axis (either GeoX or Lon)CoordinateAxisgetYHorizAxis()get the Y Horizontal axis (either GeoY or Lat)booleanisGlobalLon()Is this a global coverage over longitude ?booleanisLatLon()is this a Lat/Lon coordinate system?booleanisRegularSpatial()true if x and y axes are CoordinateAxis1D and are regularvoidsetHorizStaggerType(String horizStaggerType)voidshow(Formatter f, boolean showCoords)StringtoString()
-
-
-
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()
-
-