<?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: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 4D dataset is extracted from a 4D MetOcean cube containing forecast variables on isobaric surfaces.
        The bounds of this subset are 50 N to 60N, 10W  to 10E, 1000hPa to 200hPa and from 2017-05-15T00:00:00Z to 2017-05-15T12:00:00Z.
        The bounding box (specified by the Trim elements) 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 extraction 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:rangeComponent>Temperature</rsub:rangeComponent>
        </rsub:rangeSubset>
        <rsub:rangeSubset>
            <rsub:rangeComponent>RelativeHumidity</rsub:rangeComponent>
        </rsub:rangeSubset>
        <rsub:RangeSubset>
            <rsub:RangeItem>
                <rsub:RangeComponent>Temperature</rsub:RangeComponent>
            </rsub:RangeItem>
            <rsub:RangeItem>
                <rsub:RangeComponent>RelativeHumidity</rsub:RangeComponent>
            </rsub:RangeItem>
        </rsub:RangeSubset>
        <wcsCRS:GetCoverageCrs>
            <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.codes.wmo.int/GRIB2/table4.5/IsobaricSurface&amp;
                    3=http://www.opengis.net/def/temporal/ISO8601</wcsCRS:subsettingCrs>
            </wcsCRS:GetCoverageCrs>
        </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_2018-09-06T00.00.00Z_ISBL</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>Pressure</wcs20:Dimension>
        <wcs20:TrimLow>1000.0</wcs20:TrimLow>
        <wcs20:TrimHigh>200.0</wcs20:TrimHigh>
    </wcs20:DimensionTrim>
    <wcs20:DimensionTrim>
        <wcs20:Dimension>ValidityTime</wcs20:Dimension>
        <wcs20:TrimLow>2018-09-06T00.00.00Z</wcs20:TrimLow>
        <wcs20:TrimHigh>2018-09-07T00.00.00Z</wcs20:TrimHigh>
    </wcs20:DimensionTrim>
    <wcs20:format>CovJSON</wcs20:format>
    <wcs20:mediaType></wcs20:mediaType>
</wcs20:GetCoverage>

