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 (dict, optional) – dictionary of options for stac_asset.Config

Returns:

The downloaded STAC item.

Return type:

pystac.Item

Examples

Download all assets for given item to /tmp directory >>> localitem = asyncio.run(download_item(item, config=MAXAR_CONFIG))