Skip to content

Instantly share code, notes, and snippets.

@epifanio
Last active November 19, 2019 05:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save epifanio/4dba6c5406294d1c7f7994aad9c97201 to your computer and use it in GitHub Desktop.
Save epifanio/4dba6c5406294d1c7f7994aad9c97201 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<gmd:language>
<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2" codeListValue="eng">English</gmd:LanguageCode>
</gmd:language>
<gmd:characterSet>
<gmd:MD_CharacterSetCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode" codeListValue="utf8">utf8</gmd:MD_CharacterSetCode>
</gmd:characterSet>
<gmd:locale>
<gmd:PT_Locale id="locale-nob">
<gmd:languageCode>
<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2" codeListValue="nob">Norwegian</gmd:LanguageCode>
</gmd:languageCode>
<gmd:characterEncoding>
<gmd:MD_CharacterSetCode codeList="resources/Codelist/gmxcodelists.xml#MD_CharacterSetCode" codeListValue="utf8">UTF 8</gmd:MD_CharacterSetCode>
</gmd:characterEncoding>
</gmd:PT_Locale>
</gmd:locale>
<gmd:hierarchyLevel>
<gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_ScopeCode" codeListValue="dataset"/>
</gmd:hierarchyLevel>
<gmd:fileIdentifier>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9</gco:CharacterString>
</gmd:fileIdentifier>
<gmd:status>onGoing</gmd:status>
<gmd:dateStamp>
<gco:DateTime xmlns:gco="http://www.isotc211.org/2005/gco">2019-01-16T18:00:35.325Z</gco:DateTime>
</gmd:dateStamp>
<gmd:contact/>
<gmd:identificationInfo>
<gmd:MD_DataIdentification>
<gmd:citation>
<gmd:CI_Citation>
<gmd:title xsi:type="PT_FreeText_PropertyType">
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Date: 2019-01-16T17:46:16.076Z, Instrument: SAR-C SAR, Mode: HH HV, Satellite: Sentinel-1, Size: 1.3 GB</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#locale-nob"/>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:title>
<gmd:date>
<gmd:CI_Date>
<gmd:date>
<gco:DateTime xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:date>
<gmd:dateType>
<gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode" codeListValue="publication"/>
</gmd:dateType>
</gmd:CI_Date>
</gmd:date>
<gmd:edition>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:edition>
<gmd:otherCitationDetails>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:otherCitationDetails>
</gmd:CI_Citation>
</gmd:citation>
<gmd:abstract xsi:type="PT_FreeText_PropertyType">
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">The SENTINEL-1 mission comprises a constellation of two polar-orbiting satellites, operating day and night performing C-band synthetic aperture radar imaging, enabling them to acquire imagery regardless of the weather.</gco:CharacterString>
<gmd:PT_FreeText>
<gmd:textGroup>
<gmd:LocalisedCharacterString locale="#locale-nob"/>
</gmd:textGroup>
</gmd:PT_FreeText>
</gmd:abstract>
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>climatologyMeteorologyAtmosphere</gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>oceans</gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
<gmd:topicCategory>
<gmd:MD_TopicCategoryCode>imageryBaseMapsEarthCover</gmd:MD_TopicCategoryCode>
</gmd:topicCategory>
<gmd:pointOfContact/>
<gmd:extent>
<gmd:EX_Extent>
<gmd:geographicElement>
<gmd:EX_GeographicBoundingBox>
<gmd:westBoundLongitude>
<gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-16.390779</gco:Decimal>
</gmd:westBoundLongitude>
<gmd:eastBoundLongitude>
<gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-1.564198</gco:Decimal>
</gmd:eastBoundLongitude>
<gmd:southBoundLatitude>
<gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">68.036751</gco:Decimal>
</gmd:southBoundLatitude>
<gmd:northBoundLatitude>
<gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">73.583176</gco:Decimal>
</gmd:northBoundLatitude>
</gmd:EX_GeographicBoundingBox>
</gmd:geographicElement>
<gmd:temporalElement>
<gmd:EX_TemporalExtent>
<gmd:extent>
<gml:TimePeriod xmlns:gml="http://www.opengis.net/gml" id="1">
<gml:beginPosition>2019-01-16</gml:beginPosition>
<gml:endPosition>2019-01-16</gml:endPosition>
</gml:TimePeriod>
</gmd:extent>
</gmd:EX_TemporalExtent>
</gmd:temporalElement>
</gmd:EX_Extent>
</gmd:extent>
<gmd:language>
<gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2" codeListValue="eng"/>
</gmd:language>
</gmd:MD_DataIdentification>
</gmd:identificationInfo>
<gmd:distributionInfo>
<gmd:MD_Distribution>
<gmd:transferOptions>
<gmd:MD_DigitalTransferOptions>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>http://nbstds.met.no/thredds/dodsC/NBS/S1A/2019/01/16/EW/S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9.nc</gmd:URL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">OPeNDAP</gco:CharacterString>
</gmd:protocol>
<gmd:name>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:name>
<gmd:description>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Open-source Project for a Network Data Access Protocol.</gco:CharacterString>
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>http://nbswms.met.no/thredds/wms/NBS/S1A/2019/01/16/EW/S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9.nc</gmd:URL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">OGC WMS</gco:CharacterString>
</gmd:protocol>
<gmd:name>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:name>
<gmd:description>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">OGC Web Mapping Service, URI to GetCapabilities Document.</gco:CharacterString>
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>http://nbstds.met.no/thredds/fileServer/NBS/S1A/2019/01/16/EW/S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9.nc</gmd:URL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">HTTP</gco:CharacterString>
</gmd:protocol>
<gmd:name>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:name>
<gmd:description>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Direct access to the full data file. May require authentication, but should point directly to the data file or a catalogue containing the data.</gco:CharacterString>
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
<gmd:onLine>
<gmd:CI_OnlineResource>
<gmd:linkage>
<gmd:URL>https://colhub.met.no/odata/v1/Products('ff19634f-f99c-4b2e-9dbe-c55739eec12f')/$value</gmd:URL>
</gmd:linkage>
<gmd:protocol>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">ODATA</gco:CharacterString>
</gmd:protocol>
<gmd:name>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:name>
<gmd:description>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Open Data Protocol.</gco:CharacterString>
</gmd:description>
</gmd:CI_OnlineResource>
</gmd:onLine>
</gmd:MD_DigitalTransferOptions>
</gmd:transferOptions>
</gmd:MD_Distribution>
</gmd:distributionInfo>
<gmd:metadataConstraints>
<gmd:MD_LegalConstraints>
<gmd:accessConstraints>
<gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_RestrictionCode" codeListValue="otherRestrictions"/>
</gmd:accessConstraints>
<gmd:useConstraints>
<gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_RestrictionCode" codeListValue="otherRestrictions"/>
</gmd:useConstraints>
<gmd:otherConstraints>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:otherConstraints>
<gmd:otherConstraints>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
</gmd:otherConstraints>
</gmd:MD_LegalConstraints>
</gmd:metadataConstraints>
<gmd:metadataStandardName>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">ISO 19115:2003/19139</gco:CharacterString>
</gmd:metadataStandardName>
<gmd:metadataStandardVersion>
<gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">1.0</gco:CharacterString>
</gmd:metadataStandardVersion>
</gmd:MD_Metadata>
@tomkralidis
Copy link

Pretty printed:

<?xml version="1.0" encoding="utf-8"?>
<gmd:MD_Metadata xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <gmd:language>
    <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2" codeListValue="eng">English</gmd:LanguageCode>
  </gmd:language>
  <gmd:characterSet>
    <gmd:MD_CharacterSetCode codeList="http://standards.iso.org/ittf/PubliclyAvailableStandards/ISO_19139_Schemas/resources/Codelist/gmxCodelists.xml#MD_CharacterSetCode" codeListValue="utf8">utf8</gmd:MD_CharacterSetCode>
  </gmd:characterSet>
  <gmd:locale>
    <gmd:PT_Locale id="locale-nob">
      <gmd:languageCode>
        <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2" codeListValue="nob">Norwegian</gmd:LanguageCode>
      </gmd:languageCode>
      <gmd:characterEncoding>
        <gmd:MD_CharacterSetCode codeList="resources/Codelist/gmxcodelists.xml#MD_CharacterSetCode" codeListValue="utf8">UTF 8</gmd:MD_CharacterSetCode>
      </gmd:characterEncoding>
    </gmd:PT_Locale>
  </gmd:locale>
  <gmd:hierarchyLevel>
    <gmd:MD_ScopeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_ScopeCode" codeListValue="dataset"/>
  </gmd:hierarchyLevel>
  <gmd:fileIdentifier>
    <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9</gco:CharacterString>
  </gmd:fileIdentifier>
  <gmd:status>onGoing</gmd:status>
  <gmd:dateStamp>
    <gco:DateTime xmlns:gco="http://www.isotc211.org/2005/gco">2019-01-16T18:00:35.325Z</gco:DateTime>
  </gmd:dateStamp>
  <gmd:contact/>
  <gmd:identificationInfo>
    <gmd:MD_DataIdentification>
      <gmd:citation>
        <gmd:CI_Citation>
          <gmd:title xsi:type="PT_FreeText_PropertyType">
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Date: 2019-01-16T17:46:16.076Z, Instrument: SAR-C SAR, Mode: HH HV, Satellite: Sentinel-1, Size: 1.3 GB</gco:CharacterString>
            <gmd:PT_FreeText>
              <gmd:textGroup>
                <gmd:LocalisedCharacterString locale="#locale-nob"/>
              </gmd:textGroup>
            </gmd:PT_FreeText>
          </gmd:title>
          <gmd:date>
            <gmd:CI_Date>
              <gmd:date>
                <gco:DateTime xmlns:gco="http://www.isotc211.org/2005/gco"/>
              </gmd:date>
              <gmd:dateType>
                <gmd:CI_DateTypeCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#CI_DateTypeCode" codeListValue="publication"/>
              </gmd:dateType>
            </gmd:CI_Date>
          </gmd:date>
          <gmd:edition>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
          </gmd:edition>
          <gmd:otherCitationDetails>
            <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
          </gmd:otherCitationDetails>
        </gmd:CI_Citation>
      </gmd:citation>
      <gmd:abstract xsi:type="PT_FreeText_PropertyType">
        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">The SENTINEL-1 mission comprises a constellation of two polar-orbiting satellites, operating day and night performing C-band synthetic aperture radar imaging, enabling them to acquire imagery regardless of the weather.</gco:CharacterString>
        <gmd:PT_FreeText>
          <gmd:textGroup>
            <gmd:LocalisedCharacterString locale="#locale-nob"/>
          </gmd:textGroup>
        </gmd:PT_FreeText>
      </gmd:abstract>
      <gmd:topicCategory>
        <gmd:MD_TopicCategoryCode>climatologyMeteorologyAtmosphere</gmd:MD_TopicCategoryCode>
      </gmd:topicCategory>
      <gmd:topicCategory>
        <gmd:MD_TopicCategoryCode>oceans</gmd:MD_TopicCategoryCode>
      </gmd:topicCategory>
      <gmd:topicCategory>
        <gmd:MD_TopicCategoryCode>imageryBaseMapsEarthCover</gmd:MD_TopicCategoryCode>
      </gmd:topicCategory>
      <gmd:pointOfContact/>
      <gmd:extent>
        <gmd:EX_Extent>
          <gmd:geographicElement>
            <gmd:EX_GeographicBoundingBox>
              <gmd:westBoundLongitude>
                <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-16.390779</gco:Decimal>
              </gmd:westBoundLongitude>
              <gmd:eastBoundLongitude>
                <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">-1.564198</gco:Decimal>
              </gmd:eastBoundLongitude>
              <gmd:southBoundLatitude>
                <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">68.036751</gco:Decimal>
              </gmd:southBoundLatitude>
              <gmd:northBoundLatitude>
                <gco:Decimal xmlns:gco="http://www.isotc211.org/2005/gco">73.583176</gco:Decimal>
              </gmd:northBoundLatitude>
            </gmd:EX_GeographicBoundingBox>
          </gmd:geographicElement>
          <gmd:temporalElement>
            <gmd:EX_TemporalExtent>
              <gmd:extent>
                <gml:TimePeriod xmlns:gml="http://www.opengis.net/gml" id="1">
                  <gml:beginPosition>2019-01-16</gml:beginPosition>
                  <gml:endPosition>2019-01-16</gml:endPosition>
                </gml:TimePeriod>
              </gmd:extent>
            </gmd:EX_TemporalExtent>
          </gmd:temporalElement>
        </gmd:EX_Extent>
      </gmd:extent>
      <gmd:language>
        <gmd:LanguageCode codeList="http://www.loc.gov/standards/iso639-2" codeListValue="eng"/>
      </gmd:language>
    </gmd:MD_DataIdentification>
  </gmd:identificationInfo>
  <gmd:distributionInfo>
    <gmd:MD_Distribution>
      <gmd:transferOptions>
        <gmd:MD_DigitalTransferOptions>
          <gmd:onLine>
            <gmd:CI_OnlineResource>
              <gmd:linkage>
                <gmd:URL>http://nbstds.met.no/thredds/dodsC/NBS/S1A/2019/01/16/EW/S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9.nc</gmd:URL>
              </gmd:linkage>
              <gmd:protocol>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">OPeNDAP</gco:CharacterString>
              </gmd:protocol>
              <gmd:name>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
              </gmd:name>
              <gmd:description>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Open-source Project for a Network Data Access Protocol.</gco:CharacterString>
              </gmd:description>
            </gmd:CI_OnlineResource>
          </gmd:onLine>
          <gmd:onLine>
            <gmd:CI_OnlineResource>
              <gmd:linkage>
                <gmd:URL>http://nbswms.met.no/thredds/wms/NBS/S1A/2019/01/16/EW/S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9.nc</gmd:URL>
              </gmd:linkage>
              <gmd:protocol>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">OGC WMS</gco:CharacterString>
              </gmd:protocol>
              <gmd:name>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
              </gmd:name>
              <gmd:description>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">OGC Web Mapping Service, URI to GetCapabilities Document.</gco:CharacterString>
              </gmd:description>
            </gmd:CI_OnlineResource>
          </gmd:onLine>
          <gmd:onLine>
            <gmd:CI_OnlineResource>
              <gmd:linkage>
                <gmd:URL>http://nbstds.met.no/thredds/fileServer/NBS/S1A/2019/01/16/EW/S1A_EW_GRDH_1SDH_20190116T174616_20190116T174734_025506_02D3FA_14A9.nc</gmd:URL>
              </gmd:linkage>
              <gmd:protocol>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">HTTP</gco:CharacterString>
              </gmd:protocol>
              <gmd:name>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
              </gmd:name>
              <gmd:description>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Direct access to the full data file. May require authentication, but should point directly to the data file or a catalogue containing the data.</gco:CharacterString>
              </gmd:description>
            </gmd:CI_OnlineResource>
          </gmd:onLine>
          <gmd:onLine>
            <gmd:CI_OnlineResource>
              <gmd:linkage>
                <gmd:URL>https://colhub.met.no/odata/v1/Products('ff19634f-f99c-4b2e-9dbe-c55739eec12f')/$value</gmd:URL>
              </gmd:linkage>
              <gmd:protocol>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">ODATA</gco:CharacterString>
              </gmd:protocol>
              <gmd:name>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
              </gmd:name>
              <gmd:description>
                <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">Open Data Protocol.</gco:CharacterString>
              </gmd:description>
            </gmd:CI_OnlineResource>
          </gmd:onLine>
        </gmd:MD_DigitalTransferOptions>
      </gmd:transferOptions>
    </gmd:MD_Distribution>
  </gmd:distributionInfo>
  <gmd:metadataConstraints>
    <gmd:MD_LegalConstraints>
      <gmd:accessConstraints>
        <gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_RestrictionCode" codeListValue="otherRestrictions"/>
      </gmd:accessConstraints>
      <gmd:useConstraints>
        <gmd:MD_RestrictionCode codeList="http://www.isotc211.org/2005/resources/codeList.xml#MD_RestrictionCode" codeListValue="otherRestrictions"/>
      </gmd:useConstraints>
      <gmd:otherConstraints>
        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
      </gmd:otherConstraints>
      <gmd:otherConstraints>
        <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco"/>
      </gmd:otherConstraints>
    </gmd:MD_LegalConstraints>
  </gmd:metadataConstraints>
  <gmd:metadataStandardName>
    <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">ISO 19115:2003/19139</gco:CharacterString>
  </gmd:metadataStandardName>
  <gmd:metadataStandardVersion>
    <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">1.0</gco:CharacterString>
  </gmd:metadataStandardVersion>
</gmd:MD_Metadata>

@epifanio
Copy link
Author

@tomkralidis thanks for the comment! I applied the edit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment