<?xml version="1.0" encoding="UTF-8"?>
<wcs20:GetCoverage
    xmlns:xlink="http://www.w3.org/1999/xlink"
    xmlns:wcs20="http://www.opengis.net/wcs/2.0" xmlns:swe="http://www.opengis.net/swe/2.0"
    xmlns:wcsCRS="http://www.opengis.net/wcs_service-extension_crs/1.0"
    xmlns:int="http://www.opengis.net/WCS_service-extension_interpolation/1.0"
    xmlns:rsub="http://www.opengis.net/wcs/range-subsetting/1.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:metocean="http://def.wmo.int/metce/2013/metocean"
    xmlns:scal="http://www.opengis.net/WCS_service-extension_scaling/1.0"
    xmlns:wcs21="http://www.opengis.net/wcs/2.1/gml"
    service="WCS" version="2.0.0"
    xsi:schemaLocation=
    "http://www.opengis.net/wcs/2.0 http://schemas.opengis.net/wcs/2.0/wcsAll.xsd
    http://www.opengis.net/wcs/crs/1.0 http://schemas.opengis.net/wcs/crs/1.0/wcsCrs.xsd
    http://www.opengis.net/wcs/range-subsetting/1.0 http://schemas.opengis.net/wcs/range-subsetting/1.0/wcsRsub.xsd
    http://www.opengis.net/WCS_service-extension_interpolation/1.0 http://schemas.opengis.net/wcs/interpolation/1.0/wcsInt.xsd
    http://www.opengis.net/WCS_service-extension_scaling/1.0 http://schemas.opengis.net/wcs/scaling/1.0/wcsScal.xsd">

<!--    In this example a 3D dataset  is extracted from a 3D MetOcean cube containing forecast surface variables e.g. precipitation.
        The bounds of this subset are 50 N to 60N, 10W  to 10E and from 2017-05-15T00:00:00Z to 2017-05-15T12:00:00Z. The bounding
        box may or may not lie exactly on the parent grid axes and only those points that are totally contained within the selected area
        are included in the selection. This extractin pattern is indicated by specifying only int:globalInterpolation  element
        (i.e. no children elements) that has a value of http://www.opengis.net/def/interpolation/OGC/1/nearest-neighbor.  Thus there
        are no axis specific interpolation methods. The element wcsCRS describes the coordinate reference systems of the "coverage"
        referenced by the Coverage identifier i.e.wcs20:CoverageId
-->
    <wcs20:Extension>

        <rsub:RangeSubset>
            <rsub:RangeItem>
                <rsub:RangeComponent>rainfall_rate</rsub:RangeComponent>
            </rsub:RangeItem>
            <rsub:RangeItem>
                <rsub:RangeComponent>snowfall_rate</rsub:RangeComponent>
            </rsub:RangeItem>
        </rsub:RangeSubset>

        <wcsCRS:GetCoverageCrs>
            <wcsCRS:subsettingCrs>http://www.opengis.net/def/crs-combine?
                1=http://www.opengis.net/def/crs/EPSG/0/4326&amp;
                2=http://www.opengis.net/def/temporal/ISO8601
            </wcsCRS:subsettingCrs>
        </wcsCRS:GetCoverageCrs>

        <int:Interpolation>
            <int:globalInterpolation>http://www.opengis.net/def/interpolation/OGC/1/nearest-neighbor</int:globalInterpolation>
        </int:Interpolation>
    </wcs20:Extension>

    <wcs20:CoverageId>UK_GLOBAL_2012-05-15T00.00.00Z_Ground</wcs20:CoverageId>
    <wcs20:DimensionTrim>
        <wcs20:Dimension>Lat</wcs20:Dimension>
        <wcs20:TrimLow>50.0</wcs20:TrimLow>
        <wcs20:TrimHigh>60.0</wcs20:TrimHigh>
    </wcs20:DimensionTrim>
    <wcs20:DimensionTrim>
        <wcs20:Dimension>Lon</wcs20:Dimension>
        <wcs20:TrimLow>-10.0</wcs20:TrimLow>
        <wcs20:TrimHigh>10.0</wcs20:TrimHigh>
    </wcs20:DimensionTrim>
    <wcs20:DimensionTrim>
        <wcs20:Dimension>ValidityTime</wcs20:Dimension>
        <wcs20:TrimLow>2017-05-15T00:00:00Z</wcs20:TrimLow>
        <wcs20:TrimHigh>2017-05-15T12:00:00Z</wcs20:TrimHigh>
    </wcs20:DimensionTrim>
    <wcs20:format>GRIB2</wcs20:format>
    <wcs20:mediaType></wcs20:mediaType>
</wcs20:GetCoverage>

