Class CdmTransformedGrid

    • Constructor Detail

      • CdmTransformedGrid

        public CdmTransformedGrid​(ucar.nc2.dt.GridCoordSystem coordSys)
        Parameters:
        coordSys - This GridCoordSystem must have one-dimensional x and y coordinate axes
    • Method Detail

      • contains

        public boolean contains​(HorizontalPosition position)
        Returns:
        true if the given position is contained within this domain.
      • getBoundingBox

        public BoundingBox getBoundingBox()
        Description copied from interface: HorizontalDomain
        Returns the bounding box of the domain in the domain's own coordinate reference system. For domains which do not have a native co-ordinate reference system this may return a BoundingBox in a different CRS. Consequently this BoundingBox is not guaranteed to be a tight bound around the domain.
      • getGeographicBoundingBox

        public org.opengis.metadata.extent.GeographicBoundingBox getGeographicBoundingBox()
        Description copied from interface: HorizontalDomain
        Returns the bounding box of the domain in WGS84 latitude-longitude coordinates.
      • size

        public long size()
        Description copied from interface: HorizontalGrid
        Returns the size of this domain. Equivalent to getXSize() * getYSize()
      • findIndexOf

        public GridCoordinates2D findIndexOf​(HorizontalPosition position)
        Description copied from interface: HorizontalGrid
        Finds the index of the specified position within this domain
        Parameters:
        position - The position to find the index of
        Returns:
        A GridCoordinates2D object representing the index of the position within the domain, or null if the position is outside the domain.
      • transformNativeHeadingToWgs84

        public double transformNativeHeadingToWgs84​(double xComp,
                                                    double yComp,
                                                    double lon,
                                                    double lat)
        Description copied from class: AbstractTransformedGrid
        Transforms a heading in native grid co-ordinates (degrees clockwise from positive y-direction) into a heading in WGS84 (degrees clockwise from north).
        Specified by:
        transformNativeHeadingToWgs84 in class AbstractTransformedGrid
        Parameters:
        xComp - The x-component of the heading
        yComp - The y-component of the heading
        lon - The longitude of the given components
        lat - The latitude of the given components
        Returns:
        The transformed heading
      • getXSize

        public int getXSize()
        Returns:
        The size of the x-axis
      • getYSize

        public int getYSize()
        Returns:
        The size of the y-axis