datasets module¶
Module for accessing the Earth Engine Data Catalog with dot notation.
get_community_data_list()
¶
Returns the list of community dataset IDs.
From https://github.com/samapriya/awesome-gee-community-datasets/blob/master/community_datasets.json
Source code in geemap/datasets.py
87 88 89 90 91 92 93 | |
get_data_csv()
¶
Returns the path to the CSV file summarizing the Earth Engine Data Catalog.
Source code in geemap/datasets.py
23 24 25 26 27 28 | |
get_data_dict()
¶
Returns the Earth Engine Data Catalog as a nested dictionary.
Source code in geemap/datasets.py
125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 | |
get_data_list()
¶
Returns a list of Earth Engine dataset IDs.
Source code in geemap/datasets.py
62 63 64 65 66 67 68 | |
get_ee_stac_list()
¶
Returns the STAC list of the Earth Engine Data Catalog.
Raises:
| Type | Description |
|---|---|
Exception
|
If the JSON file fails to download. |
Source code in geemap/datasets.py
96 97 98 99 100 101 102 103 104 105 106 107 108 109 | |
get_geemap_data_list()
¶
Returns the list of the public datasets from GEE users.
Source code in geemap/datasets.py
71 72 73 74 75 76 77 78 79 80 81 82 83 84 | |
get_metadata(asset_id, source='ee')
¶
Returns metadata about an Earth Engine asset.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
asset_id
|
str
|
The Earth Engine asset id. |
required |
source
|
str
|
'ee', 'community' or 'all'. |
'ee'
|
Raises:
| Type | Description |
|---|---|
Exception
|
If search fails. |
Source code in geemap/datasets.py
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
merge_dict(dict1, dict2)
¶
Merges two nested dictionaries.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
dict1
|
dict[Any, Any]
|
The first dictionary to merge. |
required |
dict2
|
dict[Any, Any]
|
The second dictionary to merge. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
The merged dictionary. |
Source code in geemap/datasets.py
112 113 114 115 116 117 118 119 120 121 122 | |
update_data_list(out_dir='.')
¶
Updates the Earth Engine Data Catalog dataset list.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
out_dir
|
str
|
The output directory to save the GitHub repository. Defaults to ".". |
'.'
|
Raises:
| Type | Description |
|---|---|
Exception
|
If the CSV file fails to save. |
Source code in geemap/datasets.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |