coincident.io.download.download_item#

async coincident.io.download.download_item(item, path='/tmp', config=None)[source]#

Downloads a STAC item to a specified local path.

Parameters:
  • item (Item) – The STAC item to be downloaded.

  • path (str) – The local directory path where the item will be downloaded. Default is “/tmp”.

  • config (dict[str, Any] | None) – dictionary of options for stac_asset.Config

Return type:

Item

Returns:

The downloaded STAC item.

Example

Download all assets for given item to /tmp directory

localitem = asyncio.run(download_item(item))