Class 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
    • 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()
      • 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)
      • 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 index
        yindex - 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)
      • getDomainRank

        public int getDomainRank()
      • getRangeRank

        public int getRangeRank()