From def31e19981f227142090f74caddfdce48b69023 Mon Sep 17 00:00:00 2001 From: Qiusheng Wu Date: Mon, 8 Mar 2021 14:59:43 -0500 Subject: [PATCH] Fixed typo #346 --- Untitled.ipynb | 192 --------------------------------------------- geemap/datasets.py | 2 +- 2 files changed, 1 insertion(+), 193 deletions(-) delete mode 100644 Untitled.ipynb diff --git a/Untitled.ipynb b/Untitled.ipynb deleted file mode 100644 index 576e9ee96d..0000000000 --- a/Untitled.ipynb +++ /dev/null @@ -1,192 +0,0 @@ -{ - "cells": [ - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "import urllib.request, json \n", - "with urllib.request.urlopen(\"https://earthengine-stac.storage.googleapis.com/catalog/catalog.json\") as url:\n", - " data = json.loads(url.read().decode())\n", - " for link in data[\"links\"]:\n", - " if 'id' in link:\n", - " print(link['id'])\n", - "# print(link[\"id\"])" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "from geemap.datasets import DATA, get_metadata" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "'LANDFIRE/Fire/FRG/v1_2_0'" - ] - }, - "execution_count": 2, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "DATA.LANDFIRE_Fire_FRG_v1_2_0" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "get_metadata(DATA.LANDFIRE_Fire_MFRI_v1_2_0)" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "'CIESIN/GPWv411/GPW_Land_Area'" - ] - }, - "execution_count": 3, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "DATA.CIESIN_GPWv411_GPW_Land_Area" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "'AU/GA/DEM_1SEC/v10/DEM-H'" - ] - }, - "execution_count": 4, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "DATA.AU_GA_DEM_1SEC_v10_DEM_H" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [ - { - "data": { - "application/vnd.jupyter.widget-view+json": { - "model_id": "6a331e7f959e465e86da2c0d3e514cea", - "version_major": 2, - "version_minor": 0 - }, - "text/plain": [ - "HTML(value='\\n \\n \\n

DEM-H: Australian SRTM Hydrologically Enforced D…" - ] - }, - "metadata": {}, - "output_type": "display_data" - } - ], - "source": [ - "get_metadata(DATA.AU_GA_DEM_1SEC_v10_DEM_H)" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - } - ], - "metadata": { - "hide_input": false, - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.8.5" - }, - "toc": { - "base_numbering": 1, - "nav_menu": {}, - "number_sections": true, - "sideBar": true, - "skip_h1_title": false, - "title_cell": "Table of Contents", - "title_sidebar": "Contents", - "toc_cell": false, - "toc_position": {}, - "toc_section_display": true, - "toc_window_display": false - }, - "varInspector": { - "cols": { - "lenName": 16, - "lenType": 16, - "lenVar": 40 - }, - "kernels_config": { - "python": { - "delete_cmd_postfix": "", - "delete_cmd_prefix": "del ", - "library": "var_list.py", - "varRefreshCmd": "print(var_dic_list())" - }, - "r": { - "delete_cmd_postfix": ") ", - "delete_cmd_prefix": "rm(", - "library": "var_list.r", - "varRefreshCmd": "cat(var_dic_list()) " - } - }, - "types_to_exclude": [ - "module", - "function", - "builtin_function_or_method", - "instance", - "_Feature" - ], - "window_display": false - } - }, - "nbformat": 4, - "nbformat_minor": 4 -} diff --git a/geemap/datasets.py b/geemap/datasets.py index a52aef03a1..4a8eca3413 100644 --- a/geemap/datasets.py +++ b/geemap/datasets.py @@ -99,7 +99,7 @@ def get_ee_stac_list(): """Gets the STAC list of the Earth Engine Data Catalog. Raises: - Exception: If the JSON file failes to download. + Exception: If the JSON file fails to download. Returns: list: The list of Earth Engine asset IDs.