From 54f609c40668a1f2adcccca043d29363896e08db Mon Sep 17 00:00:00 2001 From: ycespb Date: Thu, 5 Dec 2024 17:09:06 +0100 Subject: [PATCH] Add files via upload --- book/opensearch_5_outline.ipynb | 250 ++++++++++++++++++++++++++++++-- 1 file changed, 238 insertions(+), 12 deletions(-) diff --git a/book/opensearch_5_outline.ipynb b/book/opensearch_5_outline.ipynb index 62b3de3..5760baa 100644 --- a/book/opensearch_5_outline.ipynb +++ b/book/opensearch_5_outline.ipynb @@ -28,7 +28,7 @@ "from xml.dom import minidom\n", "# from IPython.display import Image\n", "from xml.etree import ElementTree\n", - "# from IPython.display import HTML\n", + "from IPython.display import HTML\n", "from IPython.display import Markdown as md" ] }, @@ -463,7 +463,7 @@ "text/markdown": [ "```xml\n", " \n", - " 2024-12-05T09:52:57.562Z \n", + " 2024-12-05T16:08:12.607Z \n", " https://cmr.earthdata.nasa.gov/opensearch/collections.atom \n", " \n", " CMR \n", @@ -765,18 +765,18 @@ " false \n", " 2.8028 \n", " \n", - " gov.nasa.eosdis \n", - " \n", - " \n", - " org.geoss.geoss_data-core \n", + " org.ceos.wgiss.cwic.granules.prod \n", + " " " \n", " \n", " \n", " org.ceos.wgiss.cwic.granules.provider \n", " "USGSLSI" \n", " \n", " \n", - " org.ceos.wgiss.cwic.granules.prod \n", - " " " \n", + " org.geoss.geoss_data-core \n", + " \n", + " \n", + " gov.nasa.eosdis \n", " \n", " true \n", " true \n", @@ -891,10 +891,10 @@ " false \n", " 2.8028 \n", " \n", - " gov.nasa.eosdis \n", + " org.geoss.geoss_data-core \n", " \n", " \n", - " org.geoss.geoss_data-core \n", + " gov.nasa.eosdis \n", " \n", " true \n", " true \n", @@ -8394,7 +8394,7 @@ "https://fedeo.ceos.org/collections/datasets/items\n", "Copyright 2016-2024, European Space Agency\n", "FedEO Clearinghouse - Search Response\n", - "2024-12-05T09:52:59Z\n", + "2024-12-05T16:08:14Z\n", "\n", "\n", "\n", @@ -8537,7 +8537,7 @@ "text/markdown": [ "```xml\n", " \n", - " 2024-12-05T09:52:59.325Z \n", + " 2024-12-05T16:08:14.643Z \n", " https://cmr.earthdata.nasa.gov/opensearch/collections.atom \n", " \n", " CMR \n", @@ -8679,6 +8679,232 @@ " print('{:25}'.format(i) + \" \" + attrs[i])" ] }, + { + "cell_type": "markdown", + "id": "a9337926", + "metadata": {}, + "source": [ + "**ATOM element, Granule (Step 2) Search**" + ] + }, + { + "cell_type": "code", + "execution_count": 49, + "id": "344df5d4", + "metadata": { + "tags": [ + "remove-input" + ] + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
ElementValue
atom: titleAtom feed title element
atom: updatedDate tag indicating when granule metadata is returned from data provider
atom: authorFixed value, which is the contact information of supporting team
atom: idFixed value for search identifier
opensearch: totalResults Number of records matched
opensearch: startIndex Number of start record desired by client
opensearch: itemsPerPage Actual number of returned items per page
opensearch: QueryQuery element recording actual request parameter values from client
atom: link Traversal link. Supported ‘rel’ attribute values include:\n", + " \n", + "
  • first: link to the first matching result
  • \n", + "
  • last: link to the last matching result
  • \n", + "
  • previous: link to previous granule, where applicable
  • \n", + "
  • next: link to next granule, where applicable
  • \n", + "
  • profile: link to specified profile(s)
  • \n", + "
  • up: link to parent identifier
  • \n", + "
  • search: link to OSDD endpoint
  • \n", + "
  • self: link of submitted OpenSearch request
  • \n", + "
\n" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%%html\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
ElementValue
atom: titleAtom feed title element
atom: updatedDate tag indicating when granule metadata is returned from data provider
atom: authorFixed value, which is the contact information of supporting team
atom: idFixed value for search identifier
opensearch: totalResults Number of records matched
opensearch: startIndex Number of start record desired by client
opensearch: itemsPerPage Actual number of returned items per page
opensearch: QueryQuery element recording actual request parameter values from client
atom: link Traversal link. Supported ‘rel’ attribute values include:\n", + " \n", + "
  • first: link to the first matching result
  • \n", + "
  • last: link to the last matching result
  • \n", + "
  • previous: link to previous granule, where applicable
  • \n", + "
  • next: link to next granule, where applicable
  • \n", + "
  • profile: link to specified profile(s)
  • \n", + "
  • up: link to parent identifier
  • \n", + "
  • search: link to OSDD endpoint
  • \n", + "
  • self: link of submitted OpenSearch request
  • \n", + "
" + ] + }, + { + "cell_type": "markdown", + "id": "e2a94000", + "metadata": {}, + "source": [ + "**Atom element**" + ] + }, + { + "cell_type": "code", + "execution_count": 50, + "id": "69eea068", + "metadata": { + "tags": [ + "remove-input" + ] + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
ElementValue
atom:titleDescriptive title for the entry
atom:idUnique identifier of the entry within the local catalog system
atom: updatedDate tag indicating when entry metadata is last updated by data provider
atom:author Fixed value, which is the contact information of data provider
spatial extent elementsFor each granule, at least one <georss:box> will be provided to represent the\n", + "minimum bounding rectangle of spatial extent of entry, if applicable.\n", + "<georss:box> is formatted with coordinate order of WestBoundingLongitude, SouthBoundingLatitude, EastBoundingLongitude, NorthBoundingLatitude. All coordinates are in EPSG:4326\n", + "<georss:polygon> and other geometries may also be provided if it is available in data provider’s metadata.\n", + "\n", + "
temporal elementFor each entry, a single element will be provided to represent the\n", + "temporal extent of the entry, if applicable.\n", + "e.g. 1989 - 10 - 19T00:00:00.000Z/1989- 10 - 21T23:59:59.000Z
atom:linkSupported values under ‘rel’ attribute: via/enclosure/alternate/icon\n", + "(See Table below)
atom:summarySummary descriptive text for the entry
\n" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%%html\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
ElementValue
atom:titleDescriptive title for the entry
atom:idUnique identifier of the entry within the local catalog system
atom: updatedDate tag indicating when entry metadata is last updated by data provider
atom:author Fixed value, which is the contact information of data provider
spatial extent elementsFor each granule, at least one <georss:box> will be provided to represent the\n", + "minimum bounding rectangle of spatial extent of entry, if applicable.\n", + "<georss:box> is formatted with coordinate order of WestBoundingLongitude, SouthBoundingLatitude, EastBoundingLongitude, NorthBoundingLatitude. All coordinates are in EPSG:4326\n", + "<georss:polygon> and other geometries may also be provided if it is available in data provider’s metadata.\n", + "\n", + "
temporal elementFor each entry, a single element will be provided to represent the\n", + "temporal extent of the entry, if applicable.\n", + "e.g. 1989 - 10 - 19T00:00:00.000Z/1989- 10 - 21T23:59:59.000Z
atom:linkSupported values under ‘rel’ attribute: via/enclosure/alternate/icon\n", + "(See Table below)
atom:summarySummary descriptive text for the entry
" + ] + }, + { + "cell_type": "markdown", + "id": "ce3310ba", + "metadata": {}, + "source": [ + "**‘rel’ attributes of Atom element**" + ] + }, + { + "cell_type": "code", + "execution_count": 51, + "id": "a1082ff5", + "metadata": { + "tags": [ + "remove-input" + ] + }, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
‘rel’ attributeArtifact
viaMetadata
iconBrowse
alternateDocumentation
enclureProduct
upCollection Metadata
\n" + ], + "text/plain": [ + "" + ] + }, + "metadata": {}, + "output_type": "display_data" + } + ], + "source": [ + "%%html\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
‘rel’ attributeArtifact
viaMetadata
iconBrowse
alternateDocumentation
enclureProduct
upCollection Metadata
" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "500542e7", + "metadata": {}, + "outputs": [], + "source": [] + }, { "cell_type": "markdown", "id": "dda9f0dd",