coincident.io.download.download_item#
- async coincident.io.download.download_item(item, path='/tmp', config=None)#
Downloads a STAC item to a specified local path.
- Parameters:
item (pystac.Item) – The STAC item to be downloaded.
path (str, optional) – The local directory path where the item will be downloaded. Default is “/tmp”.
config (str, optional) – If config==’maxar’, a MAXAR-API-KEY HTTP Header is used for authentication.
- Returns:
The downloaded STAC item.
- Return type:
Examples
>>> localitem = asyncio.run(download_item(item, config=MAXAR_CONFIG))