From 1e32673a60f42e04f3caf9d79d4108c0021b480c Mon Sep 17 00:00:00 2001 From: amfriesz Date: Wed, 22 Nov 2023 21:50:13 +0000 Subject: [PATCH] updates to search and discovery tutorial --- ...rthdata_Search_Discovery_earthaccess.ipynb | 194 ++++++------------ 1 file changed, 67 insertions(+), 127 deletions(-) diff --git a/tutorials/Earthdata_Search_Discovery_earthaccess.ipynb b/tutorials/Earthdata_Search_Discovery_earthaccess.ipynb index 30ab619..59b6434 100644 --- a/tutorials/Earthdata_Search_Discovery_earthaccess.ipynb +++ b/tutorials/Earthdata_Search_Discovery_earthaccess.ipynb @@ -139,85 +139,44 @@ " investigate if there is a keyword search for collections...precip" ] }, - { - "cell_type": "markdown", - "id": "27fd0392-dcd9-46f8-96b9-3a1552bb3742", - "metadata": {}, - "source": [ - "#### Search by collection" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "id": "b0209baf-8444-4880-a982-6762eb6aeeff", - "metadata": {}, - "outputs": [], - "source": [] - }, { "cell_type": "code", - "execution_count": 64, + "execution_count": 3, "id": "c10bc29d-d99f-4682-af49-4b9a3c3dbd7b", "metadata": { "tags": [] }, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Collections found: 1498\n" - ] - } - ], + "outputs": [], "source": [ - "Query = earthaccess.collection_query().keyword('precip*')\n", - "\n", - "print(f'Collections found: {Query.hits()}')" + "# Query = earthaccess.collection_query().keyword('precip*')\n", + "# print(f'Collections found: {Query.hits()}')" ] }, { "cell_type": "code", - "execution_count": 66, + "execution_count": 4, "id": "c14bea96-f7d6-4173-bbf3-c4ba4d7d5904", "metadata": { "tags": [] }, - "outputs": [ - { - "data": { - "text/plain": [ - "{\n", - " \"meta\": {\n", - " \"concept-id\": \"C2368306937-GES_DISC\",\n", - " \"granule-count\": 38593,\n", - " \"provider-id\": \"GES_DISC\"\n", - " },\n", - " \"umm\": {\n", - " \"ShortName\": \"PRECIP_GMI_GPM\",\n", - " \"DOI\": {\n", - " \"DOI\": \"10.5067/MEASURES/GPM/GMI/DATA201\"\n", - " },\n", - " \"Abstract\": \"The data presented in this level 2 orbital product are rain rate estimates expressed as mm/hour determined from brightness temperatures (Tbs) obtained from the Global Precipitation Measurement (GPM) Microwave Imager (GMI) flown on the GPM satellite. Most of the products generated in this data set are based upon the algorithms developed for the 3rd Algorithm Intercomparison Project (AIP-3) of the Global Precipitation Climatology Project (GPCP). Details of these 15 algorithms and development of a quality score which is a measure of confidence in the estimate, along with processing and algorithmic flags, can be found in the Algorithm Theoretical Basis Document (ATBD). The data in this product cover the period from 2014 to 2020 with one file per orbit.\"\n", - " }\n", - "}" - ] - }, - "execution_count": 66, - "metadata": {}, - "output_type": "execute_result" - } - ], + "outputs": [], "source": [ - "collections = Query.fields(['ShortName','DOI','Abstract']).get_all()\n", - "# Inspect 3 results printing just the ShortName and Abstract\n", - "collections[0]" + "# collections = Query.fields(['ShortName','DOI','Abstract']).get_all()\n", + "# # Inspect 3 results printing just the ShortName and Abstract\n", + "# collections[0]" + ] + }, + { + "cell_type": "markdown", + "id": "27fd0392-dcd9-46f8-96b9-3a1552bb3742", + "metadata": {}, + "source": [ + "#### Search by collection" ] }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 5, "id": "9cf2a5cd-940a-4206-8944-728d48995094", "metadata": { "tags": [] @@ -229,7 +188,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 6, "id": "30d096dc-c8ee-44d3-a130-b1dc5d9ae3bb", "metadata": { "tags": [] @@ -282,7 +241,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "id": "0657b16d-b7f1-4e7a-a196-0c2209d5d7a0", "metadata": { "tags": [] @@ -294,7 +253,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 8, "id": "55396853-47ef-4a66-9181-cb75b16810d0", "metadata": { "tags": [] @@ -314,7 +273,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 9, "id": "55c4bf4d-45d0-4bea-a910-4e065f670f16", "metadata": { "tags": [] @@ -328,7 +287,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 10, "id": "e521d54f-47f9-48ee-9773-b2853495e707", "metadata": { "tags": [] @@ -366,7 +325,7 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 11, "id": "b5b159c3-6bce-4d99-989b-503ac4231703", "metadata": { "tags": [] @@ -417,7 +376,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 12, "id": "5de5127f-843a-4ab3-8bc1-4eb815f19056", "metadata": { "tags": [] @@ -433,7 +392,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "d0d63d42970d4ad1b954d7f8a4db0dbb", + "model_id": "305e0b6dfb53471fb8b4bd6e8b7e04f5", "version_major": 2, "version_minor": 0 }, @@ -444,25 +403,10 @@ "metadata": {}, "output_type": "display_data" }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "File 3B-DAY.MS.MRG.3IMERG.20221119-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221121-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221120-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221122-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221123-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221125-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221126-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221124-S000000-E235959.V07.nc4 already downloaded\n", - "File 3B-DAY.MS.MRG.3IMERG.20221127-S000000-E235959.V07.nc4 already downloaded\n" - ] - }, { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "9a15c24e9f984d0eb95ff0807081f7c5", + "model_id": "c8e8470599404ddbae8e29a0e8edf356", "version_major": 2, "version_minor": 0 }, @@ -476,7 +420,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "cbe822b4d732484fab6a2a66068517a2", + "model_id": "1afbf90797f741dd84c45a917ceca6df", "version_major": 2, "version_minor": 0 }, @@ -513,7 +457,7 @@ }, { "cell_type": "code", - "execution_count": 20, + "execution_count": 13, "id": "d6ad180d-ec74-4245-bb41-ec745912b5fb", "metadata": { "tags": [] @@ -533,7 +477,7 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 14, "id": "9271ada5-e4b3-4397-be59-4ef6a1613576", "metadata": { "tags": [] @@ -545,7 +489,7 @@ "139" ] }, - "execution_count": 21, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -564,7 +508,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 15, "id": "33c8ee09-fccd-4938-9d7c-775292600ca3", "metadata": { "tags": [] @@ -576,7 +520,7 @@ "earthaccess.results.DataGranule" ] }, - "execution_count": 22, + "execution_count": 15, "metadata": {}, "output_type": "execute_result" } @@ -596,7 +540,7 @@ }, { "cell_type": "code", - "execution_count": 23, + "execution_count": 16, "id": "6362bef8-48c8-4a08-82a3-0f97c5aea2ff", "metadata": { "tags": [] @@ -608,7 +552,7 @@ "dict_keys(['meta', 'umm', 'size'])" ] }, - "execution_count": 23, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -619,7 +563,7 @@ }, { "cell_type": "code", - "execution_count": 27, + "execution_count": 17, "id": "5bfa2d9d", "metadata": { "tags": [] @@ -664,7 +608,7 @@ " 'Version': '1.6.5'}}" ] }, - "execution_count": 27, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -691,7 +635,7 @@ }, { "cell_type": "code", - "execution_count": 28, + "execution_count": 18, "id": "c34ef01c-ba42-475e-9ee0-c47d25b4dc06", "metadata": { "tags": [] @@ -703,7 +647,7 @@ "['https://data.gesdisc.earthdata.nasa.gov/data/GPM_L3/GPM_3IMERGDF.07/2022/11/3B-DAY.MS.MRG.3IMERG.20221119-S000000-E235959.V07.nc4']" ] }, - "execution_count": 28, + "execution_count": 18, "metadata": {}, "output_type": "execute_result" } @@ -722,7 +666,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 19, "id": "e35871bd-6d09-4459-beac-88c899f0af55", "metadata": { "tags": [] @@ -734,7 +678,7 @@ "['s3://gesdisc-cumulus-prod-protected/GPM_L3/GPM_3IMERGDF.07/2022/11/3B-DAY.MS.MRG.3IMERG.20221119-S000000-E235959.V07.nc4']" ] }, - "execution_count": 29, + "execution_count": 19, "metadata": {}, "output_type": "execute_result" } @@ -753,7 +697,7 @@ }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 20, "id": "8e4cc751-a62e-4515-8bbc-1042aadefae2", "metadata": { "tags": [] @@ -770,7 +714,7 @@ }, { "cell_type": "code", - "execution_count": 31, + "execution_count": 21, "id": "f4c149a0-8766-4881-a82d-56c855e552ed", "metadata": { "tags": [] @@ -790,7 +734,7 @@ " 's3://gesdisc-cumulus-prod-protected/GPM_L3/GPM_3IMERGDF.07/2022/11/3B-DAY.MS.MRG.3IMERG.20221127-S000000-E235959.V07.nc4']" ] }, - "execution_count": 31, + "execution_count": 21, "metadata": {}, "output_type": "execute_result" } @@ -825,7 +769,7 @@ }, { "cell_type": "code", - "execution_count": 32, + "execution_count": 22, "id": "4bfbd34d-2bc2-40a1-bc96-6452ee3ea419", "metadata": { "tags": [] @@ -842,7 +786,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "d4c162a1562644a080411dacc2eb7c03", + "model_id": "c9c171f90cf14595af1ad68e1d594af7", "version_major": 2, "version_minor": 0 }, @@ -856,7 +800,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "c77646c5b9c64f47b6931bcb4351db9c", + "model_id": "2ec595f1c58a4bab838cef9ac5a8f5e4", "version_major": 2, "version_minor": 0 }, @@ -870,7 +814,7 @@ { "data": { "application/vnd.jupyter.widget-view+json": { - "model_id": "1934a1f8d46f49fab6845bec8002657e", + "model_id": "1d34444a88c844769c09bbcc379d8052", "version_major": 2, "version_minor": 0 }, @@ -888,7 +832,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 23, "id": "8e1e98b1-3a65-48a8-a68e-c5cbad4420bb", "metadata": { "tags": [] @@ -916,13 +860,9 @@ }, { "cell_type": "code", - "execution_count": 34, + "execution_count": 24, "id": "3b87bdda-7dc8-458a-ab99-50aca9ed41c9", "metadata": { - "collapsed": true, - "jupyter": { - "outputs_hidden": true - }, "tags": [] }, "outputs": [ @@ -1319,8 +1259,8 @@ " InputPointer: 3B-HHR.MS.MRG.3IMERG.20221119-S000000-E002959.0000.V07A....\n", " title: GPM IMERG Final Precipitation L3 1 day 0.1 degree x 0.1 ...\n", " DOI: 10.5067/GPM/IMERGDF/DAY/07\n", - " ProductionTime: 2023-08-25T14:03:25.792Z