datasets module¶
Module for accessing the Earth Engine Data Catalog with dot notation.
get_community_data_list()
¶
Gets the list community datasets from https://github.com/samapriya/awesome-gee-community-datasets/blob/master/community_datasets.json
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
The list of Earth Engine asset IDs. |
Source code in geemap/datasets.py
105 106 107 108 109 110 111 112 113 |
|
get_data_csv()
¶
Gets the file path to the CSV file containing the information about the Earth Engine Data Catalog.
Returns:
Name | Type | Description |
---|---|---|
str |
str
|
File path to the CSV file. |
Source code in geemap/datasets.py
22 23 24 25 26 27 28 29 30 31 |
|
get_data_dict()
¶
Gets the Earth Engine Data Catalog as a nested dictionary.
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
The nested dictionary containing the information about the Earth Engine Data Catalog. |
Source code in geemap/datasets.py
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 |
|
get_data_list()
¶
Gets a list of Earth Engine datasets.
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
The list of dataset ids. |
Source code in geemap/datasets.py
71 72 73 74 75 76 77 78 79 80 81 82 |
|
get_ee_stac_list()
¶
Gets the STAC list of the Earth Engine Data Catalog.
Raises:
Type | Description |
---|---|
Exception
|
If the JSON file fails to download. |
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
The list of Earth Engine asset IDs. |
Source code in geemap/datasets.py
116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 |
|
get_geemap_data_list()
¶
Gets the list of the public datasets from GEE users.
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
The list of public datasets from GEE users. |
Source code in geemap/datasets.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 |
|
get_metadata(asset_id, source='ee')
¶
Gets 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
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 |
|
merge_dict(dict1, dict2)
¶
Merges two nested dictionaries.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dict1
|
dict
|
The first dictionary to merge. |
required |
dict2
|
dict
|
The second dictionary to merge. |
required |
Returns:
Name | Type | Description |
---|---|---|
dict |
dict
|
The merged dictionary. |
Source code in geemap/datasets.py
139 140 141 142 143 144 145 146 147 148 149 |
|
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
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 60 61 62 63 64 65 66 67 68 |
|