<?xml version="1.0" encoding="UTF-8"?>
<D07-401_METAR-SPECI_Product>
    <icaoLocationIndicator>
        <B01-063_ICAOLocationIndicator id="ICAOLoc_LKKV">
            <icaoLocation>LKKV</icaoLocation>
        </B01-063_ICAOLocationIndicator>
    </icaoLocationIndicator>
    <aerodromeName>Karlovy Vary</aerodromeName>
    <productStatus>
        <B08-079_AviationProductStatus
            codeList="http://{hostname}/{path}/BUFRCREX/Code+Flag/08.079"
            codeListValue="http://{hostname}/{path}/BUFRCREX/Code+Flag/08.079/0">
            Normal issue</B08-079_AviationProductStatus>
    </productStatus>
    <aerodromeObservation>
        <D07-402_AerodromeObservationGroup>
            <icaoLocationIndicator xlink:href="#ICAOLoc_LKKV"/>
            <windElements>
                <PointObservation>
                    <phenomenonTime>
                        <gml:TimeInstant id="observationTime">
                            <gml:timePosition>2007-07-25T12:00Z</gml:timePosition>
                        </gml:TimeInstant>
                    </phenomenonTime>
                    <resultTime xlink:href="#observationTime"/>
                    <procedure>
                        <SimpleProcess>
                            <documentation>
                                <CI_Citation>
                                    <title>
                                        <CharacterString>WMO No. 8 Part 1-5 Measurement of surface wind</CharacterString>
                                    </title>
                                    <onlineResource>
                                        <CI_OnlineResource>
                                            <linkage>http://www.wmo.int/pages/prog/www/IMOP/publications/CIMO-Guide/CIMO%20Guide%207th%20Edition,%202008/Part%20I/Chapter%205.pdf</linkage>
                                        </CI_OnlineResource>
                                    </onlineResource>
                                </CI_Citation>
                            </documentation>
                            <processParameter>
                                <StationTypeParameter id="StationType">
                                    <name>F0X02X001 Station Type</name>
                                    <value>
                                        <B02-001_StationType
                                            codeList="http://{hostname}/{path}/BUFRCREX/Code+Flag/02.001"
                                            codeListValue="http://{hostname}/{path}/BUFRCREX/Code+Flag/02.001/1">
                                            Manned
                                        </B02-001_StationType>
                                    </value>
                                </StationTypeParameter>
                            </processParameter>
                            <processParameter>
                                <StationHeightParameter id="StationHeight">
                                    <name>F0X07X030 Station Height</name>
                                    <value>
                                        <!-- [0 07 030] 'Height of station ground above mean sea level' -->
                                        <B07-030_StationHeight nilReason="missing"/>
                                    </value>
                                </StationHeightParameter>
                            </processParameter>
                            <processParameter>
                                <SensorHeightParameter id="WindSensorHeight">
                                    <name>F0X07X032 Sensor Height</name>
                                    <value>
                                        <!-- [0 07 032] 'Height of sensor above local ground (or deck of marine platform)' -->
                                        <B07-032_SensorHeight nilReason="missing"/>
                                    </value>
                                </SensorHeightParameter>
                            </processParameter>
                        </SimpleProcess>
                    </procedure>
                    <observedProperty xlink:href="http://{hostname}/{path}/AviationSurfaceWindCompositeObservableProperty.xml"/>
                    <featureOfInterest>
                        <SF_SamplingPoint id="FeatureOfInterest">
                            <!-- byReference - assume that these domain features will already be defined -->
                            <sampledFeature xlink:href="http://{hostname}/{path}/Aerodrome/karlovy_vary"/>
                            <shape>
                                <gml:Point>
                                    <!-- note: {Longitude Latitude} check this is correct order! -->
                                    <gml:pos>12.92 50.20</gml:pos>
                                </gml:Point>
                            </shape>
                        </SF_SamplingPoint>
                    </featureOfInterest>
                    <result>
                        <CV_DiscretePointCoverage>
                            <domainExtent>
                                <!-- could use EX_GeographicBoundingBox - but this is less useful for a (notional) 'point' -->
                                <EX_GeographicIdentifier id="DomainExtent">
                                    <geographicIdentifier>Airport Karlovy Vary</geographicIdentifier>
                                </EX_GeographicIdentifier>
                            </domainExtent>
                            <rangeType xlink:href="http://{hostname}/{path}/AviationSurfaceWindDataRecord.xml"/>
                            <element>
                                <CV_PointValuePair>
                                    <geometry>
                                        <gml:Point id="Geometry">
                                            <!-- note:
                                                A. {Longitude Latitude} check this is correct order!
                                                B. For the coverage to be fully self contained, <gml:pos> may be defined 
                                                   with coordinates including time and possibly vertical level (e.g. [x, y,{ z,} t]) -->
                                            <gml:pos>12.92 50.20</gml:pos>
                                        </gml:Point>
                                    </geometry>
                                    <value>
                                        <D07-403_WindRecord>
                                            <windDirection>
                                                <!-- unit of measure from WMO Common-table C-6: [320] 'degrees true' -->
                                                <B11-001_WindDirection uom="http://{hostname}/{path}/Common/C-6/320">210</B11-001_WindDirection>
                                            </windDirection>
                                            <variableWindDirectionCCW nilReason="missing"/>
                                            <variableWindDirectionCW nilReason="missing"/>
                                            <windSpeedGroup>
                                                <D07-307_WindSpeedGroup>
                                                    <windSpeedQualifier>
                                                        <B08-054_WindSpeedOrGustQualifier 
                                                            codeList="http://{hostname}/{path}/BUFRCREX/Code+Flag/08.054"
                                                            codeListValue="http://{hostname}/{path}/BUFRCREX/Code+Flag/08.054/0">
                                                            Wind speed or gust is as reported
                                                        </B08-054_WindSpeedOrGustQualifier> 
                                                    </windSpeedQualifier>
                                                    <windSpeed_kmh-1 nilReason="inapplicable"/>
                                                    <windSpeed_knots>
                                                        <!-- unit of measure from WMO Common-table C-6: [201] 'knot' -->
                                                        <B11-084_WindSpeed_knots uom="http://{hostname}/{path}/Common/C-6/320">5</B11-084_WindSpeed_knots>
                                                    </windSpeed_knots>
                                                    <windSpeed_ms-1>
                                                        <!-- unit of measure from WMO Common-table C-6: [731] 'metres per second' -->
                                                        <B11-002_WindSpeed_ms-1 uom="http://{hostname}/{path}/Common/C-6/731">2.6</B11-002_WindSpeed_ms-1>
                                                    </windSpeed_ms-1>
                                                </D07-307_WindSpeedGroup>
                                            </windSpeedGroup>
                                            <windGustGroup>
                                                <D07-308_WindGustGroup>
                                                    <windGustQualifier>
                                                        <B08-054_WindSpeedOrGustQualifier 
                                                            codeList="http://{hostname}/{path}/BUFRCREX/Code+Flag/08.054"
                                                            codeListValue="http://{hostname}/{path}/BUFRCREX/Code+Flag/08.054/0">
                                                            Wind speed or gust is as reported
                                                        </B08-054_WindSpeedOrGustQualifier> 
                                                    </windGustQualifier>
                                                    <gustSpeed_kmh-1 nilReason="missing"/>
                                                    <gustSpeed_knots nilReason="missing"/>
                                                    <gustSpeed_ms-1 nilReason="missing"/>
                                                </D07-308_WindGustGroup>
                                            </windGustGroup>
                                        </D07-403_WindRecord>
                                    </value>
                                </CV_PointValuePair>
                            </element>
                        </CV_DiscretePointCoverage>
                    </result>
                </PointObservation>
            </windElements>
            <temperatureElements>
                <PointObservation>
                    <phenomenonTime xlink:href="#observationTime"/>
                    <resultTime xlink:href="#observationTime"/>
                    <procedure>
                        <SimpleProcess>
                            <documentation>
                                <CI_Citation>
                                    <title>
                                        <CharacterString>WMO No. 8 Part 1-2 Measurement of temperature</CharacterString>
                                    </title>
                                    <onlineResource>
                                        <CI_OnlineResource>
                                            <linkage>http://www.wmo.int/pages/prog/www/IMOP/publications/CIMO-Guide/CIMO%20Guide%207th%20Edition,%202008/Part%20I/Chapter%202.pdf</linkage>
                                        </CI_OnlineResource>
                                    </onlineResource>
                                </CI_Citation>
                            </documentation>
                            <processParameter xlink:href="#StationType"/>
                            <processParameter xlink:href="#StationHeight"/>
                            <processParameter>
                                <SensorHeightParameter id="TemperatureSensorHeight">
                                    <name>F0X07X032 Sensor Height</name>
                                    <value>
                                        <!-- [0 07 032] 'Height of sensor above local ground (or deck of marine platform)' -->
                                        <B07-032_SensorHeight nilReason="missing"/>
                                    </value>
                                </SensorHeightParameter>
                            </processParameter>
                        </SimpleProcess>
                    </procedure>
                    <observedProperty xlink:href="http://{hostname}/{path}/AviationSurfaceTemperatureCompositeObservableProperty.xml"/>
                    <featureOfInterest xlink:href="#FeatureOfInterest"/>
                    <result>
                        <CV_DiscretePointCoverage>
                            <domainExtent xlink:href="#DomainExtent"/>
                            <rangeType xlink:href="http://{hostname}/{path}/AviationSurfaceTemperatureDataRecord.xml"/>
                            <element>
                                <CV_PointValuePair>
                                    <geometry xlink:href="#Geometry"/>
                                    <value>
                                        <D07-404_TemperatureRecord>
                                            <temperature>
                                                <!-- unit of measure from WMO Common-table C-6: [350] 'celsius' -->
                                                <B12-023_Temperature uom="http://{hostname}/{path}/Common/C-6/350">27</B12-023_Temperature>
                                            </temperature>
                                            <dewpoint>
                                                <!-- unit of measure from WMO Common-table C-6: [350] 'celsius' -->
                                                <B12-024_Dewpoint uom="http://{hostname}/{path}/Common/C-6/350">10</B12-024_Dewpoint>
                                            </dewpoint>
                                        </D07-404_TemperatureRecord>
                                    </value>
                                </CV_PointValuePair>
                            </element>
                        </CV_DiscretePointCoverage>
                    </result>
                </PointObservation>
            </temperatureElements>
            <qnhElements>
                <PointObservation>
                    <phenomenonTime xlink:href="#observationTime"/>
                    <resultTime xlink:href="#observationTime"/>
                    <procedure>
                        <SimpleProcess>
                            <documentation>
                                <CI_Citation>
                                    <title>
                                        <CharacterString>...</CharacterString>
                                    </title>
                                    <onlineResource>
                                        <CI_OnlineResource>
                                            <linkage>http://{hostname}/{path}/documentation_about_measuring_QNH.html</linkage>
                                        </CI_OnlineResource>
                                    </onlineResource>
                                </CI_Citation>
                            </documentation>
                            <processParameter xlink:href="#StationType"/>
                            <processParameter xlink:href="#StationHeight"/>
                            <processParameter>
                                <BarometerHeightParameter id="BarometerHeight">
                                    <name>F0X07X031 Barometer Height</name>
                                    <value>
                                        <!-- [0 07 031] 'Height of barometer above mean sea level' -->
                                        <B07-031_BarometerHeight nilReason="missing"/>
                                    </value>
                                </BarometerHeightParameter>
                            </processParameter>
                        </SimpleProcess>
                    </procedure>
                    <observedProperty xlink:href="http://{hostname}/{path}/AviationQNHObservableProperty.xml"/>
                    <featureOfInterest xlink:href="#FeatureOfInterest"/>
                    <result>
                        <CV_DiscretePointCoverage>
                            <domainExtent xlink:href="#DomainExtent"/>
                            <rangeType xlink:href="http://{hostname}/{path}/AviationQNHDataRecord.xml"/>
                            <element>
                                <CV_PointValuePair>
                                    <geometry xlink:href="#Geometry"/>
                                    <value>
                                        <D07-405_QNHRecord>
                                            <qnh>
                                                <!-- unit of measure from WMO Common-table C-6: [032] 'pascal' -->
                                                <B10-052_QNH uom="http://{hostname}/{path}/Common/C-6/032">10100E1</B10-052_QNH>
                                            </qnh>
                                        </D07-405_QNHRecord>
                                    </value>
                                </CV_PointValuePair>
                            </element>
                        </CV_DiscretePointCoverage>
                    </result>
                </PointObservation>
            </qnhElements>
            <observedPhenomenaElements>
                <PointObservation>
                    <phenomenonTime xlink:href="#observationTime"/>
                    <resultTime xlink:href="#observationTime"/>
                    <procedure>
                        <SimpleProcess>
                            <documentation>
                                <CI_Citation>
                                    <title>
                                        <CharacterString>Document title</CharacterString>
                                    </title>
                                    <onlineResource>
                                        <CI_OnlineResource>
                                            <linkage>http://{hostname}/{path}/documentation.html</linkage>
                                        </CI_OnlineResource>
                                    </onlineResource>
                                </CI_Citation>
                            </documentation>
                            <processParameter xlink:href="#StationType"/>
                            <processParameter xlink:href="#StationHeight"/>
                        </SimpleProcess>
                    </procedure>
                    <observedProperty xlink:href="http://{hostname}/{path}/AviationSurfaceObservedPhenomenonCompositeObservableProperty.xml"/>
                    <featureOfInterest xlink:href="#FeatureOfInterest"/>
                    <result>
                        <CV_DiscretePointCoverage>
                            <domainExtent xlink:href="#DomainExtent"/>
                            <rangeType xlink:href="http://{hostname}/{path}/AviationSurfaceObservedPhenomenonDataRecord.xml"/>
                            <element>
                                <CV_PointValuePair>
                                    <geometry xlink:href="#Geometry"/>
                                    <value>
                                        <D07-406_ObservedPhenomenaRecord>
                                            <weatherIndicator>
                                                <B20-009_WeatherIndicator 
                                                    codeList="http://{hostname}/{path}/BUFRCREX/Code+Flag/20.009"
                                                    codeListValue="http://{hostname}/{path}/BUFRCREX/Code+Flag/20.009/2">
                                                    CAVOK
                                                </B20-009_WeatherIndicator> 
                                            </weatherIndicator>
                                            <prevailingVisbility nilReason="missing"/>
                                            <verticalVisibility_m nilReason="missing"/>
                                            <verticalVisibility_ft nilReason="missing"/>
                                        </D07-406_ObservedPhenomenaRecord>
                                    </value>
                                </CV_PointValuePair>
                            </element>
                        </CV_DiscretePointCoverage>
                    </result>
                </PointObservation>
            </observedPhenomenaElements>
        </D07-402_AerodromeObservationGroup>
    </aerodromeObservation>
    <!-- no runwayObservation(s) [D07-410_RunwayObservationGroup] or aerodromeTrendForecast [D07-414_AerodromeTrendForecast] -->
</D07-401_METAR-SPECI_Product>
