gportal.dataset
¶
datasets()
¶
Fetches the dataset tree from G-Portal.
The tree's structure corresponds to the "spacecraft/sensor" search tree of the Web UI. The leaves are dataset IDs.
Note
This depends on an undocumented API of G-Portal, which is subject to change.
If this function is broken, use cached_datasets() instead.
Returns:
| Type | Description |
|---|---|
Datasets
|
The dictionary of the dataset tree, where the leaves are dataset IDs. |
Source code in gportal/dataset.py
cached_datasets()
cached
¶
Loads the dataset tree from the cache included in this package.
Returns:
| Type | Description |
|---|---|
Datasets
|
The dictionary of the dataset tree, where the leaves are dataset IDs. |