Skip to content

Commit

Permalink
Final corrections of JN
Browse files Browse the repository at this point in the history
  • Loading branch information
Kampen1988 committed Oct 12, 2022
1 parent 883d2da commit 890fb54
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions examples/how_to_access_public_collections.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@
"# Set up credentials\n",
"config = SHConfig()\n",
"\n",
"# If you haven't saved your config, uncomment teh lines below and specify client id and client secret\n",
"# If you haven't saved your config, uncomment the lines below and specify client id and client secret\n",
"# config.sh_client_id = '<your client id>'\n",
"#config.sh_client_secret = '<your client secret>'"
"# config.sh_client_secret = '<your client secret>'"
]
},
{
Expand Down Expand Up @@ -130,19 +130,16 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"After defining the evalscript, we can then use this in our request payload. You can see that the Data Collection is named as `DataCollection.SENTINEL2_L2A`. If we were requesting the Sentinel-2 L1C it would be `DataCollection.SENTINEL2_L1C`. More information about the Sentinel and other datasets available at Sentinel Hub can be found [here](https://docs.sentinel-hub.com/api/latest/data/).\n",
"After defining the evalscript, we can then use this in our request payload. You can see that the Data Collection is named as `DataCollection.SENTINEL2_L2A`. If we were requesting Sentinel-2 L1C it would be `DataCollection.SENTINEL2_L1C`. More information about Sentinels and other datasets available at Sentinel Hub can be found [here](https://docs.sentinel-hub.com/api/latest/data/).\n",
"\n",
"We build the request payload according to the [API Reference](https://docs.sentinel-hub.com/api/latest/reference/), using the `SentinelHubRequest` class. Each Process API request also needs an evalscript.\n",
"\n",
"The information that we specify in the SentinelHubRequest object is:\n",
"\n",
"an evalscript,\n",
"\n",
"a list of input data collections with time interval,\n",
"\n",
"a format of the response,\n",
"\n",
"a bounding box and it’s size (size or resolution)."
"- an evalscript,\n",
"- a list of input data collections with time interval,\n",
"- a format of the response,\n",
"- a bounding box and it’s size (size or resolution)."
]
},
{
Expand Down Expand Up @@ -197,7 +194,7 @@
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x26378e368f0>"
"<matplotlib.image.AxesImage at 0x1c95abf57e0>"
]
},
"execution_count": 7,
Expand Down Expand Up @@ -225,7 +222,7 @@
"metadata": {},
"source": [
"## BYOC Collections\n",
"BYOC collections are data collections that have been ingested to Sentinel Hub for public access using Sentinel Hub Bring Your Own COG service ([BYOC](https://docs.sentinel-hub.com/api/latest/api/byoc/)). For these collections on [Sentinel Hub Public Collections](https://collections.sentinel-hub.com/) page, the Resources section provides `collectionId`,`Endpoint` and `Type` which start with `byoc-` . For example, [Sentinel-2 L2A 120m Mosaic](https://collections.sentinel-hub.com/sentinel-s2-l2a-mosaic-120/), [ESA WorldCover](https://collections.sentinel-hub.com/worldcover/), etc. Note that these collections can be deployed on different endpoints, which need to be specified when requesting the data."
"BYOC collections are data collections that have been ingested to Sentinel Hub for public access using Sentinel Hub Bring Your Own COG service ([BYOC](https://docs.sentinel-hub.com/api/latest/api/byoc/)). For these collections on [Sentinel Hub Public Collections](https://collections.sentinel-hub.com/) page, the Resources section provides `collectionId`, `Endpoint` and `Type` which start with `byoc-` . For example, [Sentinel-2 L2A 120m Mosaic](https://collections.sentinel-hub.com/sentinel-s2-l2a-mosaic-120/), [ESA WorldCover](https://collections.sentinel-hub.com/worldcover/), etc. Note that these collections can be deployed on different endpoints, which need to be specified when requesting the data."
]
},
{
Expand Down Expand Up @@ -331,7 +328,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"And then can plot the requested data collection:"
"After having received the response, we can plot the requested data:"
]
},
{
Expand All @@ -342,7 +339,7 @@
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x26378f8a860>"
"<matplotlib.image.AxesImage at 0x1c95ad4a2c0>"
]
},
"execution_count": 13,
Expand Down Expand Up @@ -370,7 +367,7 @@
"metadata": {},
"source": [
"### Copernicus Services Data\n",
"Several Copernicus Services data have been ingested to Sentinel Hub using Sentinel Hub BYOC service. These include [CORINE Land Cover](https://collections.sentinel-hub.com/corine-land-cover/), [Global Surface Water](https://collections.sentinel-hub.com/global-surface-water/) etc. Most of these data are deployed on `creodias.sentinel-hub.com`, and this is indicated on the Resources section of the collections on [Public Colections](https://collections.sentinel-hub.com/) page\n",
"Several Copernicus Services data have been ingested to Sentinel Hub using Sentinel Hub BYOC service. These include [CORINE Land Cover](https://collections.sentinel-hub.com/corine-land-cover/), [Global Surface Water](https://collections.sentinel-hub.com/global-surface-water/) etc. Most of these data are deployed on `creodias.sentinel-hub.com`, and this is indicated on the Resources section of the collections on [Public Collections](https://collections.sentinel-hub.com/) page\n",
"\n",
"#### Example 3: Corine Land Cover Data\n",
"\n",
Expand Down Expand Up @@ -543,7 +540,7 @@
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x2637adbc970>"
"<matplotlib.image.AxesImage at 0x1c95cbecfd0>"
]
},
"execution_count": 19,
Expand Down Expand Up @@ -602,7 +599,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"The example worldview collection is deployed on Sentinel Hub, so we set the `sh_base_url` back to the default setting `https://services.sentinel-hub.com` and define a BYOC collection using the collection ID."
"The example WorldView collection is deployed on Sentinel Hub, so we set the `sh_base_url` back to the default setting `https://services.sentinel-hub.com` and define a BYOC collection using the collection ID."
]
},
{
Expand Down Expand Up @@ -720,7 +717,7 @@
{
"data": {
"text/plain": [
"<matplotlib.image.AxesImage at 0x2637ade7850>"
"<matplotlib.image.AxesImage at 0x1c95cc1baf0>"
]
},
"execution_count": 25,
Expand All @@ -747,7 +744,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"That concludes this notebook, and you should now fully understand how to access the different types of data collections available on Sentinel Hub Public Collections!\n",
"That concludes this notebook, and you should now have all the tools needed to access the different types of data collections available on Sentinel Hub Public Collections!\n",
"\n",
"If you need more support you can always contact us on the [Sentinel Hub Forum](https://forum.sentinel-hub.com/). "
]
Expand Down

0 comments on commit 890fb54

Please sign in to comment.