List Collections
- wcpms.wcpms.get_collections(url)
List available data cubes in the BDC’s SpatioTemporal Asset Catalogs (STAC).
- Parameters:
url – The url of the available wcpms service running
Returns: list: A list form the unique identifier of each of the data cubes available in the BDC’s SpatioTemporal Asset Catalogs (STAC).
- Raises:
ConnectionError – If the server is not reachable.
HTTPError – If the server response indicates an error.
ValueError – If the response body is not a json document.
Example
Retrieves available data cubes in the BDC.
>>> from wcpms import * >>> wcpms_url = WCPMS_EXAMPLE_URL >>> collections = get_collections(wcpms_url) ... >>> collections ['CBERS4-MUX-2M-1', 'CBERS4-WFI-16D-2', 'CBERS-WFI-8D-1', 'LANDSAT-16D-1', 'mod13q1-6.1', 'myd13q1-6.1', 'S2-16D-2']