Shortcuts

Asset

class geodesic.stac.Asset(**obj)[source]

Bases: geodesic.bases._APIObject

A STAC Asset object. Basically contains links and metadata for a STAC Asset

Parameters

**obj – the attributes of this Asset

has_role(role)[source]

Does this have a requested role?

Returns

True if yes, False if no

property local: str

Get the local path to this asset, if any

Returns

a local path to this asset if downloaded, ‘’ otherwise

static new()[source]

Returns a new asset with all the fields empty

download(out_dir=None)[source]

Download the asset to a local directory, returns the full path to the asset.

Parameters

out_dir (Optional[str]) – The directory to download the asset too. A temp dir will be used instead

Returns

the path that was actually used

Docs

Developer documentation for Seer AI APIs

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources