<?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 set at 50 N to 60N, 10W  to 10E, and from 2017-05-15T00:00:00Z
        to 2017-05-15T12:00:00Z. The output dataset has the same coordinate reference system as the parent grid, but
        the points along each axis are defined by the value of the scal:targetSize element. In this  example the dataa points
        are every 1 degree latitude, 1 degree longitude, and every hour. It is quite possible that every data point is
        created by interpolating from the surrounding points. The interpolatin method for each axis is defined by the
        The element int:interpolationMethod. 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://http://www.opengis.net/def/crs/OGC/0/AnsiDate</wcsCRS:subsettingCrs>
        </wcsCRS:GetCoverageCrs>

        <int:Interpolation>
            <int:globalInterpolation>http://www.opengis.net/def/interpolation/OGC/1/linear</int:globalInterpolation>
            <int:InterpolationPerAxis>
                <int:axis>Lat/</int:axis>
                <int:interpolationMethod>http://www.opengis.net/def/interpolation/OGC/1/cubic/</int:interpolationMethod>
            </int:InterpolationPerAxis>
            <int:InterpolationPerAxis>
                <int:axis>Lon/</int:axis>
                <int:interpolationMethod>http://www.opengis.net/def/interpolation/OGC/1/cubic/</int:interpolationMethod>
            </int:InterpolationPerAxis>
            <int:InterpolationPerAxis>
                <int:axis>Time</int:axis>
                <int:interpolationMethod>http://www.opengis.net/def/interpolation/OGC/1/linear</int:interpolationMethod>
            </int:InterpolationPerAxis>
        </int:Interpolation>

        <scal:Scaling>
            <scal:ScaleToSize>
                <scal:TargetAxisSize>
                    <scal:axis>Lat</scal:axis>
                    <scal:targetSize>11</scal:targetSize>
                </scal:TargetAxisSize>
                <scal:TargetAxisSize>
                    <scal:axis>Lon</scal:axis>
                    <scal:targetSize>11</scal:targetSize>
                </scal:TargetAxisSize>
                <scal:TargetAxisSize>
                    <scal:axis>Time</scal:axis>
                    <scal:targetSize>13</scal:targetSize>
                </scal:TargetAxisSize>
            </scal:ScaleToSize>
        </scal:Scaling>


    </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>

